The port is where packages from FreeBSD come from. I saw this too, someone is working on a package/port but it's not been released yet. # grep "*weewx*" INDEX-11 # Didn't see weewx in /usr/ports/astro either.
I also pondered reading kern.boottime: { sec = 1481505110, usec = 141127 } Sun Dec 11 17:11:50 2016 and parsing it. I'm very much a beginner on python. The patch I submitted was the first version I got to work. But I also see portability issues with hard coded library names. Hence the question to the group, if you want to add more OS support, could a few changes be made so the testing doesn't have to occur on every execution. People could just plugin in their OS and it would select the right routine and it would be easy to add more OS detection by just adding to station.py. On Monday, December 12, 2016 at 6:40:13 PM UTC-8, mwall wrote: > > bill, > > i'm not sure what you mean by 'port', but i'm pretty sure there is a weewx > port (i.e., package) for freebsd: > > https://reviews.freebsd.org/D6324 > > the cmon extension has to deal with many platform-specific operations. at > first i wrote it using /sys and /proc, but then i discovered the python > package psutil: > > https://github.com/giampaolo/psutil > > i still have not done the bsd collector, but using psutil made it *much* > easier to do the macosx collector. > > we cannot make weewx depend on psutil, but you might want to look at the > psutil source code to see how they do platform-specific system calls in a > platform agnostic way. > > m >