creating graphs based on the available Toon webservices
Posted: Thu Mar 11, 2021 2:01 pm
Based on the information in this post viewtopic.php?f=99&t=11671&hilit=rrd+co ... =30#p84364 I am experimenting with graph tools like Grafana or Google graphs to create a nice overview of the historical data in my Toon on my local webserver.
I am stuck in parsing the output data because the format is not plain json (only values without attributes):
I am not so experienced with json and webservices, so I appreciate it very much if someone can set me in the right direction, or maybe someone has already fixed this and is willing to share the code. If there are alternative approaches I am also happy to hear your suggestions. Thx!
I am stuck in parsing the output data because the format is not plain json (only values without attributes):
Code: Select all
{ "28-05-2020 02:00:00": 42286,"09-06-2020 02:00:00": 245990,"21-06-2020 02:00:00": 407340,"03-07-2020 02:00:00": 605033,"15-07-2020 02:00:00": 752018,"27-07-2020 02:00:00": 918115,"08-08-2020 02:00:00": 1116298,"20-08-2020 02:00:00": 1297054,"01-09-2020 02:00:00": 1410707,"13-09-2020 02:00:00": 1520067,"25-09-2020 02:00:00": 1695973,"07-10-2020 02:00:00": 1762527,"19-10-2020 02:00:00": 1830729,"31-10-2020 01:00:00": 1879163,"12-11-2020 01:00:00": 1955781,"24-11-2020 01:00:00": 1989700,"06-12-2020 01:00:00": 2018634,"18-12-2020 01:00:00": 2042712,"30-12-2020 01:00:00": 2070929,"11-01-2021 01:00:00": 2087527,"23-01-2021 01:00:00": 2116655,"04-02-2021 01:00:00": 2165957,"16-02-2021 01:00:00": 2229368,"28-02-2021 01:00:00": 2331331,"12-03-2021 01:00:00": 7362083}