- Mitglied seit
- 16 Feb 2006
- Beiträge
- 657
- Punkte für Reaktionen
- 34
- Punkte
- 28
Ich mache mal einen eigenen thread auf, schon zu viel im anderen "gespamt"
Jetzt suche ich ein psg dass mir die beiden Werte von
und
anzeigt.
Kann man mit eine psg ein logfile auslesen und darin einen letzten Wert suchen und den dann in sas anzeigen lassen?
log file sieht so aus:
Code:2015-04-05_16:04:27 myKm200 /heatSources/workingTime/totalSystem: 76724 2015-04-05_16:04:28 myKm200 /heatingCircuits/hc1/activeSwitchProgram: Eigen1 2015-04-05_16:04:28 myKm200 /heatingCircuits/hc1/roomtemperature: 20.2 2015-04-05_16:04:28 myKm200 /heatingCircuits/hc1/status: INACTIVE 2015-04-05_16:04:28 myKm200 /solarCircuits/sc1/pumpModulation: 0 2015-04-05_16:04:28 myKm200 /system/appliance/CHpumpModulation: 0 2015-04-05_16:04:28 myKm200 /system/appliance/actualPower: 0 2015-04-05_16:04:28 myKm200 /system/appliance/fanSpeed: 0 2015-04-05_16:04:28 myKm200 /system/appliance/fanSpeed_setpoint: 0 2015-04-05_16:04:29 myKm200 /system/appliance/flameCurrent: 0 2015-04-05_16:04:29 myKm200 /system/appliance/nominalBurnerLoad: 0 2015-04-05_16:04:29 myKm200 /system/appliance/numberOfStarts: 7088 2015-04-05_16:04:29 myKm200 /system/appliance/powerSetpoint: 100 2015-04-05_16:04:29 myKm200 /system/appliance/systemPressure: 25.5 2015-04-05_16:04:29 myKm200 /system/appliance/workingTime/centralHeating: 12050 2015-04-05_16:04:29 myKm200 /system/appliance/workingTime/totalSystem: 76724 2015-04-05_16:04:29 myKm200 /system/healthStatus: ok 2015-04-05_16:04:29 myKm200 /system/sensors/temperatures/chimney: 21.7 2015-04-05_16:04:29 myKm200 /system/sensors/temperatures/hotWater_t1: 32.9 2015-04-05_16:04:30 myKm200 /system/sensors/temperatures/outdoor_t1: 8.4 2015-04-05_16:04:30 myKm200 /system/sensors/temperatures/supply_t1: 29.8 2015-04-05_16:04:30 myKm200 /system/sensors/temperatures/supply_t1_setpoint: 11 2015-04-05_16:04:30 myKm200 fullResponse: OK 2015-04-05_16:05:30 myKm200 /dhwCircuits/dhw1/actualTemp: 32.9 2015-04-05_16:05:30 myKm200 /dhwCircuits/dhw1/setTemperature: 41 2015-04-05_16:05:30 myKm200 /dhwCircuits/dhw1/waterFlow: 0 2015-04-05_16:05:30 myKm200 /dhwCircuits/dhw1/workingTime: 63609 2015-04-05_16:05:30 myKm200 /gateway/DateTime: 2015-04-05T16:05:43 2015-04-05_16:05:30 myKm200 /gateway/instAccess: off 2015-04-05_16:05:30 myKm200 /gateway/instWriteAccess: off 2015-04-05_16:05:31 myKm200 /gateway/versionFirmware: 01.09.04 2015-04-05_16:05:31 myKm200 /heatSources/CHpumpModulation: 0 2015-04-05_16:05:31 myKm200 /heatSources/actualCHPower: 0 2015-04-05_16:05:31 myKm200 /heatSources/actualDHWPower: 0 2015-04-05_16:05:31 myKm200 /heatSources/actualPower: 0 2015-04-05_16:05:31 myKm200 /heatSources/actualSupplyTemperature: 29.8 2015-04-05_16:05:31 myKm200 /heatSources/fanSpeed: 0 2015-04-05_16:05:31 myKm200 /heatSources/fanSpeed_setpoint: 0 2015-04-05_16:05:31 myKm200 /heatSources/flameCurrent: 0 2015-04-05_16:05:40 myKm200 /heatSources/gasAirPressure: -0.1 2015-04-05_16:05:40 myKm200 /heatSources/nominalCHPower: 0 2015-04-05_16:05:40 myKm200 /heatSources/nominalDHWPower: 0 2015-04-05_16:05:40 myKm200 /heatSources/numberOfStarts: 7088 2015-04-05_16:05:40 myKm200 /heatSources/powerSetpoint: 100 2015-04-05_16:05:40 myKm200 /heatSources/systemPressure: 25.5 2015-04-05_16:05:40 myKm200 /heatSources/workingTime/centralHeating: 12050 2015-04-05_16:05:40 myKm200 /heatSources/workingTime/totalSystem: 76724 2015-04-05_16:05:41 myKm200 /heatingCircuits/hc1/activeSwitchProgram: Eigen1 2015-04-05_16:05:41 myKm200 /heatingCircuits/hc1/roomtemperature: 20.2 2015-04-05_16:05:41 myKm200 /heatingCircuits/hc1/status: INACTIVE 2015-04-05_16:05:41 myKm200 /solarCircuits/sc1/pumpModulation: 0 2015-04-05_16:05:41 myKm200 /system/appliance/CHpumpModulation: 0 2015-04-05_16:05:41 myKm200 /system/appliance/actualPower: 0 2015-04-05_16:05:41 myKm200 /system/appliance/fanSpeed: 0 2015-04-05_16:05:41 myKm200 /system/appliance/fanSpeed_setpoint: 0 2015-04-05_16:05:42 myKm200 /system/appliance/flameCurrent: 0 2015-04-05_16:05:42 myKm200 /system/appliance/nominalBurnerLoad: 0 2015-04-05_16:05:42 myKm200 /system/appliance/numberOfStarts: 7088 2015-04-05_16:05:42 myKm200 /system/appliance/powerSetpoint: 100 2015-04-05_16:05:42 myKm200 /system/appliance/systemPressure: 25.5 2015-04-05_16:05:42 myKm200 /system/appliance/workingTime/centralHeating: 12050 2015-04-05_16:05:42 myKm200 /system/appliance/workingTime/totalSystem: 76724 2015-04-05_16:05:42 myKm200 /system/healthStatus: ok 2015-04-05_16:05:42 myKm200 /system/sensors/temperatures/chimney: 21.7 2015-04-05_16:05:42 myKm200 /system/sensors/temperatures/hotWater_t1: 32.9 2015-04-05_16:05:43 myKm200 /system/sensors/temperatures/outdoor_t1: 8.4 2015-04-05_16:05:43 myKm200 /system/sensors/temperatures/supply_t1: 29.8 2015-04-05_16:05:43 myKm200 /system/sensors/temperatures/supply_t1_setpoint: 11 2015-04-05_16:05:43 myKm200 fullResponse: OK 2015-04-05_16:06:43 myKm200 /dhwCircuits/dhw1/actualTemp: 32.9 2015-04-05_16:06:43 myKm200 /dhwCircuits/dhw1/setTemperature: 41 2015-04-05_16:06:43 myKm200 /dhwCircuits/dhw1/waterFlow: 0 2015-04-05_16:06:43 myKm200 /dhwCircuits/dhw1/workingTime: 63609 2015-04-05_16:06:43 myKm200 /gateway/DateTime: 2015-04-05T16:06:55 2015-04-05_16:06:43 myKm200 /gateway/instAccess: off 2015-04-05_16:06:44 myKm200 /gateway/instWriteAccess: off 2015-04-05_16:06:44 myKm200 /gateway/versionFirmware: 01.09.04 2015-04-05_16:06:44 myKm200 /heatSources/CHpumpModulation: 0 2015-04-05_16:06:44 myKm200 /heatSources/actualCHPower: 0 2015-04-05_16:06:44 myKm200 /heatSources/actualDHWPower: 0 2015-04-05_16:06:44 myKm200 /heatSources/actualPower: 0 2015-04-05_16:06:44 myKm200 /heatSources/actualSupplyTemperature: 29.8 2015-04-05_16:06:44 myKm200 /heatSources/fanSpeed: 0 2015-04-05_16:06:44 myKm200 /heatSources/fanSpeed_setpoint: 0 2015-04-05_16:06:44 myKm200 /heatSources/flameCurrent: 0 2015-04-05_16:06:54 myKm200 /heatSources/gasAirPressure: -0.1 2015-04-05_16:06:54 myKm200 /heatSources/nominalCHPower: 0 2015-04-05_16:06:54 myKm200 /heatSources/nominalDHWPower: 0 2015-04-05_16:06:54 myKm200 /heatSources/numberOfStarts: 7088 2015-04-05_16:06:54 myKm200 /heatSources/powerSetpoint: 100 2015-04-05_16:06:54 myKm200 /heatSources/systemPressure: 25.5 2015-04-05_16:06:54 myKm200 /heatSources/workingTime/centralHeating: 12050 2015-04-05_16:06:54 myKm200 /heatSources/workingTime/totalSystem: 76724 2015-04-05_16:06:55 myKm200 /heatingCircuits/hc1/activeSwitchProgram: Eigen1 2015-04-05_16:06:55 myKm200 /heatingCircuits/hc1/roomtemperature: 20.2 2015-04-05_16:06:55 myKm200 /heatingCircuits/hc1/status: INACTIVE 2015-04-05_16:06:55 myKm200 /solarCircuits/sc1/pumpModulation: 0 2015-04-05_16:06:55 myKm200 /system/appliance/CHpumpModulation: 0 2015-04-05_16:06:55 myKm200 /system/appliance/actualPower: 0 2015-04-05_16:06:55 myKm200 /system/appliance/fanSpeed: 0 2015-04-05_16:06:55 myKm200 /system/appliance/fanSpeed_setpoint: 0 2015-04-05_16:06:56 myKm200 /system/appliance/flameCurrent: 0 2015-04-05_16:06:56 myKm200 /system/appliance/nominalBurnerLoad: 0 2015-04-05_16:06:56 myKm200 /system/appliance/numberOfStarts: 7088 2015-04-05_16:06:56 myKm200 /system/appliance/powerSetpoint: 100 2015-04-05_16:06:56 myKm200 /system/appliance/systemPressure: 25.5 2015-04-05_16:06:56 myKm200 /system/appliance/workingTime/centralHeating: 12050 2015-04-05_16:06:56 myKm200 /system/appliance/workingTime/totalSystem: 76724 2015-04-05_16:06:56 myKm200 /system/healthStatus: ok 2015-04-05_16:06:56 myKm200 /system/sensors/temperatures/chimney: 21.7 2015-04-05_16:06:56 myKm200 /system/sensors/temperatures/hotWater_t1: 32.9 2015-04-05_16:06:57 myKm200 /system/sensors/temperatures/outdoor_t1: 8.4 2015-04-05_16:06:57 myKm200 /system/sensors/temperatures/supply_t1: 29.8 2015-04-05_16:06:57 myKm200 /system/sensors/temperatures/supply_t1_setpoint: 11 2015-04-05_16:06:57 myKm200 fullResponse: OK 2015-04-05_16:07:57 myKm200 /dhwCircuits/dhw1/actualTemp: 32.9 2015-04-05_16:07:57 myKm200 /dhwCircuits/dhw1/setTemperature: 41 2015-04-05_16:07:57 myKm200 /dhwCircuits/dhw1/waterFlow: 0 2015-04-05_16:07:57 myKm200 /dhwCircuits/dhw1/workingTime: 63609 2015-04-05_16:07:57 myKm200 /gateway/DateTime: 2015-04-05T16:08:10 2015-04-05_16:07:57 myKm200 /gateway/instAccess: off 2015-04-05_16:07:57 myKm200 /gateway/instWriteAccess: off 2015-04-05_16:07:58 myKm200 /gateway/versionFirmware: 01.09.04 2015-04-05_16:07:58 myKm200 /heatSources/CHpumpModulation: 0 2015-04-05_16:07:58 myKm200 /heatSources/actualCHPower: 0 2015-04-05_16:07:58 myKm200 /heatSources/actualDHWPower: 0 2015-04-05_16:07:58 myKm200 /heatSources/actualPower: 0 2015-04-05_16:07:58 myKm200 /heatSources/actualSupplyTemperature: 29.8 2015-04-05_16:07:58 myKm200 /heatSources/fanSpeed: 0 2015-04-05_16:07:58 myKm200 /heatSources/fanSpeed_setpoint: 0 2015-04-05_16:07:58 myKm200 /heatSources/flameCurrent: 0 2015-04-05_16:07:59 myKm200 /heatSources/flameStatus: off 2015-04-05_16:07:59 myKm200 /heatSources/gasAirPressure: -0.1 2015-04-05_16:07:59 myKm200 /heatSources/nominalCHPower: 0 2015-04-05_16:07:59 myKm200 /heatSources/nominalDHWPower: 0 2015-04-05_16:07:59 myKm200 /heatSources/numberOfStarts: 7088 2015-04-05_16:07:59 myKm200 /heatSources/powerSetpoint: 100 2015-04-05_16:07:59 myKm200 /heatSources/systemPressure: 25.5 2015-04-05_16:07:59 myKm200 /heatSources/workingTime/centralHeating: 12050 2015-04-05_16:08:00 myKm200 /heatSources/workingTime/totalSystem: 76724 2015-04-05_16:08:09 myKm200 /heatingCircuits/hc1/roomtemperature: 20.2 2015-04-05_16:08:09 myKm200 /heatingCircuits/hc1/status: INACTIVE 2015-04-05_16:08:09 myKm200 /solarCircuits/sc1/pumpModulation: 0 2015-04-05_16:08:09 myKm200 /system/appliance/CHpumpModulation: 0 2015-04-05_16:08:09 myKm200 /system/appliance/actualPower: 0 2015-04-05_16:08:09 myKm200 /system/appliance/fanSpeed: 0 2015-04-05_16:08:09 myKm200 /system/appliance/fanSpeed_setpoint: 0 2015-04-05_16:08:09 myKm200 /system/appliance/flameCurrent: 0 2015-04-05_16:08:09 myKm200 /system/appliance/nominalBurnerLoad: 0 2015-04-05_16:08:09 myKm200 /system/appliance/numberOfStarts: 7088 2015-04-05_16:08:10 myKm200 /system/appliance/powerSetpoint: 100 2015-04-05_16:08:10 myKm200 /system/appliance/systemPressure: 25.5 2015-04-05_16:08:10 myKm200 /system/appliance/workingTime/centralHeating: 12050 2015-04-05_16:08:10 myKm200 /system/appliance/workingTime/totalSystem: 76724 2015-04-05_16:08:10 myKm200 /system/healthStatus: ok 2015-04-05_16:08:10 myKm200 /system/sensors/temperatures/chimney: 21.7 2015-04-05_16:08:10 myKm200 /system/sensors/temperatures/hotWater_t1: 32.9 2015-04-05_16:08:10 myKm200 /system/sensors/temperatures/outdoor_t1: 8.4 2015-04-05_16:08:10 myKm200 /system/sensors/temperatures/supply_t1: 29.8 2015-04-05_16:08:10 myKm200 /system/sensors/temperatures/supply_t1_setpoint: 11 2015-04-05_16:08:10 myKm200 fullResponse: OK
Ich bräuchte die Werte von ../hotWater_t1 und ../outdoor_t1 und diese dann in einer Zeile in sas angezeigt. Hat jemand code-schnipsel in die ich mich mal rein denken kann?
edit: huih:
Code:tail -n 15 /media/usbstick/fhem/myKm200-2015-04.log | grep -E '(outdoor_t1)' #2015-04-05_16:23:21 myKm200 /system/sensors/temperatures/hotWater_t1: 32.9 tail -n 15 /media/usbstick/fhem/myKm200-2015-04.log | grep -E '(hotWater_t1)' #2015-04-05_16:24:42 myKm200 /system/sensors/temperatures/outdoor_t1: 8.1
funktioniert: aber wie bekomme ich jetzt eine Zeile zusammen gebastelt und in sas reingefummelt?
Mit grep und dem regulären Ausdruck "[r]_t1" erwischt du Alle.
...die kommen aber öfter drin vor, also aufgepasst.
Das Ergebnis also nach Datum sortieren lassen und die Letzten auswählen.
vermutlich ist das gruselig wie ich das hinbastel ..
Code:tail -n 15 /media/usbstick/fhem/myKm200-2015-04.log | grep -E '(hotWater_t1:)' | cut -c71-75
liefert mit den Wert.
Jetzt muss ich in einem psg das anzeigen, läuft alles auf dem gleichen device
Bei welchem psg kann ich mir das am besten abschauen? Das von der Himbeere ist eine wenig kompliziert
Jetzt suche ich ein psg dass mir die beiden Werte von
Code:
tail -n 15 /media/usbstick/fhem/myKm200-2015-04.log | grep -E '(hotWater_t1:)' | cut -c71-75
und
Code:
tail -n 15 /media/usbstick/fhem/myKm200-2015-04.log | grep -E '(outdoor_t1:)' | cut -c69-74
anzeigt.
Zuletzt bearbeitet: