Closed benlye closed 2 years ago
I'm fighting this exact same issue right now. Temporarily fixed in my instance by:
sed -i 's/Fine Offset WH1080 weather station/Fineoffset-WHx080/g' /usr/share/weewx/user/sdr.py
Follow-up info: https://github.com/merbanan/rtl_433/commit/12b50e5370ac153ee7848aa545d40c1f1669ea5b This was done over a year ago.
I need to check if any of the packet names have changed also.
Also discussed here: https://github.com/merbanan/rtl_433/pull/986
Furthermore it looks like some of the key names have changed in this version too:
I'm made a PR locally, I wasn't sure if it was just my variant of the machine, but now it truly looks like the following diff:
I've already got this ready @matthewwall what's the strategy here, RTL-433 has been changed, has nobody else been hit by this?
I've got a ready to go fix for the WH-1080 including model name and wind key fixes which I've tested extensively. I've also been tested on RTL-433 v19 and it indeed behaves as your whew plugin expected.
Presumably anyone who takes the latest RTL-433 available in ubuntu-focal's repo will have this problem also, which I imagine if they intend to use RTL-433 v19, they should use a stable/tagged version not master right?
With that in mind I'll create a PR to master, we'll have to get a move on updating... but I can't own models outside of WH1080, let me know in the PR if you prefer a new branch for RTL-433 v20
Issue confirmed on Ubuntu Focal and Fine Offset WH65B or Fineoffset-WH65B
I think since this code is based on sdr_433, it should be updated to match the newest names in sdr_433. Anybody who updates their copy of weewx-sdr will probably also obtain a recent sdr_433 that will break weewx-sdr, and people who don't update won't be affected, so I think it's mostly safe to make this change.
If nobody objects, @mitchins would you mind making a PR for this?
@vittorio88 the names are updated in #88
I had the same issue with the Fine Offset WH24. OLD = IDENTIFIER = "Fine Offset WH24 " NEW = IDENTIFIER = "Fineoffset-WH24
i have been updating each IDENTIFIER to match those of the latest rtl_433. keep old IDENTIFIERs in the code with a comment, just in case someone is stuck using and older rtl_433 for whatever reason. when the field names change, i try to maintain backward compatibility, if possible, by testing for the older name.
It looks like rt_433 has changed the model names it uses when parsing data, see https://github.com/merbanan/rtl_433/pull/986
For now it is possible to use the old names by appending
-M oldmodel
but this generates a warning at startup:It seems like sdr.py needs updating to use the new model names, because without the
-M oldmodel
switch on rtl_433 the output is not parsed by the SDR driver.For example, trying to read from a WH1080 weather station produced this output in the log: