Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parseable diagnostic data output available via HTTP or TCP socket #121

Open
dm5tt opened this issue Oct 5, 2021 · 4 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@dm5tt
Copy link

dm5tt commented Oct 5, 2021

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 dm5tt added the enhancement New feature or request label Oct 5, 2021
@dm5tt dm5tt changed the title Add parseable diagnostic data output avilable via HTTP or Raw-TCP socket Add parseable diagnostic data output available via HTTP or Raw-TCP socket Oct 5, 2021
@dm5tt dm5tt changed the title Add parseable diagnostic data output available via HTTP or Raw-TCP socket Add parseable diagnostic data output available via HTTP or TCP socket Oct 5, 2021
@peterus
Copy link
Member

peterus commented Oct 5, 2021

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

@SensorsIot
Copy link

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.

@dm5tt
Copy link
Author

dm5tt commented Oct 5, 2021

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.

@TechMindsYT
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants