gjr80 / weewx-realtime_gauge-data

Near realtime support for updating of SteelSeries Weather Gauges by WeeWX
GNU General Public License v3.0
9 stars 5 forks source link

Zambretti forecast is not displayed in the scroller #32

Closed gjr80 closed 1 year ago

gjr80 commented 1 year ago

When [RealtimeGaugeData] scroller_source is set to Zambretti nothing is displayed in the scroller despite a current and valid Zambretti forecast existing in the forecast database.

This weewx-user thread refers.

gjr80 commented 1 year ago

Issue reproduced on a VM running WeeWX 4.10.1, RTGD v0.6.3 and chaunceygardiner weewx-forecast v3.4.0b12.

Looking at gauge-data.txt the forecast field is set to '' (zero length string).

gjr80 commented 1 year ago

Problem was RTGD could not get a rtgd.Zambretti object under a default install (ie when no [RealtimeGaugeData] [[Zambretti]] stanza existed). Under a default install RTGD should use the forecast extension Zambretti config, but this was prevented due to an exception occurring in the ZambrettiSource thread. The fix was to return an empty dict rather than None if the [RealtimeGaugeData] [[Zambretti]] stanza does not exist.

Fixed at commit 828af554439c6c7c03fa74d5a30632b184c02c7f, to be included in v0.6.4.