kopia lustrzana https://github.com/weetmuts/wmbusmeters
Added test yet another q water 5.5
rodzic
224cdb3550
commit
88b2386311
|
@ -22,3 +22,9 @@ telegram=|2D4465327663341317077AAA0000000C13044001004C1340620000426C9F2C02BB5600
|
||||||
telegram=|2D4465321413121116077A900000000C13565906004C1336400600426C9F2C02BB560000326CFFFF046D3405BA25|
|
telegram=|2D4465321413121116077A900000000C13565906004C1336400600426C9F2C02BB560000326CFFFF046D3405BA25|
|
||||||
{"media":"water","meter":"lse_07_17","name":"QWW","id":"11121314","total_m3":65.956,"due_date_m3":64.036,"due_date":"2020-12-31","error_code":"OK","error_date":"2127-15-31","device_date_time":"2021-05-26 05:52","timestamp":"1111-11-11T11:11:11Z"}
|
{"media":"water","meter":"lse_07_17","name":"QWW","id":"11121314","total_m3":65.956,"due_date_m3":64.036,"due_date":"2020-12-31","error_code":"OK","error_date":"2127-15-31","device_date_time":"2021-05-26 05:52","timestamp":"1111-11-11T11:11:11Z"}
|
||||||
|QWW;11121314;65.956000;64.036000;2020-12-31;OK;2127-15-31;2021-05-26 05:52;1111-11-11 11:11.11
|
|QWW;11121314;65.956000;64.036000;2020-12-31;OK;2127-15-31;2021-05-26 05:52;1111-11-11 11:11.11
|
||||||
|
|
||||||
|
# Test yet another Qundis QWater5.5 meter.
|
||||||
|
|
||||||
|
telegram=|2D4465320877411218067A8C0000000C13122100004C1300000000426CFFFF02BB560000326CFFFF046D2104BC2B|
|
||||||
|
{"media":"warm water","meter":"lse_07_17","name":"QWWW","id":"12417708","total_m3":2.112,"due_date_m3":0,"due_date":"2127-15-31","error_code":"OK","error_date":"2127-15-31","device_date_time":"2021-11-28 04:33","timestamp":"1111-11-11T11:11:11Z"}
|
||||||
|
|QWWW;12417708;2.112000;0.000000;2127-15-31;OK;2127-15-31;2021-11-28 04:33;1111-11-11 11:11.11
|
||||||
|
|
|
@ -11,7 +11,8 @@ TESTRESULT="ERROR"
|
||||||
METERS="HCA auto 91835132 NOKEY \
|
METERS="HCA auto 91835132 NOKEY \
|
||||||
HCA2 auto 04998541 NOKEY \
|
HCA2 auto 04998541 NOKEY \
|
||||||
QW auto 13346376 NOKEY \
|
QW auto 13346376 NOKEY \
|
||||||
QWW auto 11121314 NOKEY"
|
QWW auto 11121314 NOKEY \
|
||||||
|
QWWW auto 12417708 NOKEY"
|
||||||
|
|
||||||
cat simulations/simulation_s1.txt | grep '^{' > $TEST/test_expected.txt
|
cat simulations/simulation_s1.txt | grep '^{' > $TEST/test_expected.txt
|
||||||
$PROG --format=json simulations/simulation_s1.txt $METERS > $TEST/test_output.txt 2> $TEST/test_stderr.txt
|
$PROG --format=json simulations/simulation_s1.txt $METERS > $TEST/test_output.txt 2> $TEST/test_stderr.txt
|
||||||
|
|
Ładowanie…
Reference in New Issue