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 !