Closed timverm-ikdoeict closed 2 years ago
Ok, sorry i was too quick. After comparing the source code here, i've found a difference in the parsePacket.js code in my installation. In the latest version, extra codes are added for converting gas values. These are not in my version. The nodered node (https://github.com/onokje/node-red-contrib-p1reader) is referencing p1-reader@^2.0.4, but for some reason it is not using the latest version of your code. Unless you have any idea why, i guess i will have to look there for a solution. I temporary fixed the problem by manually editing the code in parsePacket.js. It is working now.
Thanks anyway!
Hi, yes the library should support Belgian gas readings, although I cannot test it myself since I live in the netherlands. I've never used the NodeRed lib you are referring to, so cannot help you there. Hopefully its owner can help you out :)
Hi!
First of all thanks for creating this great library. I'm using it in the nodered p1reader node.
I have however a problem reading gas meter values. Electrical values are fine. I have a combination of a digital electrical meter (T211) and gas meter (UNIFLO,G4SRTV,S4) from Fluvius. Both meters are wireless connected so i can read my gas meter values from my electrical meter. When i read out my serial port, it looks like this:
(I replaced everything that remotely looked like an ID. I hope i didn't remove too much.)
I get the above output from
python3 -m serial.tools.miniterm /dev/ttyUSB2 115200
So the configuration i use is 115200,8,N,1The json i get in nodered however has
null
values for al the fields, except deviceType and valvePosition.{ "deviceType":"003", "equipmentId":null, "timestamp":null, "reading":null, "unit":null, "valvePosition":"1" }
Do you see any difference in the format your library support that can cause this problem?Thanks! Tim