An open API service indexing awesome lists of open source software.

https://github.com/zero-24/lorawan-map-app

zero-24 DRK LoRaWAN Map App
https://github.com/zero-24/lorawan-map-app

Last synced: 3 months ago
JSON representation

zero-24 DRK LoRaWAN Map App

Awesome Lists containing this project

README

          

# DRK LoRaWAN Map App

This is an LoRaWAN Map App which implements an public facing interface for the [LoRaWAN GPS Tracker](https://www.aeq-web.com/lorawan-gps-tracker-the-things-stack-tts-application-server/) using [leaflet](https://leafletjs.com/) and [OpenStreetMap](https://www.openstreetmap.org/). The JSON File Apps are based losely on [thecodeholic/PHPSimpleCRUD-FS](https://github.com/thecodeholic/PHPSimpleCRUD-FS), the map picker used is [dekvidet/osm-picker](https://github.com/dekvidet/osm-picker).

## How it works

The data of the LoRaWAN Trackers get passed to the "uplink.php" file which stores them in the `tracker_gpsdata.json` file, with the `tracker_metadata.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.
Using the Tracker and GPS Data Apps linked from the Map the files can be edited from the web UI, additionally fixed points can be added using the UI.

## 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 file
- `composer 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.](https://realfavicongenerator.net/)
- place the files from the download into the `www` folder

## Special Thanks

[Alex @ AEQ-WEB](https://www.aeq-web.com/) & [Reno989](https://github.com/Reno989)