Beta of Version 4 and NOAA-data

123 views
Skip to first unread message

Hartmut Schweidler

unread,
Nov 20, 2019, 12:25:08 PM11/20/19
to weewx-development
Hallo,

Until the introduction of the function "xyTypes.py", the values for WindSpees and WindGust were inserted correctly in the files under NOAA according to the entries in the database table (archive) (from the beginning of 2013 in METRIC).
Now values for WindSpeed and WindGust do not appear in km / h


Bis zur Einführung der Funktion xyTypes.py wurden die Werte für WindSpees und WindGust entsprechend den Eintragungen in der Datenbank Tabelle (archive) (von Anbeginn 2013 in Mertic) richtig in die Dateien unter NOAA eingefügt.
Jetzt erscheinen Werte für WindSpeed und WindGust nicht in km/h

eine
Windgeschwindigkeit
243 km/h
(29.10.2017 um 05:05)  hatte ich nicht
Wind-Böen 359 km/h
(29.10.2017 um 05:00) wind in km/h 

      MEAN                               DEG    DEG          WIND                   DOM
DAY   TEMP   HIGH   TIME    LOW   TIME   DAYS   DAYS   RAIN  SPEED   HIGH   TIME    DIR
---------------------------------------------------------------------------------------
 
01    2,0    5,2  23:58   -1,9  00:55   16,3    0,0    0,2   24,5  133,3  13:40    138
 
02    9,6   13,5  14:15    5,1  00:00    8,7    0,0    0,2   26,0  127,5  18:00    175
 
03   10,6   13,4  12:45    9,0  07:48    7,7    0,0    0,1    8,6   69,5  12:45    160
 
04    9,5   11,1  15:06    7,6  23:51    8,8    0,0    0,0   12,1   98,5  12:55    210
 
05    8,3   10,8  12:35    6,4  01:50   10,0    0,0    0,1    5,5   69,5  21:35    296
 
06    6,4    7,2  14:45    4,9  19:53   11,9    0,0    0,1    4,7   46,3  12:40    333
 
07    5,9    8,1  22:11    4,1  09:18   12,4    0,0    0,1   11,8   63,7  20:29    138
 
08    5,3    7,8  13:56    1,9  07:13   13,0    0,0    0,1    2,5   46,3  23:55    247
 
09    5,5    8,8  13:02    1,8  22:37   12,8    0,0    0,1   23,3   86,9  13:15    274
 
10    2,8    8,3  13:15   -0,8  07:43   15,5    0,0    0,0    3,6   40,6  12:24    190
 
11    0,5    2,5  21:22   -1,9  05:35   17,8    0,0    0,4   31,6  110,1  21:15    145
 
12    4,4    8,2  14:12    0,9  02:16   13,9    0,0    0,0   39,0  127,5  13:30    165
 
13    3,2    5,7  13:10    0,4  07:50   15,1    0,0    0,0   19,9  110,1  09:45    169
 
14    3,7    7,9  12:31   -0,4  07:40   14,6    0,0    0,0   18,0   98,5  12:50    107
 
15    5,3    7,6  22:18    2,7  00:43   13,0    0,0    0,0   47,7  144,8  08:08     77
 
16    5,8    7,7  03:05    1,5  23:59   12,5    0,0    3,9   11,5   81,1  11:31    220
 
17    3,1    7,0  23:59   -1,1  07:40   15,2    0,0    3,0    4,5   33,8  18:52     51
 
18    7,0    8,6  11:30    5,3  22:06   11,3    0,0    1,0    5,2   30,6  23:40    173
 
19    5,8    7,8  13:07    4,1  05:22   12,5    0,0    0,8   14,7   48,3  07:24    191
 
20    4,5    6,0  13:24    2,9  02:18   13,8    0,0    0,8    0,2    9,7  03:11    264

these wind speeds are not in the database

Gruss Hartmut

Thomas Keffer

unread,
Nov 20, 2019, 5:56:01 PM11/20/19
to Hartmut Schweidler, weewx-development
I do not understand what I am looking at. The table: what month is it for? This month? If so, how do I compare it to the data you give for 29.10.2017? I also do not know what units it is in. Also, what was the expected answer?

I modified the test suites to create a database in the METRICWX system, then ran reports for both US Customary and METRIC systems. Except for heating degree days, they came out as expected.

I need something I can reproduce, which so far I have not been able to.

-tk


--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/474f1e02-bdee-4c96-8722-4496260a8108%40googlegroups.com.

