Autor Thema: fhem logfile temp/hum highcharts  (Gelesen 858 mal)

Offline kroonen

  • Full Member
  • ***
  • Beiträge: 119
    • http://www.kroonen.eu/mobile
fhem logfile temp/hum highcharts
« 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
« Letzte Änderung: 15 Juni 2017, 22:17:10 von kroonen »

Offline fruit

  • Full Member
  • ***
  • Beiträge: 289
Antw:fhem logfile temp/hum highcharts
« Antwort #1 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
Feel free to follow up in German if you prefer

Offline kroonen

  • Full Member
  • ***
  • Beiträge: 119
    • http://www.kroonen.eu/mobile
Antw:fhem logfile temp/hum highcharts
« Antwort #2 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


Offline amenomade

  • Hero Member
  • *****
  • Beiträge: 2077
Antw:fhem logfile temp/hum highcharts
« Antwort #3 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
FHEM 5.8 Pi 3, EchoDot, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, und HM Komponenten

F:"Schatz? Mach aus bitte"
M: "Alexa? Licht aus"-"Ich bin mir leider nicht sicher"  M:"Alexa? aus Licht"-"Das weiss ich leider nicht" M:"Alexa? Schalte...
F: "Drück mal auf den blöden Knopf!

Offline kroonen

  • Full Member
  • ***
  • Beiträge: 119
    • http://www.kroonen.eu/mobile
Antw:fhem logfile temp/hum highcharts
« Antwort #4 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

Offline supernova1963

  • Full Member
  • ***
  • Beiträge: 268
Antw:fhem logfile temp/hum highcharts
« Antwort #5 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
Fhemserver: Mac Mini - Parallels Desktop mit Ubuntu Server 16.04,
Module: Harmony, fakeRoku, FBAHA, Fritzbox, Proplanta, FIRMATA, Homekit, MQTT + espBridge, HMCCU, Nmap, ...