you are welcome!

https://github.com/matthewwall/weewx-sdr/pull/150/commits/9c86098e19f237e43a27f77c93b16565afe1f4f3

Andy

On Tuesday, June 7, 2022 at 7:11:55 AM UTC-7 [email protected] wrote:

> 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 !
>
> Le mardi 7 juin 2022 à 14:43:36 UTC+2, Andy a écrit :
>
>> 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
>>
>> On Tuesday, June 7, 2022 at 1:21:01 AM UTC-7 [email protected] wrote:
>>
>>> 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 !
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2112d78d-076b-46f3-84b0-29a0d32b5527n%40googlegroups.com.

Reply via email to