Hartmut Schweidler

unread,
Nov 22, 2019, 8:34:38 AM11/22/19
to weewx-development
Hallo Tom,

my data is stored as METRIC

Problem:
in den NOAA-Dateien erscheinen die Daten windSpeed und windgust nicht wie in der Datenbank als km/h sondern es werden diese km/h-Daten als m/s-Daten gelesen und in km/h umgerechnet

-------------------------


In the NOAA files, the windSpeed data and windGust data do not appear as km/h as in the database, but these km/h data are read as m/s data and converted into km/h

windSpeedNov.PNG

windSpeed_windGusst_Max_Nov.PNG


                  MONTHLY CLIMATOLOGICAL SUMMARY for Nov 2019


NAME
: Klein Rogahn, Deutschland
ELEV
: 53 m    LAT: 53-36.36 N    LONG: 011-20.48 E


                   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    2,0    5,2  23:58   -1,9  00:55   16,3    0,0    0,2   24,5  133,3  13:40    138
 
02    9,6   13,5  14:15    5,1  00:00    8,7    0,0    0,2   26,0  127,5  18:00    175
 
03   10,6   13,4  12:45    9,0  07:48    7,7    0,0    0,1    8,6   69,5  12:45    160
 
04    9,5   11,1  15:06    7,6  23:51    8,8    0,0    0,0   12,1   98,5  12:55    210
 
05    8,3   10,8  12:35    6,4  01:50   10,0    0,0    0,1    5,5   69,5  21:35    296
 
06    6,4    7,2  14:45    4,9  19:53   11,9    0,0    0,1    4,7   46,3  12:40    333
 
07    5,9    8,1  22:11    4,1  09:18   12,4    0,0    0,1   11,8   63,7  20:29    138
 
08    5,3    7,8  13:56    1,9  07:13   13,0    0,0    0,1    2,5   46,3  23:55    247
 
09    5,5    8,8  13:02    1,8  22:37   12,8    0,0    0,1   23,3   86,9  13:15    274
 
10    2,8    8,3  13:15   -0,8  07:43   15,5    0,0    0,0    3,6   40,6  12:24    190
 
11    0,5    2,5  21:22   -1,9  05:35   17,8    0,0    0,4   31,6  110,1  21:15    145
 
12    4,4    8,2  14:12    0,9  02:16   13,9    0,0    0,0   39,0  127,5  13:30    165
 
13    3,2    5,7  13:10    0,4  07:50   15,1    0,0    0,0   19,9  110,1  09:45    169
 
14    3,7    7,9  12:31   -0,4  07:40   14,6    0,0    0,0   18,0   98,5  12:50    107
 
15    5,3    7,6  22:18    2,7  00:43   13,0    0,0    0,0   47,7  144,8  08:08     77
 
16    5,8    7,7  03:05    1,5  23:59   12,5    0,0    3,9   11,5   81,1  11:31    220
 
17    3,1    7,0  23:59   -1,1  07:40   15,2    0,0    3,0    4,5   33,8  18:52     51
 
18    7,0    8,6  11:30    5,3  22:06   11,3    0,0    1,0    5,2   30,6  23:40    173
 
19    5,8    7,8  13:07    4,1  05:22   12,5    0,0    0,8   14,7   48,3  07:24    191

 
20    4,4    6,0  13:24    2,9  02:18   13,9    0,0    1,8    0,1    9,7  03:11    264
 
21    6,4    8,6  22:43    3,8  00:00   11,9    0,0    0,8    4,1   20,9  11:54     76
 
22    7,2    8,6  00:00    6,1  13:38   11,1    0,0    0,4    6,0   20,9  10:46    154

Auch in allen anderen Dateien erscheinen die Daten windSpeed und windgust nicht wie in der Datenbank als km/h sondern es werden diese km/h-Daten als m/s-Daten gelesen und in km/h umgerechnet

--------

Also in all other files, the data windSpeed and windGust do not appear as km / h as in the database but these km / h data are read as m / s data and converted into km / h

I hope I could express myself correctly,
thanks for your patience

Gruss Hartmut

Thomas Keffer

unread,
Nov 22, 2019, 8:39:15 AM11/22/19
to Hartmut Schweidler, weewx-development
Please send us the result of this query:

sqlite3 weewx.sdb
sqlite> SELECT MIN(usUnits), MAX(usUnits) FROM archive;

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.

Hartmut Schweidler

