wow strange…
This is my code for the first reading.
{
"id": "energymeter2",
"name": "Current Meter",
"class": "LogWatcher",
"file": "/home/pi/rob.log",
"attributes": [
{
"name": "current",
"type": "number",
"unit": "kW"
}
],
"lines": [
{
"match": "1-0:1\\.7\\.0\\x28([0-9]+\\.[0-9]+).kW\\x29",
"Current": "$1"
}
]
},
My log file looks like this:
/KMP5 KA6U001584708311
0-0:96.1.1(204B413655303031353834373038333131)
1-0:1.8.1(09882.000*kWh)
1-0:1.8.2(11017.000*kWh)
1-0:2.8.1(00000.000*kWh)
1-0:2.8.2(00000.000*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(0000.78*kW)
1-0:2.7.0(0000.00*kW)
0-0:17.0.0(999*A)
0-0:96.3.10(1)
0-0:96.13.1()
0-0:96.13.0()
0-1:24.1.0(3)
0-1:96.1.0(3238313031353431303033303435303131)
0-1:24.3.0(150215140000)(00)(60)(1)(0-1:24.2.1)(m3)
(02852.891)
0-1:24.4.0(1)
!
But when using your script it shows:
https://dl.dropboxusercontent.com/u/68234596/2015-02-15_21-19-53.png
0000000
I CAN capture the 3 digits behind the .
But this is useless when consuming 0001.201*kW
totally lost right now…
Tomorrow there is an other day… Maybe I can see the type/mistake that i made…