This post is for users of the WeeWX-WD extension who upgrade to WeeWX v3.9.0 or later.
The introduction of the new [StdReport]/[[Defaults]] stanza <http://weewx.com/docs/upgrading.htm#Skin_defaults> and the flow on effect to overrides may cause problems for some users of WeeWX-WD. The issue is to do with WeeWX-WD defaulting to Metric units for some report generated files but the 3.9.0 upgrade may install a US customary [StdReport]/[[Defaults]] stanza in weewx.conf. The effect of this is that the default units set in some WeeWX-WD skins are overridden by the [[Defaults]] stanza. The affected (generated) files appear to be limited to testtags.php, weewx_pws.xml and any image files created by the StackedWindRose generators (eg daywindrose.png) It is likely that this issue will only affect those users who use Metric units in any of the affected files. WeeWX-WD users who use US customary units in the affected files should not need to make any changes. The fix is simply to place appropriate overrides under each WeeWX-WD report stanza under [StdReport] in weewx.conf. To place these overrides: 1. edit weewx.conf and locate the [StdReport] stanza 2. add the following under [[wdTesttags]] choosing appropriate settings from the available options: [[wdTesttags]] ... [[[Units]]] [[[[TimeFormats]]]] date_time_f = %d/%m/%Y %H:%M # options are %d/%m/%Y %H:%M or %m/%d/%Y %H:%M date_f = %m/%d/%Y # options are %d/%m/%Y or %m/%d/%Y [[[[Groups]]]] group_altitude = meter # options are 'meter' or 'foot' group_speed2 = km_per_hour2 # options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2' group_pressure = hPa # options are 'inHg', 'mbar', or 'hPa' group_rain = mm # options are 'mm' or 'inch' group_rainrate = mm_per_hour # options are 'mm_per_hour' or 'inch_per_hour' group_temperature = degree_C # options are 'degree_C' or 'degree_F' group_degree_day = degree_C_day # options are 'degree_C_day' or 'degree_F_day' group_speed = km_per_hour # options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second' group_distance = km # options are 'km' or 'mile' 3. add the following under [[wdPWS]] choosing appropriate settings from the available options: [[wdPWS]] ... [[[Units]]] [[[[Groups]]]] 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_C' or 'degree_F' group_pressure = hPa # options are 'inHg', 'mmHg', 'mbar', or 'hPa' group_rain = mm # options are 'mm' or 'inch' group_rainrate = mm_per_hour # options are 'mm_per_hour' or 'inch_per_hour' group_speed = km_per_hour # options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second' 4. add the following under [[wdStackedWindRose]] choosing appropriate settings from the available options: [[wdStackedWindRose]] ... [[[Units]]] [[[[TimeFormats]]]] date_time_f = %d/%m/%Y %H:%M # may be any format supported by python strftime date_f = %d/%m/%Y # may be any format supported by python strftime [[[[Groups]]]] group_speed2 = km_per_hour2 # options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2' group_speed = km_per_hour # options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second' 5. save weewx.conf and do a WeeWX config reload or restart WeeWX 6. monitor the WeeWX log for errors and confirm that any pages/apps using the WeeWX-WD generated files still display the correct units and date and time formats. If any issues are noted please raise a separate thread. The next WeeWX-WD release will address these issues. 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
