Hello,

I have a strange problem.

I'm using weewx 3.8.2 with a Davis Vantage Pro 2.

On a station with about 6 years of data 
(http://stations.meteor-oi.re/ESH555/), I display the reports in metric 
units.


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


In my database, data are stored in METRIC units too

[StdConvert]
>     target_unit = METRIC    # Options are 'US', 'METRICWX', or 'METRIC'
>


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.

Current month : http://stations.meteor-oi.re/ESH555/NOAA/NOAA-2019-06.txt

>                   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
>
>
Previous month : http://stations.meteor-oi.re/ESH555/NOAA/NOAA-2019-05.txt

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

In the database, in case of there was a mixup somehow in the stored data, I 
verified the data for the current (june) month and the previous (may) month 
:

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

It seems OK, the data for the two months are stored in metric units 
(usUnits=16).
I deleted the generated files, but nothing changed

There is no specific messages in the logs.

I really don't understand what is the problem.
How two files, generated with the same skin configuration, the same weewx, 
the same data format in the database can have different display format at 
the end ?

I must be missing something ... 

If someone can help me :)

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/137bac7c-6fda-4050-a87e-cdafbaceffbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to