Weewx und WH2600

162 views
Skip to first unread message

Joerg Reinisch

unread,
Mar 16, 2019, 4:09:31 PM3/16/19
to weewx-user
Hallo,
mein Problem bezieht sich auf Weewx (Ver. 3.8.2) mit meiner WH2600.
Momentan läuft Weewx auf einem Raspi und dazu hab ich mir den ObserverIp Treiber 0.1 geladen.
Die Daten werden eigentlich alle wunderbar in Weewx angezeigt, was aber nicht angezeigt wird, ist der Luftdruck.
Im Terminal bekomme ich folgende Meldungen:

Mär 16 20:00:32 pi-drei weewx[25310]: copygenerator: copied 0 files to /var/www/html/weewx
Mär 16 20:00:32 pi-drei weewx[25310]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Mär 16 20:00:32 pi-drei weewx[25310]: reportengine: Report 'MobileReport' not enabled. Skipping.
Mär 16 20:00:32 pi-drei weewx[25310]: reportengine: Report 'StandardReport' not enabled. Skipping.
Mär 16 20:00:32 pi-drei weewx[25310]: reportengine: Report 'FTP' not enabled. Skipping.
Mär 16 20:00:32 pi-drei weewx[25310]: reportengine: Report 'RSYNC' not enabled. Skipping.
Mär 16 20:00:57 pi-drei weewx[25310]: observerip: packet interval 31
Mär 16 20:00:57 pi-drei weewx[25310]: engine: 2019-03-16 20:00:58 CET (1552762858) LOOP value 'pressure' 955.0 outside limits (25.100489375, 32.48298625)
Mär 16 20:01:28 pi-drei weewx[25310]: observerip: packet interval 30
Mär 16 20:01:28 pi-drei weewx[25310]: engine: 2019-03-16 20:01:28 CET (1552762888) LOOP value 'pressure' 955.0 outside limits (25.100489375, 32.48298625)

Ok, das sagt mir immerhin dass der Druck wegen der falschen Einstellung in der weewx.conf nicht angezeigt werden kann.
Aber sobald ich dann in der weewx.conf die Einstellung dementsprechend abändere, bekomme ich überhaupt keine Anzeigen mehr, das kann es ja wohl nicht sein.

Die Daten werden aber bei WU (wunderground.com) richtig angezeigt und auch beim direkten auslesen der Daten im Terminal bekomme ich alle Daten angezeigt.
Nur lediglich bei Weewx, da wird der Druck eben nicht angezeigt und das macht mich total verrückt.

Vielleicht kann mir ja jemand von euch helfen.....
Wenn es vielleicht nicht anders geht, werde ich den ganzen Text auch Übersetzen lassen, denn so gut ist mein englisch jetzt auch nicht mehr..... ;-)
Die weewx.conf kann ich momentan nicht mit anhängen da ich momentan nicht auf meinen Server zugreifen kann.
Aber für jede Hilfe bin ich mehr als dankbar.....

Tolip Wen

unread,
Mar 20, 2019, 1:07:47 AM3/20/19
to weewx-user
I think your LOOP value 'pressure' 955.0 is in units of hPa/mb
It looks like your weewx expects inHg 'outside limits (25.100489375, 32.48298625)'

????hPa/mb = 955.0inHg = ????.??mmHg
1100hPa/mb = 32.48inHg = 825.07mmHg  <<--  your upper limit

955hPa/mb  = 28.20inHg = 716.31mmHg   <<--  your LOOP value,  assume value is hPa.

850hPa/mb  = 25.10inHg = 637.55mmHg   <<--  your lower limit

First, check what pressure unit is set to in the 2600 GUI.
Second, check weewx.conf [StdConvert]

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

Is it what you expect? Same unit for pressure as device GUI?

Then check weewx.conf [StdQC]

##############################################################################

#   This section is for quality control checks. If units are not specified,
#   values must be in the units defined in the StdConvert section.

[StdQC]
   
    [[MinMax]]
        barometer = 26, 32.5, inHg
        outTemp = -40, 120, degree_F
        inTemp = 10, 120, degree_F
        outHumidity = 0, 100
        inHumidity = 0, 100
        windSpeed = 0, 120, mile_per_hour
        pressure = 24, 34.5, inHg

##############################################################################

Is your device GUI pressure setting in the correct units? It matches your target_unit for pressure? It matches your [StdQC] pressure units?

