LoRa_APRS_iGate
LoRa_APRS_iGate copied to clipboard
Add parseable diagnostic data output available via HTTP or TCP socket
Is your feature request related to a problem? Please describe.
It would be great to have some kind of diagnostics output available which allows us to collect statistic data of our LoRA iGates.
Using this data we can analyze/improve and visualize (Grafana?) our setups using TSDB (Time Series Databases).
Describe the solution you'd like
Basically the setup will look like this:
[LoRa iGate] <--- Raw TCP Socket or HTTP --- [Python Collector Script] ---> InFlux DB ---> Grafana
Example (with random data) of a diagnostic data payload:
{
"esp32_unique_id": "FA3CFFAEFAAA"
"callsign": "dm5tt-2",
"timestamp": "2017-10-14T22:11:20+0000",
"coordinates": {
"lat": "42.111",
"lon": "9.111",
"alt": "191"
},
"lora": {
"freq_rx": "433775000",
"rssi": "-96",
"snr": "-100",
"payload_b64": "VEhJU0lTQVRFU1QxMjM1NlRISVNJU0FURVNUMTIzNTZUSElTSVNBVEVTVDEyMzU2VEhJU0lTQVRFU1QxMjM1NlRISVNJU0FURVNUMTIzNTZUSElTSVNBVEVTVDEyMzU2VEhJU0lTQVRFU1QxMjM1NlRISVNJU0FURVNUMTIzNTZUSElTSVNBVEVTVDEyMzU2VEhJU0lTQVRFU1QxMjM1Ng=="
}
}
This is definitely possible and if I think more about a very nice idea ;) but I would try another approach: write directly to the InFluxDB ;)
I found this library which could work: https://github.com/teebr/Influx-Arduino
Will test more and report back with something ;)
In IOT a lot of people use the MQTT protocol which is supported by most devices. This would make it very flexible, and you find an MQTT library for the ESP32, too.
Guess we need a neutral protocol, as I'm not a that big fan of MQTT. The simpler to data format the better.
Guess everybody can add its own glue layer then.
At the very least an HTTP server on the iGate with a status page would be awesome!