[weewx-development] Re: Advice on a new driver and how to make it available

2017-03-20 Thread vk3anz
Hopefully the last request: I have what I believe should be the V1.0 gz 
file.
What do I do with it now to make it available?
I've not done this sort of thing before and (at least in this aspect) I'm a 
total novice.
Thanks
Susan


[weewx-development] Re: UPDATE: wee_debug: add support for *BSD sysinfo and load information

2017-03-20 Thread Bill Richter
Yes, I noticed that as well, as the deprecated % issue.  I followed the 
existing way.  I'll give the conversion a try and submit a new pull 
request. I think I've got my local repository in sync with the  master 
now.  I'm an SVN user, struggling with git.

On Monday, March 20, 2017 at 5:54:10 AM UTC-7, mwall wrote:
>
> bill,
>
> thanks for posting this.
>
> we probably should refactor the platform stuff in wee_debug.  instead of 
> checking for a specific *platform*, it should check for specific *features*.
>
> for example, it can easily spit out standard platform stuff:
>
> platform.python_version()
> platform.platform()
> platform.version()
>
> there is no need to do any platform check on these.
>
> then for load, it can check for "is this system able to spit out load 
> information" instead of "is this system linux?":
>
> try:
> os.getloadavg()
> ...
> except OSError:
> print "load average not available on this platform"
>
> also, it might be helpful to emit environment:
>
> print "Environment:"
> for n in os.environ:
> print "%s=%s" % (n, os.environ[n])
>
> all of this can be done without testing for bsd, linux, macos, windows, ...
>
> m
>