Working on an NWS Driver

47 views
Skip to first unread message

Kenny Stier

unread,
Jan 24, 2022, 6:48:05 PM1/24/22
to weewx-user
I have a Weewx setup at home and really like the website it generates.
I'm living 2 hours away on a college campus now, and want a similar experience here, but I'm too cheap to buy another weather station, so I'm developing a driver that pulls data from the National Weather Service API.


It is working, but for some reason
If just left to run as normal (weewx runs in background as service), the data is not updated (keeps feeding the same old data), so as a hacky workaround a cronjob is restarting weewx every so often

Anyone with driver experience have any pointers?

Tom Keffer

unread,
Jan 24, 2022, 7:00:49 PM1/24/22
to weewx-user
Two comments:

You're doing a lot of non-standard Python, which makes it hard to follow what you're doing (variables named 'dict', declaration of 'self.observations' outside of where 'self' is in scope, etc). This makes it too hard to debug in my head.

Second, it's really hard to tell what's going on without the log. See the wiki article Help! Posting to weewx-user.

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/aaa56e8a-65d7-4d9a-9bc0-488df63486b8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages