DRK LoRaWAN Map App
This is an LoRaWAN Map App which implements an public facing interface for the LoRaWAN GPS Tracker using leaflet and OpenStreetMap.
How it works
The data of the LoRaWAN Trackers get passed to the "uplink.php" file which stores them in the gps_data.json
file, with the text_mappings.json
additional texts for the tracker device IDs can be stored. From that two files the map application gets its data to be displyed on the OSM Map.
How to setup
- ssh to your webserver
- Create an folder
- Run
git clone https://github.com/zero-24/lorawan-map-app.git .
inside the folder - Point your domain to the
www
folder cp etc/constants.dist.php etc/constants.php
nano etc/constants.php
-> Setup the constants within this filecomposer install --no-dev
- Create within "The Things Network" an webhook to the uplink.php (Integrations -> Webhooks -> Add webhook -> Custom Webhook)
- Set the secret from the constants.php in the webhook config
uplink.php?uplink_secret=
- Save the webhook and let the data come
Optional Setup
Custom Favicon
- Create a favicon package using Favicon Generator. For real.
- place the files from the download into the
www
folder
Special Thanks
Alex @ AEQ-WEB & René Wildemann