unread,
Nov 22, 2019, 9:09:22 AM11/22/19
to weewx-development
Sorry
 my Database ar in MYSQL

Kopieren

MINMax



16 16






in all 609.177 data ar usUnits "16"


I searched ascending and descending via phpMyAdmin. sorry

gruss

Hartmut
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-de...@googlegroups.com.

Thomas Keffer

unread,
Nov 22, 2019, 11:34:53 AM11/22/19
to Hartmut Schweidler, weewx-development
Let us see where we are:

Your database is in the METRIC system, where wind speeds are stored as kilometers/hour.

Does the data in the database look correct? That is, are the wind speeds what one would expect given they are in kilometers/hour? Perhaps you could give an example?

The NOAA statistics actually come from the daily summaries, so they must be checked as well. Check the table archive_day_wind. In SQL, this would be:

mysql
mysql> USE weewx;
mysql> SELECT * FROM archive_day_wind LIMIT 5;

Does this data look correct?

If I understand you correctly, you think that the data are somehow being read as m/s, instead of kilometers/hour? How do you know this?

If I understand correctly, you think they are then getting converted from m/s to kilometers/hour for the NOAA report. Is that correct? How do you know this?

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/cf5c2763-c3e6-4112-a818-65d8d304c1ef%40googlegroups.com.

Hartmut Schweidler

unread,
Nov 22, 2019, 12:24:33 PM11/22/19
to weewx-development
Hallo Tom,

table archive_dav_wind

dateTime Absteigend 1   min     mintime max     maxtime sum     count   wsum    sumtime max_dir xsum    ysum    dirsumtime      squaresum       wsquaresum
1574377200      0       1574377229      7.15264         1574438884      379.53696       216     113861.088      64800   94      57513.1182618495        -89743.1303211776       64800   787.1885159424  236156.55478272
1574290800      0       1574290803      5.81152         1574333699      326.3392        288     97901.76        86400   53      90566.3193745973        21913.4528692424        66600   577.9510505472  173385.31516416
1574204400      0       1574204403      2.68224         1574215881      11.62304        288     3486.912        86400   267     -3209.87864609815       -339.401761925388       3600    12.7900647424   3837.01942272
1574118000      0       1574120778      13.4112333334162        1574144689      1174.82377778437        288     352447.133335315        86400   216     -61903.997430713        -310058.614605229       76200   6313.92545111133        1894177.63533332
1574031600      0       1574031787      8.49378111116358        1574116800      415.301192224777        288     124590.357667436        86400   157.5   10184.2827375375        -84215.8931658884       72600   999.028929374585        299708.678812372
1573945200      0       1573945211      9.38786333339133        1574013155      361.656032223894        288     108496.809667166        86400   48      76545.355835789         61846.160556066         53400   1031.80289607676        309540.86882303


if $alltime.windGust.max = 99,8 km/h in  Database and in reality (Wind-Böen)

windRecord.PNG

in all-time high 

or $alltime.windSpeed.max = 67,5 km/h in the database an Windgeschwindigkeit 243 km/h

67,5 m/s * 3,6 = 243 km/h  /// or 99,8 km/h * 3,6 = 359,28 km/h
all windspeed and windgust values are multiplied by 3.8 in November.
In October, the windspeed and windgust values are correct in km / h

 
22    7,1    8,6  00:00    6,1  13:38   11,2    0,0    0,4    6,3   25,7  17:08    147
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
---------------------------------------------------------------------------------------
       
5,6   13,5     02   -1,9     01  280,0    0,0   13,0   14,9  144,8     15    150

http://wetter.hes61.de/NOAA/NOAA-2019-11.txt

                   MONTHLY CLIMATOLOGICAL SUMMARY for Okt 2019



NAME
: Klein Rogahn, Deutschland                  
ELEV
: 53 m    LAT: 53-36.36 N    LONG: 011-20.48 E


                   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   11,0   15,1  15:05    8,5  23:55    7,3    0,0    9,6    6,3   30,6  15:10    259
 
02    9,6   15,7  14:51    6,4  08:15    8,7    0,0    2,8   11,6   41,8  16:37    260
 
03    9,0   12,9  15:38    7,4  06:30    9,3    0,0    1,4   11,2   40,2  03:26    296
 
04    7,7    9,7  12:35    5,2  07:09   10,6    0,0    4,2    4,5   30,6  12:50    109
 
05    8,3   11,9  14:38    5,0  23:40   10,0    0,0    0,4    4,8   27,4  16:10     57
 
