Artwork by renirevenge
A simple script to check in to a (configurable) Foursquare (Swarm) location when user is within range. It detects user location with WhereAmI that uses OSX CoreLocation framework. Optionally run this with launchd
to automatically check in at specific times 😉
NOTE: This runs only on macOS.
yarn
to setup all dependencies and downloadwhereami
.- Copy
config.sample.json
toconfig.json
and configure:
access_token
: OAuth access token from Foursquarevenue
: ID, coordinates, and radius (metres, optional, default 10) of venuevenues
: Object containing name:venue pair (same structure asvenue
)
- Schedule run script with
launchd
or LaunchControl.
- (optional) first argument is the venue key to select from
venues
inconfig.json
- If no argument is supplied it will use
venue
To get the access token, follow instructions on this page: https://developer.foursquare.com/overview/auth
To get the venue ID and coordinates, inspect the XHR autocomplete API call on https://foursquare.com/