pull/22/head
weetmuts 2019-01-28 00:08:47 +01:00
rodzic 6255e63c22
commit ad9c6b4f2f
1 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -68,16 +68,15 @@ wmbusmeters will detect which kind of dongle is connected to /dev/ttyUSB0. It ca
Example output:
`MyTapWater 12345678 6.388 m3 6.377 m3 8°C 23°C DRY(dry 22-31 days) 2018-03-05 12:02.50`
`MyTapWater 12345678 6.388 m3 6.377 m3 0.000 m3/h 8°C 23°C DRY(dry 22-31 days) 2018-03-05 12:02.50`
(Temperature is only sent every 8 message. Until such a full message has been received, the temperature is reported as -°C
in the human readable output, and as 127°C in the robot outputs and json.)
(Here the multical21 itself, is configured to send target volume, therefore the max flow is 0.000 m3/h.)
Example robot json output:
`wmbusmeters --robot=json auto MyTapWater multical21 12345678 00112233445566778899AABBCCDDEEFF MyHeater multical302 22222222 00112233445566778899AABBCCDDEEFF`
`{"media":"cold water","meter":"multical21","name":"MyTapWater","id":"12345678","total_m3":6.388,"target_m3":6.377,"flow_temperature":8,"external_temperature":23,"current_status":"DRY","time_dry":"22-31 days","time_reversed":"","time_leaking":"","time_bursting":"","timestamp":"2018-02-08T09:07:22Z"}`
`{"media":"cold water","meter":"multical21","name":"MyTapWater","id":"12345678","total_m3":6.388,"target_m3":6.377,"max_flow_m3h":0.000,"flow_temperature":8,"external_temperature":23,"current_status":"DRY","time_dry":"22-31 days","time_reversed":"","time_leaking":"","time_bursting":"","timestamp":"2018-02-08T09:07:22Z"}`
`{"media":"heat","meter":"multical302","name":"MyHeater","id":"22222222","total_kwh":0.000,"total_volume_m3":0.000,"current_kw":"0.000","timestamp":"2018-02-08T09:07:22Z"}`
@ -85,7 +84,7 @@ Example robot fields output:
`wmbusmeters --robot=fields auto GreenhouseWater multical21 33333333 ""`
`GreenhouseTapWater;33333333;9999.099;77.712;11;31;;2018-03-05 12:10.24`
`GreenhouseTapWater;33333333;9999.099;77.712;0.000;11;31;;2018-03-05 12:10.24`
Eaxmple of using the shell command to publish to MQTT: