Hi All, been submitting to wunderground for some time with pywws and a 
wh-1080 running on my openwrt router, but it was intermittent with various 
issues (in the station) so have upgraded to WMR200 and have switched over 
here to weewx.

Ill be writing up a guide about the steps i followed to get it all 
installed and working, and post a link in this thread.

To start with i wanted to bring something up to see if its just me on 
opnwrt and a minimal python or a wider bug/limitation of wmr200.

So i mainly use my setup for posting to wunderground, and they only keep 
data down to 5 min interval, so no point submitting it any more frequently.

The default archive interval of the wmr200 is 1 minute, and the default 
setting in weewxd config is 5 mins (300 seconds)

The behavior of weewx is to preference the station "hardware" setting over 
the config file setting, with a startup log message something like this:

"The archive interval in the configuration file (300) does not match the 
station hardware interval (60)."
"Using archive interval of 60 seconds (specified by hardware)"

This is all fine and well, but the problem is when i went and changed the 
station interval to 5 mins, *weewxd still "detects" and reports that its 
set at 60 seconds, *i even tried clearing the station archive data and 
weewx database.

So i tried tracking down the code in the source that reads out the archive 
interval setting, and got as close as this code in wmr200.py driver:

        # Archive interval in seconds.
        self._archive_interval = int(stn_dict.get('archive_interval', 60))
        if self._archive_interval not in [60, 300]:
            logwar('Unverified archive interval:%d sec'
                   % self._archive_interval)

I tried to find out what *stn_dict.get *does but could not track it down, 
so not sure if the '60' argument is a default or override, and how it 
interacts with the actual station setting if it is or can read it ?


As setting it to 300, makes the driver report that the interval setting is 
300 seconds (5 mins)

Any thoughts ???

Thanks.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to