copy a api/telegram into a local text file
Posted: Tuesday 09 March 2021 20:37
Hi There
I have a P1 dongle into my smart meter. I want to capture the values and use them into Domoticz.
The values I got from the P1 dongle is in a telegram style. on a local ip 192.168.178.16/api/v1/telegram, and it looks like this:
/ISK5\2M550T-1013
1-3:0.2.8(50)
0-0:1.0.0(210309202253W)
0-0:96.1.1(4530303534303037363733333231333230)
1-0:1.8.1(000733.488*kWh)
1-0:1.8.2(000839.845*kWh)
1-0:2.8.1(000061.240*kWh)
1-0:2.8.2(000145.582*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(02.441*kW)
1-0:2.7.0(00.000*kW)
0-0:96.7.21(00004)
0-0:96.7.9(00004)
1-0:99.97.0(2)(0-0:96.7.19)(200529212626S)(0000000228*s)(201025114028W)(0000000776*s)
1-0:32.32.0(00000)
1-0:52.32.0(00000)
1-0:72.32.0(00000)
1-0:32.36.0(00001)
1-0:52.36.0(00001)
1-0:72.36.0(00001)
0-0:96.13.0()
1-0:32.7.0(226.4*V)
1-0:52.7.0(224.7*V)
1-0:72.7.0(225.9*V)
1-0:31.7.0(001*A)
1-0:51.7.0(009*A)
1-0:71.7.0(000*A)
1-0:21.7.0(00.212*kW)
1-0:41.7.0(02.221*kW)
1-0:61.7.0(00.004*kW)
1-0:22.7.0(00.000*kW)
1-0:42.7.0(00.000*kW)
1-0:62.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303634303032303130373737393230)
0-1:24.2.1(210309202003W)(00865.754*m3)
!
I found a topic (Domoticz + P1 monitor share device) about this and the solution was a script that writes the values to the devices, but that script was based on a file who got filled bij a p1 monitor.
My question is: is there a possibility to copy the telegram (frequently) from the site and write it down to a local text file on my raspberry?
So I can use the script wrote for the p1 monitor.
Grtz Fonger
I have a P1 dongle into my smart meter. I want to capture the values and use them into Domoticz.
The values I got from the P1 dongle is in a telegram style. on a local ip 192.168.178.16/api/v1/telegram, and it looks like this:
/ISK5\2M550T-1013
1-3:0.2.8(50)
0-0:1.0.0(210309202253W)
0-0:96.1.1(4530303534303037363733333231333230)
1-0:1.8.1(000733.488*kWh)
1-0:1.8.2(000839.845*kWh)
1-0:2.8.1(000061.240*kWh)
1-0:2.8.2(000145.582*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(02.441*kW)
1-0:2.7.0(00.000*kW)
0-0:96.7.21(00004)
0-0:96.7.9(00004)
1-0:99.97.0(2)(0-0:96.7.19)(200529212626S)(0000000228*s)(201025114028W)(0000000776*s)
1-0:32.32.0(00000)
1-0:52.32.0(00000)
1-0:72.32.0(00000)
1-0:32.36.0(00001)
1-0:52.36.0(00001)
1-0:72.36.0(00001)
0-0:96.13.0()
1-0:32.7.0(226.4*V)
1-0:52.7.0(224.7*V)
1-0:72.7.0(225.9*V)
1-0:31.7.0(001*A)
1-0:51.7.0(009*A)
1-0:71.7.0(000*A)
1-0:21.7.0(00.212*kW)
1-0:41.7.0(02.221*kW)
1-0:61.7.0(00.004*kW)
1-0:22.7.0(00.000*kW)
1-0:42.7.0(00.000*kW)
1-0:62.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303634303032303130373737393230)
0-1:24.2.1(210309202003W)(00865.754*m3)
!
I found a topic (Domoticz + P1 monitor share device) about this and the solution was a script that writes the values to the devices, but that script was based on a file who got filled bij a p1 monitor.
My question is: is there a possibility to copy the telegram (frequently) from the site and write it down to a local text file on my raspberry?
So I can use the script wrote for the p1 monitor.
Grtz Fonger