[weewx-user] Re: average wind speed (10 min) and max wind gust graphs on ss gauges

2016-08-16 Thread jvmunro
Hi

   Sorry for posting the wrong file,

Jim

Here is the data in gauge-data.txt

"timeUTC":"2016,08,16,22,25,00",
  "date":"2016.08.16 18:25",
"dateFormat":"y.m.d h:m",
 "SensorContactLost":"0",
  "tempunit":"C",
  "windunit":"km/h",
 "pressunit":"mb",
  "rainunit":"mm",
   "windrununit":"kilometer",
 "cloudbaseunit":"ft",
  "temp":"21.975",
"tempTL":"16.0",
"tempTH":"32.2",
   "TtempTL":"06:37",
   "TtempTH":"15:02",
 "temptrend":"1.2305556",
"intemp":"26.6",
   "hum":"80.5",
 "humTL":"44.0",
 "humTH":"93.0",
"ThumTL":"15:02",
"ThumTH":"06:19",
 "inhum":"40.0",
   "dew":"18.4355981001",
"dewpointTL":"14.5298679884",
"dewpointTH":"22.1096531212",
   "TdewpointTL":"06:37",
   "TdewpointTH":"14:23",
"wchill":"21.95",
  "wchillTL":"16.0",
 "TwchillTL":"06:37",
 "heatindex":"21.95",
   "heatindexTH":"34.5610532365",
  "TheatindexTH":"14:34",
   "apptemp":"24.6761460254",
 "apptempTL":"0",
 "apptempTH":"0",
"TapptempTL":"",
"TapptempTH":"",
   "humidex":"21.975",
 "press":"1014.53547372",
"pressL":"996.85624422",
"pressH":"1033.91252664",
   "pressTL":"1012.42958152",
   "pressTH":"1016.64149052",
  "TpressTL":"16:16",
  "TpressTH":"05:26",
 "presstrendval":"1.76955883249",
 "rfall":"1.016",
 "rrate":"0.0",
   "rrateTM":"0.0",
  "TrrateTM":"00:00",
  "hourlyrainTH":"1.016",
 "ThourlyrainTH":"17:00",
"LastRainTipISO":"2000-01-01 00:00",
   "wlatest":"1.5044314",
"wspeed":"",
"windTM":"19.079825",
 "wgust":"2.5199769",
   "wgustTM":"",
  "TwgustTM":"17:08",
   "bearing":"98.7526665971",
"avgbearing":"211.358189844",
 "bearingTM":"270.0",
"BearingRangeFrom10":"000",
  "BearingRangeTo10":"000",
"domwinddir":"SSW",
  "WindRoseData":[],
   "windrun":"24.2871579601",
 "Tbeaufort":"F3",
"UV":"   N/A",
  "UVTH":"",
  "SolarRad":"",
   "SolarTM":"",
   "CurrentSolarMax":"354.239789769",
"cloudbasevalue":"2074.90564576",
  "forecast":"forecast is not available",
   "version":"3.5.0",
 "build":"",
   "ver":"13"
}



