WH1080 weather station missing barometric pressure

754 views
Skip to first unread message

Reese Lind

unread,
Feb 10, 2013, 12:20:05 PM2/10/13
to weewx...@googlegroups.com
Just finished putting Weewx on a spare Raspberry Pi so I could retire the Lynksis NSLU2 that the station has been running through for the past few years.

The install went without issue and data appeared on both Weather Underground and my website (http://www.ecosprog.com/weather/) with the exception of the barometric pressure. I am using METRIC and have the correct pressure range set in the weewx.conf file. The pressure units are set to mPa and the range is 980 to 1050. I have also tried changing the units to mbar with the same range but this makes no difference.

I´m sure I am missing something really simple here but despite reading all the post here I haven´t been able to find any ideas of how to fix this issue. I should point out that with the old setup (NSLU2/Meteohub) i have no problem with logging the pressure.

Any suggestions where I can begin to look would be greatly appreciated.

Thomas Keffer

unread,
Feb 10, 2013, 12:24:43 PM2/10/13
to weewx...@googlegroups.com
Hello, Reese

Please stop weewx, set debug=1, restart, then post the system log from the startup of weewx.

When you do this, run it from the command line and note very closely what it prints out for the observation value 'barometer'. Does it say 'None'? Or, does it give a value?

-tk


--
You received this message because you are subscribed to the Google Groups "Weewx Weather Station Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Tom Keffer
kef...@threefools.org
+1 541-386-8891 (h)
+1 541-490-9507 (c)
Skype: tkeffer

Reese Lind

unread,
Feb 10, 2013, 1:11:21 PM2/10/13
to weewx...@googlegroups.com
Hi Tom,

Wow, thanks for the quick reply.

I have run weewx from the command line but it doesn´t output anything. I used ./bin/weewxd.py weewx.conf but should I be using another command to run the loop routine?

The output from ´syslog´ shows nothing abnormal from what I can see. Here is the output from the last restart.

Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Loading service weewx.wxengine.StdTimeSynch
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Finished loading service weewx.wxengine.StdTimeSynch
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Loading service weewx.wxengine.StdPrint
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Finished loading service weewx.wxengine.StdPrint
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Loading service weewx.wxengine.StdRESTful
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Data will be posted to Wunderground
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Data will not be posted to PWSweather
Feb 10 19:01:50 raspberrypi weewx[1912]:     ****  'station'
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Data will not be posted to CWOP
Feb 10 19:01:50 raspberrypi weewx[1912]:     ****  'station'
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Started thread for RESTful upload sites.
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Finished loading service weewx.wxengine.StdRESTful
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Loading service weewx.wxengine.StdReport
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Finished loading service weewx.wxengine.StdReport
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Starting up weewx version 2.1.1.
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Starting main packet loop.
Feb 10 19:01:50 raspberrypi weewx[1912]: wxengine: Station does not support reading the time
Feb 10 19:03:21 raspberrypi dbus[1799]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Feb 10 19:03:22 raspberrypi dbus[1799]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Feb 10 19:03:22 raspberrypi polkitd[2003]: started daemon version 0.105 using authority implementation `local' version `0.105'
Feb 10 19:03:22 raspberrypi dbus[1799]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Feb 10 19:03:22 raspberrypi dbus[1799]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Feb 10 19:04:11 raspberrypi weewx[1912]: fousb: ptr changed: old=0x000230 new=0x000240
Feb 10 19:05:44 raspberrypi weewx[1912]: Archive: added archive record 2013-02-10 19:05:00 CET (1360519500)
Feb 10 19:05:44 raspberrypi weewx[1912]: reportengine: Running reports for latest time in the database.
Feb 10 19:05:44 raspberrypi weewx[1912]: reportengine: Running report StandardReport
Feb 10 19:05:44 raspberrypi weewx[1912]: reportengine: Found configuration file /home/pi/skins/Standard/skin.conf for report StandardReport
Feb 10 19:05:47 raspberrypi weewx[1912]: filegenerator: generated 1 'SummaryByMonth' files in 1.18 seconds
Feb 10 19:05:50 raspberrypi weewx[1912]: filegenerator: generated 1 'SummaryByYear' files in 3.20 seconds
Feb 10 19:06:04 raspberrypi weewx[1912]: restful: Failed attempt #1 to upload to Wunderground
Feb 10 19:06:04 raspberrypi weewx[1912]:    ****  Reason: timed out
Feb 10 19:06:06 raspberrypi weewx[1912]: filegenerator: generated 12 'toDate' files in 16.46 seconds
Feb 10 19:06:11 raspberrypi weewx[1912]: genimages: Generated 11 images in 4.35 seconds
Feb 10 19:06:11 raspberrypi weewx[1912]: reportengine: copied 9 files to /home/pi/public_html
Feb 10 19:06:11 raspberrypi weewx[1912]: reportengine: Running report FTP
Feb 10 19:06:11 raspberrypi weewx[1912]: reportengine: Found configuration file /home/pi/skins/Ftp/skin.conf for report FTP
Feb 10 19:06:24 raspberrypi weewx[1912]: restful: Failed attempt #2 to upload to Wunderground
Feb 10 19:06:24 raspberrypi weewx[1912]:    ****  Reason: timed out
Feb 10 19:06:24 raspberrypi weewx[1912]: restful: Published record 2013-02-10 19:05:00 CET (1360519500) to Wunderground station IALICANT61
Feb 10 19:06:48 raspberrypi weewx[1912]: ftpupload: attempt #1. Failed uploading /weather/dayrx.png. Reason: timed out
Feb 10 19:06:58 raspberrypi weewx[1912]: ftpupload: Uploaded file /weather/dayrx.png
Feb 10 19:07:18 raspberrypi weewx[1912]: ftpupload: attempt #1. Failed uploading /weather/daywinddir.png. Reason: timed out
Feb 10 19:07:27 raspberrypi weewx[1912]: ftpupload: Uploaded file /weather/daywinddir.png

No errors from what I can see in the syslog. The failed ftp uploads were down to a Internet connectivity problem but that cleared itself shortly after and the data is now on the site.

Thomas Keffer

unread,
Feb 10, 2013, 1:23:49 PM2/10/13
to weewx-user

Did you edit the very beginning of the start up? I wanted to see the start up of StdConvert and StdQC.

Also, absolutely nothing was printed on the console?

Do you have to do something unusual to see the console output on the RPi?

Sorry for the brevity, but I'm in a mobile phone.

-tk

--

mwall

unread,
Feb 10, 2013, 1:27:14 PM2/10/13
to weewx...@googlegroups.com
reese,

we are looking for output something like this:

LOOP:   2013-02-10 13:25:56 EST (1360520756) {'heatindex': 41.0, 'barometer': 30.34689503088077, 'windchill': 41.0, 'dewpoint': 5.1062684863717323, 'pressure': 30.307147076196102, 'outHumidity': 22.0, 'rainRate': 0.0, 'UV': None, 'radiation': None, 'rain': 0.0, 'dateTime': 1360520756, 'windDir': 337.5, 'outTemp': 41.0, 'windSpeed': 4.4738725824000003, 'inHumidity': 29.0, 'inTemp': 73.580000000000013, 'windGust': 7.6055833900800014, 'altimeter': 30.336553349705746, 'usUnits': 1, 'windGustDir': 337.5}
LOOP:   2013-02-10 13:26:00 EST (1360520760) {'heatindex': 41.0, 'barometer': 30.34689503088077, 'windchill': 41.0, 'dewpoint': 5.1062684863717323, 'pressure': 30.307147076196102, 'outHumidity': 22.0, 'rainRate': 0.0, 'UV': None, 'radiation': None, 'rain': 0.0, 'dateTime': 1360520760, 'windDir': 337.5, 'outTemp': 41.0, 'windSpeed': 4.4738725824000003, 'inHumidity': 29.0, 'inTemp': 73.580000000000013, 'windGust': 7.6055833900800014, 'altimeter': 30.336553349705746, 'usUnits': 1, 'windGustDir': 337.5}

you should see this on the console when debug=1 and you start weewx like this:

cd /home/weewx
./bin/weewx weewx.conf

Reese Lind

unread,
Feb 10, 2013, 1:40:50 PM2/10/13
to weewx...@googlegroups.com
Ok, I think I have what you are after.

LOOP:   2013-02-10 19:38:22 CET (1360521502) {'UV': None, 'barometer': None, 'windchill': 10.0, 'dewpoint': -4.0192267753679, 'outHumidity': 37.0, 'heatindex': 10.0, 'radiation': None, 'rain': None, 'dateTime': 1360521502, 'windDir': 225.0, 'outTemp': 10.0, 'windSpeed': 5.040000000000001, 'inHumidity': 71.0, 'inTemp': 10.200000000000001, 'windGust': 7.2, 'usUnits': 16, 'windGustDir': 225.0}

Both rain and baraometer report ´none´. There is no UV sensor so the ´none´ there is expected.

mwall

unread,
Feb 10, 2013, 2:07:20 PM2/10/13
to weewx...@googlegroups.com
reese,

were you running weewx on the NSLU2 or was that with some other software?

have you made any modifications to the weewx 2.1.1 code?  specifically have you made changes to fousb.py?

m

Reese Lind

unread,
Feb 10, 2013, 2:33:46 PM2/10/13
to weewx...@googlegroups.com
The NSLU2 was running Meteohub as the weather logging software. No changes to fousb.py.

Thomas Keffer

unread,
Feb 10, 2013, 8:38:04 PM2/10/13
to weewx...@googlegroups.com
Yup, that's the output we were looking for! And, it appears that the barometer value is truly 'None.' 

So, the two missing pieces of the puzzle are:
  1. We still need to see the log from when weewx started up. I want to make sure StdConvert and StdQC are starting correctly. And,
  2. Please send your configuration file, weewx.conf, directly to me at tkeffer at gmail dot com. Obfuscate any passwords in it.
If these two things check out, then we know we have a problem with the driver for the WH1080.

-tk

--
You received this message because you are subscribed to the Google Groups "Weewx Weather Station Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reese Lind

unread,
Feb 11, 2013, 1:00:10 PM2/11/13
to weewx...@googlegroups.com
Applied the new USB driver and problem appear to be solved.

Running the driver gave the following output.

Querying the station...
Fine Offset station settings:
                    local time: 2013.02.11 18:34:28 CET

                  abs_pressure: 933.3
                   current_pos: 592
                  data_changed: 0
                    data_count: 22
                     date_time: 2007-01-01 22:49
                 hum_in_offset: 18722
                hum_out_offset: 257
                            id: None
                 lux_wm2_coeff: 0
                       magic_1: 0x55
                       magic_2: 0xaa
                         model: None
                     rain_coef: None
                   read_period: 30
                  rel_pressure: 1014.8
                temp_in_offset: 1792
               temp_out_offset: 0
                      timezone: 0
                    unknown_01: 0
                    unknown_18: 0
                       version: 255
                     wind_coef: None
                     wind_mult: 0

         max.abs_pressure.date: 2007-01-01 12:00
          max.abs_pressure.val: 1010.6
             max.dewpoint.date: 2010-08-20 09:09
              max.dewpoint.val: 23.9
               max.hum_in.date: 2013-01-21 05:50
                max.hum_in.val: 84
              max.hum_out.date: 2010-02-17 04:38
               max.hum_out.val: 99
           max.illuminance.val: 0
             max.rain.day.date: 2009-12-01 04:47
              max.rain.day.val: 3992.4
            max.rain.hour.date: 2009-11-30 06:00
             max.rain.hour.val: 1717.2
           max.rain.month.date: 2009-12-31 05:59
            max.rain.month.val: 6572.7
           max.rain.total.date: 2010-05-13 18:58
            max.rain.total.val: 10609.2
            max.rain.week.date: 2009-12-04 17:04
             max.rain.week.val: 5783.4
         max.rel_pressure.date: 2011-02-25 10:14
          max.rel_pressure.val: 1038.4
              max.temp_in.date: 2011-07-10 15:57
               max.temp_in.val: 35.5
             max.temp_out.date: 2012-08-10 15:44
              max.temp_out.val: 43.9
                    max.uv.val: 0
             max.wind_ave.date: 2010-10-12 16:19
              max.wind_ave.val: 83.3
            max.wind_gust.date: 2010-10-12 16:19
             max.wind_gust.val: 32.3
            max.windchill.date: 2012-08-10 15:44
             max.windchill.val: 43.9
         min.abs_pressure.date: 2013-01-19 14:15
          min.abs_pressure.val: 909.5
             min.dewpoint.date: 2007-01-01 22:46
              min.dewpoint.val: -3.7
               min.hum_in.date: 2012-08-12 08:29
                min.hum_in.val: 17
              min.hum_out.date: 2010-07-09 11:07
               min.hum_out.val: 10
         min.rel_pressure.date: 2013-01-19 14:15
          min.rel_pressure.val: 972.1
              min.temp_in.date: 2012-02-04 07:27
               min.temp_in.val: 1.9
             min.temp_out.date: 2011-01-22 07:56
              min.temp_out.val: -7.2
            min.windchill.date: 2012-02-04 03:12
             min.windchill.val: -17.5

      settings_1.pressure_inHg: False
       settings_1.pressure_hPa: True
         settings_1.temp_out_F: False
      settings_1.pressure_mmHg: False
            settings_1.rain_in: False
          settings_1.temp_in_F: False
               settings_1.bit4: False
               settings_1.bit3: False
           settings_2.wind_bft: False
           settings_2.wind_mps: False
          settings_2.wind_knot: False
               settings_2.bit7: False
               settings_2.bit6: False
               settings_2.bit5: False
          settings_2.wind_kmph: True
           settings_2.wind_mph: False

           display_1.wind_gust: False
       display_1.show_day_name: False
           display_1.show_year: True
       display_1.time_scale_24: False
        display_1.pressure_rel: True
          display_1.alarm_time: False
            display_1.date_mdy: False
          display_1.clock_12hr: False
       display_2.temp_out_temp: True
           display_2.rain_hour: False
          display_2.rain_month: False
           display_2.rain_week: False
      display_2.temp_out_chill: False
            display_2.rain_day: True
        display_2.temp_out_dew: False
          display_2.rain_total: False
      display_3.illuminance_fc: False
                display_3.bit7: False
                display_3.bit6: False
                display_3.bit5: False
                display_3.bit4: False
                display_3.bit3: False
                display_3.bit2: False
                display_3.bit1: False

         alarm.abs_pressure.hi: 1040.2
         alarm.abs_pressure.lo: 960.0
             alarm.dewpoint.hi: 10.0
             alarm.dewpoint.lo: -10.0
               alarm.hum_in.hi: 65
               alarm.hum_in.lo: 35
              alarm.hum_out.hi: 66
              alarm.hum_out.lo: 45
             alarm.illuminance: 0
                alarm.rain.day: 150.0
               alarm.rain.hour: 3.0
         alarm.rel_pressure.hi: 1040.0
         alarm.rel_pressure.lo: 960.0
              alarm.temp_in.hi: 20.0
              alarm.temp_in.lo: 0
             alarm.temp_out.hi: 30.0
             alarm.temp_out.lo: -10.0
                    alarm.time: 13:00
                      alarm.uv: 0
            alarm.wind_ave.bft: 3
             alarm.wind_ave.ms: 19.5
                alarm.wind_dir: 0
           alarm.wind_gust.bft: 5
            alarm.wind_gust.ms: 12.9
            alarm.windchill.hi: 20.0
            alarm.windchill.lo: 0
            alarm_1.hum_out_hi: False
             alarm_1.hum_in_lo: False
             alarm_1.hum_in_hi: False
            alarm_1.hum_out_lo: False
                  alarm_1.time: False
                  alarm_1.bit3: False
              alarm_1.wind_dir: False
                  alarm_1.bit0: False
              alarm_2.wind_ave: False
             alarm_2.wind_gust: False
             alarm_2.rain_hour: False
       alarm_2.pressure_rel_lo: False
       alarm_2.pressure_abs_hi: False
              alarm_2.rain_day: False
       alarm_2.pressure_rel_hi: False
       alarm_2.pressure_abs_lo: False
           alarm_3.temp_out_hi: False
         alarm_3.wind_chill_lo: False
          alarm_3.dew_point_lo: False
            alarm_3.temp_in_lo: False
         alarm_3.wind_chill_hi: False
            alarm_3.temp_in_hi: False
           alarm_3.temp_out_lo: False
          alarm_3.dew_point_hi: False

Section  of syslog following restart

Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Using configuration file /home/pi/weewx.conf.
Feb 11 18:37:28 raspberrypi weewx[1981]: fousb: using PERIODIC polling mode
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Loading service weewx.wxengine.StdConvert
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: StdConvert target unit is 0x10
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Finished loading service weewx.wxengine.StdConvert
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Loading service weewx.wxengine.StdCalibrate
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Finished loading service weewx.wxengine.StdCalibrate
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Loading service weewx.wxengine.StdQC
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Finished loading service weewx.wxengine.StdQC
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Loading service weewx.wxengine.StdArchive
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Using archive interval of 300 from config file
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Record generation will be attempted in 'hardware'
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Using archive database: archive_sqlite
Feb 11 18:37:28 raspberrypi weewx[1981]: stats: Backfilling stats database.
Feb 11 18:37:28 raspberrypi weewx[1981]: stats: stats database up to date.
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Using stats database: stats_sqlite
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Finished loading service weewx.wxengine.StdArchive
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Loading service weewx.wxengine.StdTimeSynch
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Finished loading service weewx.wxengine.StdTimeSynch
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Loading service weewx.wxengine.StdPrint
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Finished loading service weewx.wxengine.StdPrint
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Loading service weewx.wxengine.StdRESTful
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Data will be posted to Wunderground
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Data will not be posted to PWSweather
Feb 11 18:37:28 raspberrypi weewx[1981]:     ****  'station'
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Data will not be posted to CWOP
Feb 11 18:37:28 raspberrypi weewx[1981]:     ****  'station'
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Started thread for RESTful upload sites.
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Finished loading service weewx.wxengine.StdRESTful
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Loading service weewx.wxengine.StdReport
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Finished loading service weewx.wxengine.StdReport
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Starting up weewx version 2.1.1.
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Starting main packet loop.
Feb 11 18:37:28 raspberrypi weewx[1981]: wxengine: Station does not support reading the time
Feb 11 18:38:16 raspberrypi dbus[1815]: [system] Activating service name='org.freedesktop.ConsoleKit' ($
Feb 11 18:38:16 raspberrypi dbus[1815]: [system] Activating service name='org.freedesktop.PolicyKit1' ($
Feb 11 18:38:17 raspberrypi polkitd[2072]: started daemon version 0.105 using authority implementation $
Feb 11 18:38:17 raspberrypi dbus[1815]: [system] Successfully activated service 'org.freedesktop.Policy$
Feb 11 18:38:17 raspberrypi dbus[1815]: [system] Successfully activated service 'org.freedesktop.Consol$

Finally, the LOOP output from the new setup.

LOOP:   2013-02-11 18:45:15 CET (1360604715) {'UV': None, 'barometer': 1003.4071824896382, 'windchill': 4.093019425379217, 'dewpoint': -4.083420198875541, 'outTemp': 6.1000000000000005, 'outHumidity': 48.0, 'altimeter': 1001.4860273307922, 'heatindex': 6.100000000000002, 'radiation': None, 'rain': None, 'dateTime': 1360604715, 'windDir': 270.0, 'pressure': 933.4000000000001, 'windSpeed': 34.2, 'inHumidity': 73.0, 'inTemp': 6.300000000000001, 'windGust': 46.440000000000005, 'rainRate': 0, 'usUnits': 16, 'windGustDir': 270.0}

Barometric data is correctly logging to both Weather Underground and my website. Thanks guys for the really quick fix.

Andrew Milner

unread,
Feb 11, 2013, 1:16:31 PM2/11/13
to weewx...@googlegroups.com
Reese - what new usb driver are you referring to - as I am also using a Pi for my 2080 station..  I also have had problems with pressure - finally got it sorted with a -to me- crazy calibration setting, and I see your weather station is showing a rain rate - whereas mine seems to give n/a for rain rate.

How did you run the driver to get the output you put in your post?

Reese Lind

unread,
Feb 11, 2013, 1:54:09 PM2/11/13
to weewx...@googlegroups.com

Reese Lind

unread,
Feb 12, 2013, 1:02:01 AM2/12/13
to weewx...@googlegroups.com
Sorry for the delay reply Andrew, I missed your post last night.

The new USB driver came from Tom and Mathew here as a response to the problem and output I posted. Probably best to post details of your problem with the outpout of LOOP and syslog. Make sure you have the debug flag in weewx.conf set to 1 so you get any problems with weewx written to syslog.

Reese
Reply all
Reply to author
Forward
0 new messages