FHEM Forum

FHEM => English Corner => Thema gestartet von: kroonen am 15 Juni 2017, 21:48:42

Titel: fhem logfile temp/hum highcharts
Beitrag von: kroonen am 15 Juni 2017, 21:48:42
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
Titel: Antw:fhem logfile temp/hum highcharts
Beitrag von: fruit am 15 Juni 2017, 22:47:31
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
Titel: Antw:fhem logfile temp/hum highcharts
Beitrag von: kroonen am 17 Juni 2017, 21:50:14
No that is not what I mean, I just want to graph with highcharts, with reading the logfile

Titel: Antw:fhem logfile temp/hum highcharts
Beitrag von: amenomade am 17 Juni 2017, 23:05:15
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
Titel: Antw:fhem logfile temp/hum highcharts
Beitrag von: kroonen am 20 Juni 2017, 22:14:45
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
Titel: Antw:fhem logfile temp/hum highcharts
Beitrag von: supernova1963 am 21 Juni 2017, 04:54:31
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