06    6,0   10,6  14:27    1,6  07:35   12,3    0,0    0,0    2,8   24,1  13:25    107
 
07    5,9   14,4  14:30   -1,1  07:25   12,4    0,0    0,2    0,8   17,7  14:56    316
 
08   10,1   15,4  15:45    5,3  00:00    8,2    0,0    5,2    8,7   35,4  13:45    220
 
09   11,1   15,3  13:48    8,7  00:00    7,2    0,0    1,4    9,0   35,4  13:10    220
 
10    9,8   14,2  13:27    7,8  07:25    8,5    0,0    1,8   12,4   41,8  10:49    231
 
11   12,2   14,7  22:35    8,4  01:00    6,1    0,0    2,2   16,2   45,1  09:20    211
 
12   12,7   15,8  03:20   10,6  23:55    5,6    0,0    3,6    7,5   49,9  03:10    229
 
13   14,5   18,4  22:59   10,5  04:47    3,8    0,0    0,8    4,5   27,4  22:10    174
 
14   15,5   19,3  13:58   12,2  07:55    2,8    0,0    0,8   12,0   70,8  00:40    237
 
15   15,1   22,2  14:17   11,2  08:00    3,2    0,0    0,0    1,1   20,9  01:20    115
 
16   12,4   13,8  11:40    8,5  23:35    5,9    0,0   12,4    7,0   37,0  13:33    257
 
17   13,2   15,9  14:43    9,1  00:00    5,1    0,0    0,8    4,2   32,2  12:50    202
 
18   13,2   17,6  14:33    8,3  23:15    5,1    0,0    3,8    9,4   78,9  16:58    182
 
19   11,4   15,6  14:17    6,7  06:40    6,9    0,0    0,0    8,2   30,6  14:15    165
 
20   12,0   13,9  13:41   10,1  08:12    6,3    0,0    4,2    1,3   22,5  20:35     61
 
21   12,5   15,2  16:24   10,6  23:59    5,8    0,0    2,2    4,9   32,2  03:55     90
 
22   10,9   14,6  11:40    7,8  07:03    7,4    0,0    0,2    6,8   32,2  11:10    232
 
23   10,2   14,6  15:23    5,7  03:35    8,1    0,0    0,0    2,7   22,5  22:17    115
 
24   11,8   14,1  15:45    9,7  23:57    6,5    0,0    0,2    6,7   30,6  15:50    149
 
25   12,1   15,4  14:55    9,4  00:15    6,2    0,0    0,2   10,6   40,2  11:20    215
 
26   14,3   18,2  14:05    9,8  00:00    4,0    0,0    0,0   16,2   45,1  12:02    196
 
27   11,1   16,5  00:54    6,5  23:48    7,2    0,0    0,4   20,9   54,7  05:10    243
 
28    7,6   13,6  14:00    3,1  23:02   10,7    0,0    0,2   12,8   37,0  02:28    249
 
29    4,4   10,6  13:51   -0,4  23:16   13,9    0,0    0,2    2,7   22,5  11:34     17
 
30    2,4   10,1  13:03   -2,2  07:10   15,9    0,0    0,0    0,2   11,3  13:00    216
 
31    0,9    7,7  13:37   -3,7  05:59   17,4    0,0    0,2    0,3   11,3  13:27    178
---------------------------------------------------------------------------------------
     
10,3   22,2     15   -3,7     31  248,3    0,0   59,4    7,4   78,9     18    220

http://wetter.hes61.de/NOAA/NOAA-2019-10.txt


with a wind gusts of 359.28 km / h my house would not exist anymore
Gruss Hartmut

Hartmut Schweidler

unread,
Nov 22, 2019, 12:40:14 PM11/22/19
to weewx-development
Hallo

another example

<div id="Report">
<h3>Windgeschwindigkeit in km/h</h3>
 
<table>
   
<tr>
     
<td>&nbsp;</td>
     
<td>Jan</td><td>Feb</td><td>Mär</td>
     
<td>Apr</td><td>Mai</td><td>Jun</td>
     
<td>Jul</td><td>Aug</td><td>Sep</td>
     
<td>Okt</td><td>Nov</td><td>Dez</td>
   
</tr>
 #for $year in $alltime.years
   
<tr>
     
<td>$year.dateTime.format("%Y")</td>
      #for $month in $year.months
          #if $month.windSpeed.max.raw is not None:
             #if $month.windSpeed.max.raw < 2
                 
