Python script to get data from the Pi-Star Dashboard and store it to InfluxDB
you might also be interested in something I set up recently: a script which scrapes the Pi-Star dashboard regularly and puts the data into a database. With this, I have an unlimited activity history and can do nice statistics using tools like Grafana.
Script: https://github.com/chris007de/pistar-scraper
Demo: http://dashboard.db0hob.charly14.de/
73, Chris, DL1COM
Python script to get data from the Pi-Star Dashboard and store it to InfluxDB
Have you thought about using the log files as direct input to your program for this? They can easily be downloaded via <pistar.local/admin/download_modem_log.php>
and provide considerable more data for mining over longer periods of time.
Mark KN2TOD
1/2
Python script to get data from the Pi-Star Dashboard and store it to InfluxDB
The instructions for downloading the Modem Activity log file directly, as a URL you type in your favorite browser. I didn't write the code for that URL - it's a standard part of the Pi-Star package, and it is not a menu item in any of the Pi-Star dashboards. The URL I provided needs to be modified, of course, with the appropriate IP or host name in order to function properly.
I provided the URL as a (simpler) alternative to scrapping screens to get data for input to an external database, but it would required further development to manipulate the download activity file in such a way as to be a substitute for the scrapped data.
Hopefully this helps.
Mark KN2TOD
2/2
2/2
Source : https://groups.io/g/PiStar
I love brilliance ...
Andre f = t ∇ sτ
No comments:
Post a Comment
.
PiStar Users Discussion Group
Pi-Star Users Support Group
https://groups.io/g/PiStar
BrandMeister Network Users Discussion Group
https://groups.io/g/BrandMeister
.
Note: only a member of this blog may post a comment.