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.

Reply via email to