On Monday, August 15, 2016 at 6:21:00 PM UTC-4, jvm...@gmail.com wrote:
>
> Having problems with average wind speed (10 min) and max wind gust.  Both 
> display as - km/h.  The max gust time seems correct.
>
> Here is part of my .../skins/ss/skin.conf ...
>
> # This skin can be copied, modified, and distributed as long as this notice
> # is included in any derivative work.
> [Units]
> # This section is for managing the selection and formatting of units.
>
> [[Groups]]
> # For each group of measurements, this section sets what units to
> # use for it.
> # NB: The unit is always in the singular. I.e., 'mile_per_hour',
> # NOT 'miles_per_hour'
> group_altitude = meter # Options are 'foot' or 
> 'meter'
> group_degree_day   = degree_C_day # Options are 
> 'degree_F_day' or 'degree_C_day'
> group_direction= degree_compass
> group_moisture = centibar
> group_percent  = percent
> group_pressure = mbar # Options are 'inHg', 
> 'mmHg', 'mbar', or 'hPa'
> group_radiation= watt_per_meter_squared
> group_rain = mm # Options are 'inch', 
> 'cm', or 'mm'
> group_rainrate = mm_per_hour# Options are 
> 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
> group_speed= km_per_hour# Options are 
> 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
> group_speed2   = km_per_hour2   # Options are 
> 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
> group_temperature  = degree_C # Options are 'degree_F' 
> or 'degree_C'
> group_uv   = uv_index
> group_volt = volt
>
> [CopyGenerator]
> copy_once = css/*.css, scripts/*.js
>
> maximum gust data seems on in the Standard skin
>
> any ideas?
>

-- 
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: average wind speed (10 min) and max wind gust graphs on ss gauges

2016-08-16 Thread jvmunro


On Monday, August 15, 2016 at 9:17:36 PM UTC-4, gjr80 wrote:
>
> Hi,
>
> Hard to say too much without some more info. Is there a URL for your site? 
> That would help a lot. If not can you post your gauge-data.txt.
>
> Gary
>

Here is the URL http://munro.homeip.net:8080/ss or http://munro.homeip.net 
for the weewx page

It also looks like the max average wind speed and max gust values are 
interchanged when I compare with weewx Standard skin.

here is gauge-data.txt.tmpl

attached

-- 
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.


gauge-data.txt.tmpl
Description: Binary data


[weewx-user] Re: average wind speed (10 min) and max wind gust graphs on ss gauges

2016-08-16 Thread jvmunro
Hi

The URL is munro.homeip.net:8080/ss or munro.homeip.net for weewx site
The max average wind speed and the max gust values also seem interchanged.
Here is my gauge-data.txt

Jim

## template for json data to feed the steel series gauges
## $Id: gauge-data.txt.tmpl 1279 2015-03-01 15:49:03Z mwall $
## by Matthew Wall on flight 868 ;)
## 31dec2014
## Updated 25jan2015 by M Crossley, changed cloudbase: to cloudbasevalue:
## Updated 12jan2016 by M Crossley, fixes applied from here: 
https://groups.google.com/forum/#!topic/weewx-user/rDdSbzQWbFw
## Updated 12mar2016 by M Crossley, force pressure UoM mbar to mb.
##  added UoM consitency from unit_type rather 
than labels which can be localised
##  force rain in cm to mm as gauges do not 
currently handle cm's.
##
## definitions for the tags can be found here:
## http://wiki.sandaysoft.com/a/Webtags
##
## the following fields are not directly available from weewx:
##
## ver:10?
## apptemp - calculated in this template
## apptempTL
## apptempTH
## TapptempTL
## TapptempTH
## humidex - calculated in this template
## forecast - calculated by forecasting module
## LastRainTipISO
## Tbeaufort - calculated by this template
## BearingRangeFrom10 - lowest clockwise bearing in last 10 minutes
## BearingRangeTo10 - highest clockwise bearing in last 10 minutes
## CurrentSolarMax - calculated in this template
## WindRoseData
## windrun - calculated in this template
##
## ver:12
## cloudbasevalue - calculated in this template in feet
## cloudbaseunit - defined in this template as ft
##
## ver:13
## changed UoMs
##
#import math
#import time
##
## get the time in formats that we need later
#set $ts=float($current.dateTime.raw)
#set $timeutc=time.strftime("%Y,%m,%d,%H,%M,%S", time.gmtime($ts))
##
## see if the station has contact with the sensor
#set $sensorContactLost = 0
#set $rxchk = $getVar('current.rxCheckPercent.raw', 100)
#if $rxchk is not None and $rxchk == 0
#set $sensorContactLost = 1
#end if
##
## calculate humidex
## http://www.physlink.com/reference/weather.cfm
#if $varExists('current.outTemp') and $current.outTemp.raw is not None and 
$varExists('current.dewpoint') and $current.dewpoint.raw is not None
#set $oT_C = $current.outTemp.degree_C.raw
#set $dp = $current.dewpoint.raw
#if $oT_C is not None and $dp is not None
#set $e = 6.11 * math.exp(5417.7530 * ((1/273.16) - 1/$dp))
#set $h = 0. * ($e - 10.0)
#if $h > 0
#set $humidex = $oT_C + $h
#else
#set $humidex = $oT_C
#end if
#if $unit.unit_type.outTemp == 'degree_F'
#set $humidex = 32.0 + 1.8 * $humidex
#end if
#else
#set $humidex = 'N/A'
#end if
#else
#set $humidex = 'N/A'
#end if
##
## calculate apparent temperature
##
## http://www.bom.gov.au/info/thermal_stress/#atapproximation
## AT = Ta + 0.33*e - 0.70*ws - 4.00
##   where AT and Ta (air temperature) are deg-C,
##   e is water vapor pressure
##   ws is wind speed (m/s) at elevation of 10 meters
## e = rh / 100 * 6.105 * exp(17.27 * Ta / (237.7 + Ta))
##   rh is relative humidity
##
## http://www.ncdc.noaa.gov/societal-impacts/apparent-temp/
## AT = -2.7 + 1.04*T + 2.0*e -0.65*v
##   where AT and T (air temperature) are deg-C,
##   e is vapor pressure in kPa,
##   and v is 10m wind speed in m/sec
##
#if $varExists('current.outTemp') and $current.outTemp.raw is not None and 
$varExists('current.outHumidity') and $current.outHumidity.raw is not None and 
$varExists('current.windSpeed') and $current.windSpeed.raw is not None
#set $oT_C = $current.outTemp.degree_C.raw
#set $rh = $current.outHumidity.raw
#set $ws = $current.windSpeed.meter_per_second.raw
#if $oT_C is not None and $rh is not None and $ws is not None
#set $e = ($rh / 100) * 6.105 * math.exp(17.27 * $oT_C / (237.7 + $oT_C))
#set $apptemp = $oT_C + 0.33 * $e - 0.7 * $ws - 4.0
#if $unit.unit_type.outTemp == 'degree_F'
#set $apptemp = 32.0 + 1.8 * $apptemp
#end if
#else
#set $apptemp = 'N/A'
#end if
#else
#set $apptemp = 'N/A'
#end if
##
## calculate the cloud base in feet
#if $varExists('current.outTemp') and $current.outTemp.raw is not None and 
$varExists('current.dewpoint') and $current.dewpoint.raw is not None
#set $oT_F = $current.outTemp.degree_F.raw
#set $dp_F = $current.dewpoint.degree_F.raw
#set $a_f = $station.altitude.foot.raw
#set $cloudbase = (($oT_F - $dp_F) / 4.4 * 1000) + $a_f
#else
#set $cloudbase = 'N/A'
#end if
##
## calculate the wind run for the day
## FIXME: this is an approximation since averages are per-hour
#set $t = time.localtime($ts)
#set $windrun = 0
#for $n in range($t[3])
#set $ago = $hours_ago(hours_ago=$n).windSpeed.avg.raw
#if $ago is not None
#set $windrun = $windrun + $ago
#end if
#end for
#if $unit.unit_type.windSpeed == 'mile_per_hour'
#set $windrununit = 'mile'
#elif $unit.unit_type.windSpeed == 'km_per_hour'
#set $windrununit = 'kilometer'
#elif $unit.unit_type.windSpeed == 'meter_per_second'
#set $windrununit = 'kilometer'
#set $windrun = $windrun / 3.6
#elif $unit.unit_type.windSpeed == 

[weewx-user] Re: average wind speed (10 min) and max wind gust graphs on ss gauges

2016-08-16 Thread jvmunro
Hi

 The max average wind speed and max gust values also appear to be 
interchanged.  The bearing and time of the max gust seem correct.
Here is my gauges-data.txt

Jim

## template for json data to feed the steel series gauges
## $Id: gauge-data.txt.tmpl 1279 2015-03-01 15:49:03Z mwall $
## by Matthew Wall on flight 868 ;)
## 31dec2014
## Updated 25jan2015 by M Crossley, changed cloudbase: to cloudbasevalue:
## Updated 12jan2016 by M Crossley, fixes applied from here: 
https://groups.google.com/forum/#!topic/weewx-user/rDdSbzQWbFw
## Updated 12mar2016 by M Crossley, force pressure UoM mbar to mb.
##  added UoM consitency from unit_type rather 
than labels which can be localised
##  force rain in cm to mm as gauges do not 
currently handle cm's.
##
## definitions for the tags can be found here:
## http://wiki.sandaysoft.com/a/Webtags
##
## the following fields are not directly available from weewx:
##
## ver:10?
## apptemp - calculated in this template
## apptempTL
## apptempTH
## TapptempTL
## TapptempTH
## humidex - calculated in this template
## forecast - calculated by forecasting module
## LastRainTipISO
## Tbeaufort - calculated by this template
## BearingRangeFrom10 - lowest clockwise bearing in last 10 minutes
## BearingRangeTo10 - highest clockwise bearing in last 10 minutes
## CurrentSolarMax - calculated in this template
## WindRoseData
## windrun - calculated in this template
##
## ver:12
## cloudbasevalue - calculated in this template in feet
## cloudbaseunit - defined in this template as ft
##
## ver:13
## changed UoMs
##
#import math
#import time
##
## get the time in formats that we need later
#set $ts=float($current.dateTime.raw)
#set $timeutc=time.strftime("%Y,%m,%d,%H,%M,%S", time.gmtime($ts))
##
## see if the station has contact with the sensor
#set $sensorContactLost = 0
#set $rxchk = $getVar('current.rxCheckPercent.raw', 100)
#if $rxchk is not None and $rxchk == 0
#set $sensorContactLost = 1
#end if
##
## calculate humidex
## http://www.physlink.com/reference/weather.cfm
#if $varExists('current.outTemp') and $current.outTemp.raw is not None and 
$varExists('current.dewpoint') and $current.dewpoint.raw is not None
#set $oT_C = $current.outTemp.degree_C.raw
#set $dp = $current.dewpoint.raw
#if $oT_C is not None and $dp is not None
#set $e = 6.11 * math.exp(5417.7530 * ((1/273.16) - 1/$dp))
#set $h = 0. * ($e - 10.0)
#if $h > 0
#set $humidex = $oT_C + $h
#else
#set $humidex = $oT_C
#end if
#if $unit.unit_type.outTemp == 'degree_F'
#set $humidex = 32.0 + 1.8 * $humidex
#end if
#else
#set $humidex = 'N/A'
#end if
#else
#set $humidex = 'N/A'
#end if
##
## calculate apparent temperature
##
## http://www.bom.gov.au/info/thermal_stress/#atapproximation
## AT = Ta + 0.33*e - 0.70*ws - 4.00
##   where AT and Ta (air temperature) are deg-C,
##   e is water vapor pressure
##   ws is wind speed (m/s) at elevation of 10 meters
## e = rh / 100 * 6.105 * exp(17.27 * Ta / (237.7 + Ta))
##   rh is relative humidity
##
## http://www.ncdc.noaa.gov/societal-impacts/apparent-temp/
## AT = -2.7 + 1.04*T + 2.0*e -0.65*v
##   where AT and T (air temperature) are deg-C,
##   e is vapor pressure in kPa,
##   and v is 10m wind speed in m/sec
##
#if $varExists('current.outTemp') and $current.outTemp.raw is not None and 
$varExists('current.outHumidity') and $current.outHumidity.raw is not None and 
$varExists('current.windSpeed') and $current.windSpeed.raw is not None
#set $oT_C = $current.outTemp.degree_C.raw
#set $rh = $current.outHumidity.raw
#set $ws = $current.windSpeed.meter_per_second.raw
#if $oT_C is not None and $rh is not None and $ws is not None
#set $e = ($rh / 100) * 6.105 * math.exp(17.27 * $oT_C / (237.7 + $oT_C))
#set $apptemp = $oT_C + 0.33 * $e - 0.7 * $ws - 4.0
#if $unit.unit_type.outTemp == 'degree_F'
#set $apptemp = 32.0 + 1.8 * $apptemp
#end if
#else
#set $apptemp = 'N/A'
#end if
#else
#set $apptemp = 'N/A'
#end if
##
## calculate the cloud base in feet
#if $varExists('current.outTemp') and $current.outTemp.raw is not None and 
$varExists('current.dewpoint') and $current.dewpoint.raw is not None
#set $oT_F = $current.outTemp.degree_F.raw
#set $dp_F = $current.dewpoint.degree_F.raw
#set $a_f = $station.altitude.foot.raw
#set $cloudbase = (($oT_F - $dp_F) / 4.4 * 1000) + $a_f
#else
#set $cloudbase = 'N/A'
#end if
##
## calculate the wind run for the day
## FIXME: this is an approximation since averages are per-hour
#set $t = time.localtime($ts)
#set $windrun = 0
#for $n in range($t[3])
#set $ago = $hours_ago(hours_ago=$n).windSpeed.avg.raw
#if $ago is not None
#set $windrun = $windrun + $ago
#end if
#end for
#if $unit.unit_type.windSpeed == 'mile_per_hour'
#set $windrununit = 'mile'
#elif $unit.unit_type.windSpeed == 'km_per_hour'
#set $windrununit = 'kilometer'
#elif $unit.unit_type.windSpeed == 'meter_per_second'
#set $windrununit = 'kilometer'
#set $windrun = $windrun / 3.6
#elif $unit.unit_type.windSpeed == 'knot'
#set 

[weewx-user] average wind speed (10 min) and max wind gust graphs on ss gauges

2016-08-15 Thread jvmunro
Having problems with average wind speed (10 min) and max wind gust.  Both 
display as - km/h.  The max gust time seems correct.

Here is part of my .../skins/ss/skin.conf ...

# This skin can be copied, modified, and distributed as long as this notice
# is included in any derivative work.
[Units]
# This section is for managing the selection and formatting of units.

[[Groups]]
# For each group of measurements, this section sets what units to
# use for it.
# NB: The unit is always in the singular. I.e., 'mile_per_hour',
# NOT 'miles_per_hour'
group_altitude = meter # Options are 'foot' or 
'meter'
group_degree_day   = degree_C_day # Options are 
'degree_F_day' or 'degree_C_day'
group_direction= degree_compass
group_moisture = centibar
group_percent  = percent
group_pressure = mbar # Options are 'inHg', 
'mmHg', 'mbar', or 'hPa'
group_radiation= watt_per_meter_squared
group_rain = mm # Options are 'inch', 'cm', 
or 'mm'
group_rainrate = mm_per_hour# Options are 
'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
group_speed= km_per_hour# Options are 
'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
group_speed2   = km_per_hour2   # Options are 
'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
group_temperature  = degree_C # Options are 'degree_F' 
or 'degree_C'
group_uv   = uv_index
group_volt = volt

[CopyGenerator]
copy_once = css/*.css, scripts/*.js

maximum gust data seems on in the Standard skin

any ideas?

-- 
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.