I agree: stacks and stacks of try / except statements can lead to indent
hell.
One way to cut that down is to use functions. Each function would try /
except a set of related operating systems, and if none of them work, raise
NotImplementedError. The main function would then just have to catch
Dear weewx developer community,
I'm a playing a bit currently with "Belchertown" very nice weewx skin
(https://github.com/poblabs/weewx-belchertown).
This skins uses "windy" (https://www.windy.com/) to display rain radar +
thunder map.
Windy seems to provide several maps layers, android app
That is a good point, and it doesn’t look from that code as though windows is
currently supported. I might take a look at writing something that does switch
on OS with differing strategies. I kind of don’t like that approach in general
(because it feels like the ‘ol “version check” in windows
Hi,
So firstly, I know it's been mentioned before and there's a reluctance to
add dependencies on external modules for this, but there do appear to be
some that would be very useful and give broad support for OS uptime
reporting, eg:
https://pypi.org/project/uptime/
That said, if we want a
Looks like they just published their API, all of 10 hours ago!
https://community.windy.com/topic/8168/report-you-weather-station-data-to-windy/2
On Mon, Apr 15, 2019 at 4:18 PM Wysiwyg wrote:
>
> Dear weewx developer community,
>
> I'm a playing a bit currently with "Belchertown" very nice
The pastebin version looks reasonable. I don't have a problem with the
dictionary mapping to an appropriate function, provided that the OS names
have been standardized. Have they?
Definitely needs to be tested. The easiest is to set up a bunch of VMs (or
Docker boxes) on your development machine
Hi Thomas,
Yep, dockering or AWSing a bunch of test cases was kind of what I was
thinking - I just didn't want to waste the time if the approach wasn't on
the right path :)
Regarding platform.system() - according to the documentation, yes, they are
standardized. Looking at their source code,
here is an uploader for windy:
https://github.com/matthewwall/weewx-windy
unfortunately it is not yet working - when i hit node.windy.com i get:
Cannot GET /pws/update
i'm guessing its an https thing...
m
Hello !
Oh my god guys, Internet is going too fast for me now :-)
yesterday I discover a discussion about an API project, I share a message
about before going to sleep.
When I wake upTom discovered it's already available, Matthew already
developed a driver. :-O
Are we living in the same