[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 = hPa # 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
# The following unit groups are used internally and should not be changed:
group_count = count
group_interval = minute
group_time = unix_epoch
[StdConvert]
target_unit = METRIC # Options are 'US', 'METRICWX', or 'METRIC'
TEMPERATURE (C), RAIN (mm), WIND SPEED (km/h) HEAT COOL AVG MEAN DEG DEG WIND DOM DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED HIGH TIME DIR --------------------------------------------------------------------------------------- 01 20,3 22,9 10:41 17,6 03:30 0,0 3,5 0,0 1,5 22,5 05:31 354 02 19,7 21,8 10:30 18,3 21:15 0,0 2,5 3,6 9,3 43,5 22:15 102 03 18,1 19,2 08:02 16,2 20:51 0,4 0,0 3,0 19,7 51,5 21:00 103
TEMPERATURE (F), RAIN (in), WIND SPEED (mph) HEAT COOL AVG MEAN DEG DEG WIND DOM DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED HIGH TIME DIR --------------------------------------------------------------------------------------- 01 67,4 70,6 16:10 65,2 06:18 0,0 4,4 0,00 5,4 23,0 11:23 108 02 70,1 75,8 13:49 65,7 05:16 0,0 9,1 0,00 2,2 19,0 11:30 51 03 71,2 77,0 12:34 67,7 23:58 0,0 11,2 0,00 1,6 12,0 13:20 7
MariaDB [weewx_ESH555]> SELECT usUnits, FROM_UNIXTIME(dateTime), outTemp FROM archive WHERE dateTime >= 1556654400 ORDER BY dateTime DESC LIMIT 5;
+---------+-------------------------+------------------+
| usUnits | FROM_UNIXTIME(dateTime) | outTemp |
+---------+-------------------------+------------------+
| 16 | 2019-06-20 20:00:00 | 18.1666666666667 |
| 16 | 2019-06-20 19:55:00 | 18.0555555555556 |
| 16 | 2019-06-20 19:50:00 | 17.8333333333333 |
| 16 | 2019-06-20 19:45:00 | 17.7222222222222 |
| 16 | 2019-06-20 19:40:00 | 17.7777777777778 |
+---------+-------------------------+------------------+
5 rows in set (0.00 sec)
MariaDB [weewx_ESH555]> SELECT usUnits, FROM_UNIXTIME(dateTime), outTemp FROM archive WHERE dateTime >= 1556654400 ORDER BY dateTime ASC LIMIT 5;
+---------+-------------------------+------------------+
| usUnits | FROM_UNIXTIME(dateTime) | outTemp |
+---------+-------------------------+------------------+
| 16 | 2019-05-01 00:00:00 | 19.1111111111111 |
| 16 | 2019-05-01 00:05:00 | 19.1111111111111 |
| 16 | 2019-05-01 00:10:00 | 19.1111111111111 |
| 16 | 2019-05-01 00:15:00 | 19.0555555555556 |
| 16 | 2019-05-01 00:20:00 | 19 |
+---------+-------------------------+------------------+
5 rows in set (0.00 sec)
The pages from my skin (a cutomized skin from fuzzy-archer bootstrap skin) are correctly displayed.There is a problem with the monthly reports (NOAA reports) : the current month is displayed in the unit specified in the skin.conf, but all the previous months are in US units.
I deleted the generated files, but nothing changed
What skin is generating the NOAA format reports? Standard? customised fuzzy-archer ?
Did you delete all NOAA format files, not just a few or the last one but every single one on the WeeWX machine in the directory where the skin generates them (not somewhere where they may be copied).
OK. Let's have a look at those SLEs, perhaps one of those is having some unintended consequences on the NOAA templates. Looking at fuzzy-archer the NOAA templates appear on first glance to be identical to the WeeWX Standard skin NOAA templates. I see a historygenerator.py that contains a MyXSearch SLE but I don't see timeperiods.py nor a TimePeriod SLE. A few questions:1. Did you modify the NOAA templates in any way? If so please post your modified templates.
2. Did you modify the historygenerator.MyXSearch SLE in any way? Again if so please post the modified copy.
3. What does the timeperiods.TimePeriod SLE do?
4. Are there any other templates being run in this skin or are the NOAA monthly and yearly templates the only ones? If there are others please post the whole skin.conf.
5. If no other templates what happens when you comment out the line starting search_list_extensions = and then delete all the NOAA format reports and wait for regeneration ?
When you delete the reports to force regeneration the Standard skin does the heavy lifting and re-generates all the NOAA reports on the next report cycle. The Bootstrap skin sees all the old reports already exist so it just produces just the current month/year reports. This behaviour could be verified by careful analysis of the number of files generated by each skin in the first report cycle after deleting all the NOAA files, the Standard skin will produce many and the Bootstrap skin will not.
To check if this is indeed the issue:
1. comment out the entire [[StandardReport]] stanza in weewx.conf
2. delete all NOAA format reports
3. restart WeeWX
4. wait for the first report cycle and then check the NOAA format reports to see if they are all Metric
Gary