LoRa_APRS_iGate icon indicating copy to clipboard operation
LoRa_APRS_iGate copied to clipboard

Add parseable diagnostic data output available via HTTP or TCP socket

Open dm5tt opened this issue 4 years ago • 4 comments

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=="
  }
}

dm5tt avatar Oct 05 '21 06:10 dm5tt

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 ;)

peterus avatar Oct 05 '21 08:10 peterus

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.

SensorsIot avatar Oct 05 '21 09:10 SensorsIot

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.

dm5tt avatar Oct 05 '21 13:10 dm5tt

At the very least an HTTP server on the iGate with a status page would be awesome!

TechMindsYT avatar Jan 02 '22 01:01 TechMindsYT