Hi,
Is there anybody who create an standalone highcharts script that reads the fhem log file and creates an highcharts graph.
the log looks like this of a temp/hum sensor
2017-06-15_21:44:35 Isakamertemp Temperature: 24.5
2017-06-15_21:44:35 Isakamertemp Humidity: 54
2017-06-15_21:44:35 Isakamertemp Hum: 54 Tem: 24.5
2017-06-15_21:45:35 Isakamertemp Humidity: 54
2017-06-15_21:45:35 Isakamertemp Temperature: 24.4
2017-06-15_21:45:35 Isakamertemp Hum: 54 Tem: 24.4
2017-06-15_21:46:35 Isakamertemp Temperature: 24.4
2017-06-15_21:46:35 Isakamertemp Humidity: 54
2017-06-15_21:46:35 Isakamertemp Hum: 54 Tem: 24.4
I use the average module for several readings, this provides daily minimum, maximum as well as average values - hoping this is what you mean.
It is fairly easy to extract these and graph them
No that is not what I mean, I just want to graph with highcharts, with reading the logfile
In whoch frontend do you want to graph? In TabletUI there is a widget highcharts. Otherwise there is this: https://wiki.fhem.de/wiki/Neues_Charting_Frontend
In a complete external frontend, you should be able to get the data from fhem using html requests with Get from the Logfile https://fhem.de/commandref_DE.html#FileLog
Hi,
I want a standalone php script or whatever, that reads the fhem log en creates an highchart from it to integrate on a website
regards Richard
Hi Richard,
if you want to use data outside from fhem, try Dblog (https://wiki.fhem.de/wiki/DbLog).
After that you can use every highchart, that support SQLlite or MySQL.
Regards,
Gernot