Node.js application to send Spark messages if a device enters or leaves a designated area.
Node.js is required.
- Clone the repository
- Go the main folder, install the modules with
npm install
Via environment variable:
INDOOR_LOCATION_SOCKET_URL
: Socket server URL (default: http://localhost:3003)USER_ID
: User identifier (IP or MAC address) (required)MAPWIZE_API_URL
: Mapwize API URL (default: https://api.mapwize.io)MAPWIZE_API_KEY
: Mapwize API KEY (required)MAPWIZE_PLACE_ID
: Mapwize Place ID that represents the area (required)CISCO_SPARK_TOKEN
: CISCO Spark user token (required)CISCO_SPARK_TO_PERSON_EMAIL
: To address email to send private messages (required)
Or directly edit the values in config/env/all.js
.
Run the npm start
command.