Hello,
i´m trying to get Values out from file via Logwatcher plugin, but the Values inside Pimatic are ALWAYS “0” Any ideas ?
{
"id": "TemperaturenHeizung1",
"name": "Temperaturen Heizung1",
"class": "LogWatcher",
"file": "/home/pi/serial/proxon/logfile.txt",
"attributes": [
{
"name": "temperatureZuluft",
"type": "number",
"unit": "°C"
},
{
"name": "temperatureAbluft",
"type": "number",
"unit": "°C"
}
],
"lines": [
{
"match": "\\s*temperatureZuluft:\\s*([0-9]+\\.[0-9]+)",
"temperature": "$1"
},
{
"match": "\\s*temperatureAbluft:\\s*([0-9]+\\.[0-9]+)",
"temperature": "$1"
}
]
},
This is my file:
luftfeuchtigkeit: 47
co2Wert: 679
temperatureZuluft: 19.6
temperatureAbluft: 24.4
temperatureFortluft: 20.4
temperatureFrischluft: 17.0
temperatureVerdampfer: 21.6
temperatureVorverdampfer: 19.6
temperatureNachVorwaerme: 17.4
temperatureKondensator: 20.2
temperaturevorKondensator: 21.8
temperatureKompressor: 19.4
drehzahlKompressor: 0
DrehzahlZuluf: 1383
Drehzahlabluft: 1480
WohnenTemperatur: 25.0
DiehleTemperatur: 24.6
AbstellTemperatur: 23.4
SchlafenTemperatur: 24.6
BueroTemperatur: 24.5
KindTemperatur: 23.8