If you don't care what is on the device GUI just set it to weewx target_unit.  see if anything changes. it is a just a few clicks to change.
Wait a few minutes and see if everyone is happy.
everyone = device GUI, weewx LOOP, external services(wunderground etc.).

I am assuming you left the target_units at US because your LOOP is reporting limit as inHg.

If you prefer units in hPa for pressure, change,
[StdReport]
  group_pressure = hPa

If you DID change target_unit and everything else is working try,
[StdQC]
  pressure = 847, 1100, hPa

Joerg Reinisch

unread,
Mar 20, 2019, 4:51:39 PM3/20/19
to weewx-user
Yes, with the settings is already correct. And I think I've got everything right so far.
I hang a screenshot of the settings of the Wetterstion and now the weewx.conf
In my opinion, I should have specified everything correctly, but weewx still states that the values ​​are outside the settings.

But maybe I still do not see any things right here and I'm on the wrong track.
weewx.conf
Wetterstation-Einstellung.png

gjr80

unread,
Mar 20, 2019, 7:31:13 PM3/20/19
to weewx-user
Hi,

The following log entry indicates your StdQC pressure setting of pressure = 847, 1100, hPa is being correctly applied (847hPa = 25.0inHg, 1100hPa = 32.5inHg).

Mär 16 20:00:57 pi-drei weewx[25310]: engine: 2019-03-16 20:00:58 CET (1552762858) LOOP value 'pressure' 955.0 outside limits (25.100489375, 32.48298625)

The fact that the incorrect pressure is logged as 955.0 (clearly a value in hPa) but your pressure limits are logged as 25.1 and 32.5 (clearly values in inHg) suggests  the ObserverIP driver has placed as hPa value in a US customary loop packet. I do not use the ObserverIP driver but looking at the driver code I see that it emits loop packets using the US customary unit system, that is fine, and drivers that emit US customary loop packets will work correctly provided that any Metric values read from sensors are appropriately converted to the equivalent US customary units. There appears to be some sort of unit checking in the ObserverIP driver but I am not sure there is any unit conversion.

You might like to run WeeWX directly so that you can see the emitted loop packets and archive records. This will let you see if your other obs are being correctly processed (eg is outTemp correct, it should be fairly evident whether the temperature has been incorrectly reported). Post a screen capture of a few loop packets.

Tolip Wen suggested setting your pressure units on your device to match the WeeWX target_unit (actually I would suggest setting the GUI units to match those emitted by the ObserverIP driver which in this case happen to be the same as the target_unit). Have you tried this? If the temperatures in the loop packets are incorrect I would definitely be trying this but for all units in the GUI.

Gary

Joerg Reinisch

unread,
Mar 21, 2019, 3:14:50 PM3/21/19
to weewx-user
Hi Gary,
Now I have done something very strange and observed:
I have the values ​​below on the Station Settings page
Units of Measure // Pressure
changed from hpa to inhg.
All at once I get under weewx the value in "hpa Relative pressure"
.z.B. 1031hPa displayed!
In the live values ​​of the station I get the pressure unfortunately in inhg and not in hpa.
Since then there is a mistake in the driver, or I see that wrong?
Or can weewx not convert the value correctly?

->
 Current Conditions

Outside temperature 7.8 ° C
Heat index 7,8 ° C
Felt temperature 7,8 ° C
Dew point -1.7 ° C
Humidity outside 51%
relative air pressure 1031.2 hPa (N / A)
Wind 0 km / h N / A (N / A)
Rainfall 0.0 mm / hr
Today's rainfall: 0.0 mm
UV index 0.0
ET 0.0 mm
Solar radiation 0 W / m²
Internal temperature 20.2 ° C

Jörg

gjr80

unread,
Mar 21, 2019, 6:41:10 PM3/21/19
to weewx-user
Hi Jörg,

So if I understand you correctly by changing just the pressure (from hPa to inHg) you now have WeeWX picking up the pressure correctly? Did you change the temperature units as well? The temperatures you are displaying below seem to be correct.
Ultimately the issue lies with the driver, it is either ignoring or improperly decoding the pressure units. I see the GitHub repo for the ObserverIP driver has not been touched for about 4 years, so am not sure whether you will get any response from the author or not. The ObserverIP driver says it supports the HP1000 station, and I note this driver also supports the HP1000. I know your station is a WH2600 but since the ObserverIP driver supports the WH2600 perhaps Susan's driver will support the WH2600 as well?

Gary

Joerg Reinisch

