Re: [weewx-user] Re: FineOffsetUSB lockup - Possible solution for unattended reset

2017-06-09 Thread Alexandros Bagos
Hello,
The reason this does not work is because the Pi does not actually cut the 
power from the USB port, it cuts the data signal. You can only cut the 
power from all USB ports including the Ethernet port. This is the way 
exactly as I found it elsewhere:


To shut off power on USB ports (this shuts power on ethernet as well):
echo '1-1' |sudo tee /sys/bus/usb/drivers/usb/unbind

To turn power back on
echo '1-1' |sudo tee /sys/bus/usb/drivers/usb/bind

Network functions and USB drivers appear to recover just fine after turning 
power back on.

Alex.

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


[weewx-user] Re: weewx operating systems

2017-06-09 Thread Ξ
Hi Gary,

That was quite informative, thanks :)

You understood me well, I meant to say that since weewx can get the OS 
uptime and this is published on the map, it should easily also obtain the 
OS version.

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


[weewx-user] weewx operating systems

2017-06-09 Thread gjr80
Hi,

Not sure exactly what you mean by 'report the OS or only the uptime'?

WeeWX reports the time since weeWX was started through tag $station.uptime. The 
value is calculated as the number of elapsed seconds since a timestamp that is 
recorded during weeWX startup.

As long as the system clock works $station.uptime should work fine under 
Solaris.

The tag $station.os_uptime is somewhat more complex. First weeWX assumes the OS 
is Linux based and tries to get the number of seconds the OS has been up from 
file /proc/uptime. If this results in an error weeWX assumes this is a Mac and 
tries to get the OS uptime in seconds using 
Quartz.QuartzCore.CACurrentMediaTime(). If this throws an error weeWX assumes 
the OS is FreeBSD and uses ctypes.util.find_library() to obtain the OS uptime 
in seconds. If this fails $station.os_uptime is set to None.

I know little of Solaris, but if it does not fit one of the three cases above 
$station.os_uptime will be None.

Or have I completely misunderstood your question/musing?

Gary

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