Weewx-sdr Oregon THR228N sensor not parsed .

106 views
Skip to first unread message

Pramod Visham

unread,
Jun 7, 2022, 4:21:01 AM6/7/22
to weewx-user
Hello !
I try to use an  Oregon THR228N sensor in weewx with weewx-sdr.
When i run the driver , i receive an OUT message but no Parsed message .
Here is the output :

out: ['{"time" : "2022-06-07 08:17:09", "model" : "Oregon-THR228N", "id" : 211, "channel" : 1, "battery_ok" : 0, "temperature_C" : -19.900}\n', '{"time" : "2022-06-07 08:17:09", "model" : "Oregon-THR228N", "id" : 211, "channel" : 1, "battery_ok" : 0, "temperature_C" : -19.900}\n']


I've changed the label in sdr.py from    IDENTIFIER = "Thermo Sensor THR228N" to   IDENTIFIER = "Oregon-THR228N" but have the same result .

Do you have an idea ?
Thank for help and sheers from france !


Andy

unread,
Jun 7, 2022, 8:43:36 AM6/7/22
to weewx-user
Test this one out and let me know. If it works I will create a pull and get it added to the driver repo.

Andy

sdr.py

Pramod Visham

unread,
Jun 7, 2022, 10:11:55 AM6/7/22
to weewx-user
Hello Andy , thank you for you nice help !
Now it works wit your file sdr.py  !!
but before there is a small syntax error to correct .

                                                   return OS.insert_ids(pkt, OSTHR228Packet.__name__)N
must be replaced by                return OS.insert_ids(pkt, OSTHR228NPacket.__name__)N 

And now !!!!


sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py --cmd="rtl_433 -M utc -F json"
out: ['{"time" : "2022-06-07 14:02:18", "model" : "Fineoffset-WH2", "id" : 227, "temperature_C" : 18.600, "humidity" : 82, "mic" : "CRC"}\n']
out: ['{"time" : "2022-06-07 14:02:59", "model" : "Oregon-THR228N", "id" : 211, "channel" : 1, "battery_ok" : 0, "temperature_C" : -21.300}\n', '{"time" : "2022-06-07 14:02:59", "model" : "Oregon-THR228N", "id" : 211, "channel" : 1, "battery_ok" : 0, "temperature_C" : -21.300}\n']
parsed: {'dateTime': 1654610579, 'usUnits': 16, 'battery.1:211.OSTHR228NPacket': 1, 'temperature.1:211.OSTHR228NPacket': -21.3}
parsed: {'dateTime': 1654610579, 'usUnits': 16, 'battery.1:211.OSTHR228NPacket': 1, 'temperature.1:211.OSTHR228NPacket': -21.3}
out: ['{"time" : "2022-06-07 14:03:06", "model" : "Fineoffset-WH2", "id" : 227, "temperature_C" : 18.700, "humidity" : 82, "mic" : "CRC"}\n']


I thank you very very very much , I can now continue my small home made weather station project !
Thank you and have a nice week !

Andy

unread,
Jun 7, 2022, 10:43:45 AM6/7/22
to weewx-user
Reply all
Reply to author
Forward
0 new messages