unread,
Mar 22, 2019, 1:17:57 AM3/22/19
to weewx-user
Gooood morning Gary,

yes, exactly right! I changed only the data from hpa to inhg. The other data are all still in metric form, the temperature data still in C °. I'll hang up a screenshot.
I do not know the HP1000 driver at all. I'll download and install it this afternoon, let's see how it works ;-)
But I am glad that I even see pressure information, because this problem has occupied me already a few months: - (((
I will also attach this afternoon all relevant data with which I currently have for my weather station. Thus one has a better overview.
Bildschirmfoto vom 2019-03-22 05-57-23.png

gjr80

unread,
Mar 22, 2019, 2:10:41 AM3/22/19
to weewx-user
Hi Jörg,

Interesting that metric temperature comes through ok but metric pressure does not. I still think this is an issue with the ObserverIP driver, I will see if I can find some more time to have a closer look at it. I guess at least now WeeWX is displaying correctly.

Gary

Tolip Wen

unread,
Mar 22, 2019, 5:59:06 AM3/22/19
to weewx-user
The reason your temp almost works is that you made outTemp = +33.6 and inTemp = +46.8 degree corrections in weewx.conf
This tells me that your outside temp was about 0.5C when you made the correction and the indoor temp was about 19C but below 21C
Based on your [StdQc] settings for temp. the 70 upper limit has weewx rejecting temps above 21C
Change your temp to degrees F and remove the corrections in weewx.conf.
Your temperature corrections will not be correct for long as it gets warmer outside.

If you use ObserverIP and have target_unit set to US then all data on Live Data must be in US units.
This is because this is where weewx get it's data for ObserverIP.
It has to poll the data from the device and it gets data in whatever units you have selected for Live Data.

If you use Interceptor it ALWAYS gets US units because this is what it sends to wonderground. this is BTW an example of interrupt vs polling.
This is also why the numbers are correct on wunderground but not in weewx.

If you must have metric units on Live Data page you have about 3 choices;

1)
ObserverIP with weewx.conf(change standard_unit to METRIC and likely many other changes)
This requires a new database to prevent corruption. Your database already has errors.

2)
Make some changes in ObserverIP to do the math translations back to US for weewx's existing database using US standard_unit.
ex: (for temp)  tempC + 32 x 1.8 = tempF.
You already have weewx set to translate all of it back to metric for it's web pages.

3)
Switch to Interceptor. Then you can use any units on Live Data, weewx.conf remains as US units.

Easiest to just change it all to US on Live Data and use weewx output for the same data, already formatted metric in local language.
Once you fix and trust weewx you won't miss the Live Data page.


On Saturday, March 16, 2019 at 3:09:31 PM UTC-5, Joerg Reinisch wrote:

Joerg Reinisch

unread,
Mar 22, 2019, 12:32:19 PM3/22/19
to weewx-user
Yes, Gery, I was just as surprised.
But Tolip Wen has also written something for me and I'll try that now to put it.
Maybe I just made a few basic mistakes, I do not know yet.
I'm just surprised, because a friend from Germany has almost the same station and everything runs with him, although he did not know exactly if he has made special settings.

Joerg Reinisch

unread,
Mar 22, 2019, 12:36:38 PM3/22/19
to weewx-user
Hi Tolip Wen,
I'll try to work around the problem right from the beginning.
Maybe I've made some basic mistakes and that's how the wrong data came about.
It will be best to reset my weewx installation and work it off point by point.
I do not know if I then get the error under control ......

Tolip Wen

unread,
Mar 24, 2019, 4:06:53 PM3/24/19
to weewx-user
My last post contains a math error in the example labeled "2)"

it should be
"ex: (for temp)  tempC + 32 x 0.5555555.... = tempF."

I mixed up the multiplier  tempF - 32 x 1.8 = tempC

On Saturday, March 16, 2019 at 3:09:31 PM UTC-5, Joerg Reinisch wrote:

Joerg Reinisch

unread,
Mar 25, 2019, 2:10:43 PM3/25/19
to weewx-user
What I can say with certainty now:
As soon as I switch my weather station completely to US values ​​(station settings), all values ​​are displayed correctly.
In order to get the display in metric values, I change the information in the weewx.conf under [[[[Groups]]]].
Thus, I can take out all the corrections in the weewx.conf.
I will try again later with the calculations of you. Then I could also look at the live values ​​in metric data.
I will put pictures and data online later.
But so far already thanks for the food for thought.

Jörg
Reply all
Reply to author
Forward
0 new messages