Show on a map the position history of any sigfox device, with a NodeJS/HAPI simple web server
- Fetch data using the Sigfox API
- Rely the Sigfox Atlas network-based geolocation service to retrieve position history
- Display data on an OpenStreetMap map, using Leaflet
If you do not have a Sigfox device yet, the easier way is to buy one the compatible Development Kits.
They all come with included access to the full Sigfox service.
Complete guide available here
- Login to your Sigfox Cloud account
- Navigate to your Group, and enter the API Access menu
Create an API credentials pair. You will need DEVICES_MESSAGES[R]
rights at least.
To get your device's position computed, you first need to set up a Geoloc
callback. It can be either a push to an URI, or an email.
Follow the complete guide on our Resources website
$ npm install
Set the following 3 environnement vars :
API_LOGIN
: Sigfox API Login. Not your Sigfox Cloud login !API_PASSWORD
: Sigfox API Password. Again, not your Sigfox Cloud password!LEAFLET_TOKEN
: Your Leaflet token
$ npm start
- Device
deviceId
history : http://localhost:8001/devices/`deviceId` - List of available devices : http://localhost:8001