[weewx-user] Re: UV Sensor Battery Indicator

2019-07-15 Thread Neil S
So as mwall suggested I removed the two lines `#if 
#day.uvBatteryStatus.has_data` and `#end if`

I now have:-

UV Battery  OK

Displayed on the web page.

Thanks mwall. 

N.


On Saturday, 29 June 2019 12:12:22 UTC+1, Neil S wrote:
>
> So I have just upgraded to 3.9.1 (on Raspberry Pi).  Using the nice new 
> skin but cannot work out how to get the UV Sensor battery to show on the 
> web page. UV levels etc show OK but cant get battery status to show 
> (despite some config file fiddling)
>
> (WRM88 weather station) 
>
> Is it possible?
>
> Neil
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ff8201b8-0e6f-4f09-a983-e575ec6008e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: UV Sensor Battery Indicator

2019-07-04 Thread Neil S
OK ignore that sensor map I posted - my bad

weewx.conf section is

[WMR100]
# This section is for the Oregon Scientific WMR100

# The station model, e.g., WMR100, WMR100N, WMRS200
model = WMR100

# How long a wind record can be used to calculate wind chill (in 
seconds)
stale_wind = 30

# The driver to use:
driver = weewx.drivers.wmr100


(there is no sensor map in the WMR100 section - note it does show Battery 
status of wind, rain, inside & outside sensors)

(also if there are # at the start doesnt it ignore that line??) 

Neil

On Saturday, 29 June 2019 12:12:22 UTC+1, Neil S wrote:
>
> So I have just upgraded to 3.9.1 (on Raspberry Pi).  Using the nice new 
> skin but cannot work out how to get the UV Sensor battery to show on the 
> web page. UV levels etc show OK but cant get battery status to show 
> (despite some config file fiddling)
>
> (WRM88 weather station) 
>
> Is it possible?
>
> Neil
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/422cdf7b-3d22-4869-8029-b37eed57d51e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: UV Sensor Battery Indicator

2019-07-04 Thread mwall
On Thursday, July 4, 2019 at 4:44:19 AM UTC-4, Neil S wrote:
>
>
> I now have a battery map of 
> txBatteryStatus = batterytx
> windBatteryStatus = batteryWind
> rainBatteryStatus = batteryRain
> outTempBatteryStatus = battery1
> # WARNING: the following are not in the default schema
> extraBatteryStatus1 = battery2
> extraBatteryStatus2 = battery3
> extraBatteryStatus3 = battery4
> extraBatteryStatus4 = battery5
> uvBatteryStatus = batteryuv
>
> weewx.conf
>

that is an odd sensor_map - it appears to use older observation names.

is there some reason that you defined your own mapping?

please post the actual [WMR100] section from your weewx configuration file.


 

> I have no requirement for historical or tracked battery data so assume I 
> dont need to extend the database.
>
> Just need to work out how to now display it in the Battery Status section.
>
> I have added the following to sensors.inc in the Seasons skin folder
>
> #if $day.uvBatteryStatus.has_data
> 
>   $obs.label.uvBatteryStatus
>class="data">$get_battery_status($current.uvBatteryStatus.raw)
> 
> #end if
>

since you have not extended your schema, the directive 
$day.uvBatteryStatus.has_data will always be false. 

remove the two lines `#if #day.uvBatteryStatus.has_data` and `#end if`

m

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/5480ad7b-96a4-473c-bcb5-e6d8d8a55dc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: UV Sensor Battery Indicator

2019-07-04 Thread Neil S
Yes I see it in the LOOP packets 

LOOP:   2019-07-04 09:27:47 BST (1562228867) dateTime: 1562228867, 
maxSolarRad: 596.436033087, rainRate: 0, usUnits: 1, UV: 3.0, uvBatteryStatus: 
0

I now have a battery map of 
txBatteryStatus = batterytx
windBatteryStatus = batteryWind
rainBatteryStatus = batteryRain
outTempBatteryStatus = battery1
# WARNING: the following are not in the default schema
extraBatteryStatus1 = battery2
extraBatteryStatus2 = battery3
extraBatteryStatus3 = battery4
extraBatteryStatus4 = battery5
uvBatteryStatus = batteryuv

weewx.conf
I have no requirement for historical or tracked battery data so assume I 
dont need to extend the database.

Just need to work out how to now display it in the Battery Status section.

I have added the following to sensors.inc in the Seasons skin folder

#if $day.uvBatteryStatus.has_data

  $obs.label.uvBatteryStatus
  $get_battery_status($current.uvBatteryStatus.raw)

#end if

But still no joy.

Neil


On Saturday, 29 June 2019 12:12:22 UTC+1, Neil S wrote:
>
> So I have just upgraded to 3.9.1 (on Raspberry Pi).  Using the nice new 
> skin but cannot work out how to get the UV Sensor battery to show on the 
> web page. UV levels etc show OK but cant get battery status to show 
> (despite some config file fiddling)
>
> (WRM88 weather station) 
>
> Is it possible?
>
> Neil
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/cc6b54a6-e2d2-4c22-a82f-ede113709020%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: UV Sensor Battery Indicator

2019-07-03 Thread mwall
On Saturday, June 29, 2019 at 7:12:22 AM UTC-4, Neil S wrote:
>
> So I have just upgraded to 3.9.1 (on Raspberry Pi).  Using the nice new 
> skin but cannot work out how to get the UV Sensor battery to show on the 
> web page. UV levels etc show OK but cant get battery status to show 
> (despite some config file fiddling)
>

when you run weewx directly, do you see 'uvBatteryStatus' as one of the 
fields?

if so, then you can use the value directly in reports, but you'll have to 
extend the database to see historical values (as gary pointed out).

if not, then you should check your sensor_map - the field 
'battery_status_uv' should be mapped to 'uvBatteryStatus' in the default 
sensor map.

m

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/33522675-4dbe-405f-93bf-14fd5ad59cd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.