fhem logfile temp/hum highcharts

Begonnen von kroonen, 15 Juni 2017, 21:48:42

Vorheriges Thema - Nächstes Thema

kroonen

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

fruit

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
Feel free to follow up in German if you prefer

kroonen

No that is not what I mean, I just want to graph with highcharts, with reading the logfile


amenomade

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
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

kroonen

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

supernova1963

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