<td class="hesw01">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 6
                 
<td class="hesw02">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 12
                 
<td class="hesw03">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 20
                 
<td class="hesw04">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 29
                 
<td class="hesw05">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 39
                 
<td class="hesw06">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 50
                 
<td class="hesw07">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 62
                 
<td class="hesw08">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 75
                 
<td class="hesw09">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 89
                 
<td class="hesw10">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 103
                 
<td class="hesw11">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw < 118
                 
<td class="hesw12">$month.windSpeed.max.formatted<br /><small>$month.windSpeed.maxtime</small></td>
             #elif $month.windSpeed.max.raw > 117
                 
<td class="hesw13">$month.windSpeed.max.formatted</td>
             #end if
          #else
                 
<td class="hesw00">-</td>
          #end if
       #end for
   
</tr>
 #end for
 
</table>
<hr />


with a wind gusts of (359.28 km/h) or (windSpeed 243 km/h) my house would not exist anymore


Gruss Hartmut

Vince Skahan

unread,
Nov 22, 2019, 12:57:18 PM11/22/19
to weewx-development
I'm sorry, but your problem description and data are a little confusing.

1 m/s = 3.6 km/hr

What is your database's highest wind gust for any day or week or month or alltime ?
What units are in your database for that value ?

What does the matching NOAA skin display ?
In what units ?



Message has been deleted

Hartmut Schweidler

unread,
Nov 22, 2019, 2:22:47 PM11/22/19
to weewx-development
in then database

archive_day_windGust

dateTime        min                     mintime         max
Absteigend 1        maxtime         sum                     count           wsum            sumtime
1509228000      20.9215240001292        1509293100      99.7795760006164        1509249600      13415.5249280829        279     4024657.47842486        83700
1563573600      0                       1563573604      88.5141400005468        1563639302      3938.07455602443        288     1181422.36680735        86400
1507154400      17.7028280001094        1507170000      85.2954440005269        1507208400      10225.7971920632        288     3067739.15761895        86400
1505253600      11.2654360000696        1505256000      79.8580520004872        1505320800      11434.7614520706        288     3430428.43562117        86400
1492207200      8.04674000004971        1492221900      78.8580520004872        1492261800      9318.12492005754        288     2795437.47601727        86400
1552604400      12.8747840000795        1552626004      78.8580520004872        1552672190      13267.4649120823        288     3980239.47362462        86400
1489791600      19.3121760001193        1489872300      78.8580520004872        1489835400      11487.5260240709        288     3446257.80722129        86400
1482706800      27.358916000169         1482707400      78.8580520004872        1482780900      13203.0909920816        288     3960927.29762447        86400
1571349600      0                       1571349604      78.8580520004872        1571410720      5537.76646803439        288     1661329.94041024        86400
1549666800      14.4841320000895        1549731600      77.2487040004772        1549725000      10507.4330920649        288     3152229.92761948        86400
1427666400      9.71999999628743        1427709241      75.8799999817121        1427729441      7593.03999712083        288     2292016.79913086        87000
1514588400      17.7028280001094        1514592300      75.6393560004673        1514663100      8684.04180805366        288     2605212.54241609        86400
1532728800      0                       1532809800      75.6393560004673        1532790300      6112.30370403776        288     1833691.11121133        86400
1470434400      6.43737599754123        1470514500      75.6391679711095        1470480000      6241.03602961623        288     1872310.80888487        86400
1466719200      1.60934399938531        1466804700      75.6391679711095        1466731500      5188.52505401823        288     1556557.51620547        86400
1551654000      6.43739200003977        1551668104      74.0300080004573        1551709801      12995.4851000807        288     3898645.53002415        86400
1552431600      8.04674000004971        1552434304      74.0300080004573        1552441201      12144.1400080748        288     3643242.0024226         86400
1569794400      0                       1569801003      72.4206600004474        1569825110      9546.65233605928        288     2863995.70081773        86400
1551913200      3.21869600001988        1551925504      72.4206600004474        1551960579      9215.12664805721        288     2764537.9944171         86400
1547420400      24.1402200001491        1547485500      70.8113120004375        1547441700      11922.0499840736        288     3576614.9952221         86400
1482793200      27.358916000169         1482864000      70.8113120004375        1482808200      13697.1608280846        288     4109148.24842539        86400
1552086000      4.82804400002983        1552107003      70.8113120004375        1552126400      10872.7550880677        288     3261826.52642022        86400
1546297200      28.968264000179         1546297800      70.8113120004375        1546358700      13528.1792880836        288     4058453.78642508        86400
1551999600      1.60934800000994        1552079703      70.8113120004375        1552015165      11605.0084280721        288     3481502.52842148        86400
1483398000      16.0934800000994        1483398300      70.8113120004375        1483482000      10710.2109400662        288    

