I want to chart and archive my internet speed. Is there a binding for this? Alternatively, if I produce a JSON or CSV with the speedtest results, can I tell openhab to make a chart from it?
Hi @omegacore,
There’s no binding for that specific task, but you have a great step-by-step tutorial written by Thomas @ThomDietrich regarding speedtest-cli
integration:
For charting you might want to take a look at InfluxDB and Grafana integration:
Cheers
Thanks! I got the speedtest integration working. Now I am trying to get rrd4j logging running for these results. Unfortunately I am having a hard time.
I can’t figure out how to set the log level for the rrd4j service, and the rest API shows that no data is in the database.
Strategies {
everyMinute : "0 * * * * ?"
default = everyChange
}
Items {
SpeedtestResult* : strategy = everyChange, everyMinute
}
internetstats.def=GAUGE,196,0,U,195
internetstats.archives=AVERAGE,0.5,1,8760
internetstats.items=SpeedtestResultDown,SpeedtestResultPing,SpeedtestResultUp
REST API yields:
{
"name": "SpeedtestResultDown",
"datapoints": "0",
"data": []
}