archive_day_wind

dateTime        min     mintime         max             maxtime         sum             count   wsum            sumtime max_dir xsum                    ysum                    dirsumtime      squaresum       wsquaresum
1574377200      0       1574377229      7.15264         1574438884      379.53696       216     113861.088      64800   94      57513.1182618495        -89743.1303211776       64800           787.1885159424  236156.55478272
1574290800      0       1574290803      5.81152         1574333699      326.3392        288     97901.76        86400   53      90566.3193745973        21913.4528692424        66600           577.9510505472  173385.31516416
1574204400      0       1574204403      2.68224         1574215881      11.62304        288     3486.912        86400   267     -3209.87864609815       -339.401761925388       3600            12.7900647424   3837.01942272
1574118000      0       1574120778      13.41123333341  1574144689      1174.823777784  288     352447.1333353  86400   216     -61903.997430713        -310058.614605229       76200           6313.925451111  1894177.63533332
1574031600      0       1574031787      8.493781111163  1574116800      415.3011922247  288     124590.3576674  86400   157.5   10184.2827375375        -84215.8931658884       72600           999.0289293745  299708.678812372
1573945200      0       1573945211      9.387863333391  1574013155      361.6560322238  288     108496.8096671  86400   48      76545.355835789         61846.160556066         53400           1031.802896076  309540.86882303


in weewx.conf
##############################################################################

#   This service acts as a filter, converting the unit system coming from
#   the hardware to a unit system in the database.

[StdConvert]

    # The target_unit affects only the unit system in the database. Once
    # chosen it cannot be changed without converting the entire database.
    # Modification of target_unit after starting weewx will result in
    # corrupt data - the database will contain a mix of US and METRIC data.
    #
    # The value of target_unit does not affect the unit system for
    # reporting - reports can display US, Metric, or any combination of units.
    #
    # In most cases, target_unit should be left as the default: US
    #
    # In particular, those migrating from a standard wview installation
    # should use US since that is what the wview database contains.

    # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
    target_unit = METRIC    # Options are 'US', 'METRICWX', or 'METRIC'
           
##############################################################################

 die Werte in der Datenbank werden als Wert in km/h gespeichert
in der Auswertung für woche, monat, Jahr und allzeit
erscheinen die werte mit 3.6 multipliziert
die gilt seit der Einführung  weewx 4.0 mit      xtypes.py

----------------------------------------------------------------------------------------

the values in the database are stored as value in km / h
in the evaluation for week, month, year and all time
the values appear multiplied by 3.6
since the introduction of weewx 4.0 with xtypes.py

gruss Hartmut

Hartmut Schweidler

unread,
Nov 22, 2019, 3:48:46 PM11/22/19
to weewx-development
Hallo Tom,

I found a solution.
There are again the expected results.

I made the following change in units.py

# except for rain and speed:
MetricWXUnits = ListOfDicts(MetricUnits)
MetricWXUnits['group_rain']     = "mm"
MetricWXUnits['group_rainrate'] = "mm_per_hour"
MetricWXUnits['group_speed']    = "km_per_hour" and not 'meter_per_secund'
MetricWXUnits['group_speed2']   = "km_per_hour2" and not 'meter_per_secund2'

std_groups
= {
    weewx
.US: USUnits,
    weewx
.METRIC: MetricUnits,
    weewx
.METRICWX: MetricWXUnits
}


I have no idea why it works now

Gruss
Harmut

Thomas Keffer

unread,
Nov 22, 2019, 4:25:44 PM11/22/19
to Hartmut Schweidler, weewx-development
At last! 

Your last email gave me a hint. There was indeed a problem with the METRIC unit system, causing it to use the same unit system as the METRICWX system.

Fixed in commit 189ea54.

Thanks for your patience, Hartmut.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.

Hartmut Schweidler

unread,
Nov 23, 2019, 9:08:06 AM11/23/19
to weewx-development
Hallo Tom

I can only say thanks for the quick help

everything is going right again

Gruss Hartmut


Reply all
Reply to author
Forward
0 new messages