Re: [weewx-user] Barometer data missing for CWOP

104 views
Skip to first unread message

Tom Keffer

unread,
Jan 4, 2021, 7:46:01 PM1/4/21
to weewx-user
Everything looks normal to me. The log shows a post to CW8738:

Jan  4 13:50:18 raspberrypi weewx[11987] INFO weewx.restx: CWOP: Published record 2021-01-04 13:50:00 PST (1609797000)

After that, you did a keyboard interrupt, but the log stops before the next reporting cycle.

Taking a look at findu, your packets are also showing up regularly: http://www.findu.com/cgi-bin/raw.cgi?call=CW8738

What are you seeing that causes concern?

On Mon, Jan 4, 2021 at 1:54 PM Brent Dowell <brent...@gmail.com> wrote:
A couple months ago I moved my weather station to run on a Raspberry pi, and things have been running smoothly  with the exception of the data that gets uploaded to CWOP.

I upload data to cwop, wunderground, pwsweather, and my own weather site.  The only one missing the data is cwop.

I'm running weewx version 4.0.0b9 on python Python 2.7.16 with a vantage vue weather station.

I've attached below the cwop data, loop data, and syslog.

Thanks in advance for any help.



My raw data for cwop has a  b.....  for the barometric data. 
CW8738>APRS,TCPXX*,qAX,CWOP-4:@032150z3949.85N/11938.56W_315/009g014t050r000p000P000b.....h46.weewx-4.0.0b9-Vantage  

Loop Data looks like:
LOOP:   2021-01-04 13:48:42 PST (1609796922) appTemp: 27.7561312321, barometer: 29.922, beaufort: 7, cloudbase: 6804.06549784, consBatteryVoltage: 4.75, dateTime: 1609796922, dayET: 0.0, dayRain: 0.01, dewpoint: 39.7661118095, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 3, forecastRule: 187, heatindex: 50.3, humidex: 50.3, inDewpoint: 36.425696503, inHumidity: 32.0, insideAlarm: 0, inTemp: 67.3, leafWet4: 0.0, maxSolarRad: 340.146433311, monthET: 0.0, monthRain: 0.01, outHumidity: 67.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 50.3, pressure: 25.4481125632, rain: None, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.0, sunrise: 1609774320.0, sunset: 1609809312.0, txBatteryStatus: 0, usUnits: 1, windchill: 50.3, windDir: 158.0, windGust: 36.0, windGustDir: 158.0, windSpeed: 36.0, windSpeed10: 28.0, yearET: 0.0, yearRain: 0.4

Here's my syslog from the startup with debug = 1

Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Initializing weewx version 4.0.0b9
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Using Python 2.7.16 (default, Apr  6 2019, 01:42:57) #012[GCC 8.2.0]
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Platform Linux-4.19.75-v7l+-armv7l-with-debian-10.1
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Locale is 'en_US.UTF-8'
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Using configuration file /home/weewx/weewx.conf
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: StdConvert target unit is 0x1
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.wxservices: The following values will be calculated: altimeter=prefer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, heatindex=prefer_hardware, humidex=prefer_hardware, inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, pressure=prefer_hardware, rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Archive will use data binding wx_binding
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Record generation will be attempted in 'hardware'
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Using archive interval of 300 seconds (specified by hardware)
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.restx: StationRegistry: Station will not be registered: no station_url specified.
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.restx: Wunderground-PWS: Data for station KNVRENO31 will be posted
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.restx: PWSWeather: Data for station KNVRENO31 will be posted
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.restx: CWOP: Data for station CW8738 will be posted
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.restx: WOW: Posting not enabled.
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.restx: AWEKAS: Posting not enabled.
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Starting up weewx version 4.0.0b9
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Clock error is 0.21 seconds (positive is fast)
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.manager: Starting backfill of daily summaries
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Starting main packet loop.
Jan  4 13:50:14 raspberrypi dbus-daemon[291]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.43' (uid=1000 pid=11154 comm="geany ")
Jan  4 13:50:14 raspberrypi systemd[1]: Starting Hostname Service...
Jan  4 13:50:14 raspberrypi dbus-daemon[291]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan  4 13:50:14 raspberrypi systemd[1]: Started Hostname Service.
Jan  4 13:50:16 raspberrypi weewx[11987] INFO weewx.manager: Added record 2021-01-04 13:50:00 PST (1609797000) to database 'weewx.sdb'
Jan  4 13:50:16 raspberrypi weewx[11987] INFO weewx.manager: Added record 2021-01-04 13:50:00 PST (1609797000) to daily summary in 'weewx.sdb'
Jan  4 13:50:18 raspberrypi weewx[11987] INFO weewx.restx: CWOP: Published record 2021-01-04 13:50:00 PST (1609797000)
Jan  4 13:50:18 raspberrypi weewx[11987] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.98 seconds
Jan  4 13:50:18 raspberrypi weewx[11987] INFO weewx.restx: PWSWeather: Published record 2021-01-04 13:50:00 PST (1609797000)
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.imagegenerator: Generated 14 images for SeasonsReport in 0.65 seconds
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.reportengine: Copied 5 files to /home/weewx/public_html/seasons
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.restx: Wunderground-PWS: Published record 2021-01-04 13:50:00 PST (1609797000)
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.cheetahgenerator: Generated 6 files for report SmartphoneReport in 0.19 seconds
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.imagegenerator: Generated 6 images for SmartphoneReport in 0.25 seconds
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.reportengine: Copied 6 files to /home/weewx/public_html/smartphone
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.cheetahgenerator: Generated 1 files for report MobileReport in 0.06 seconds
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.imagegenerator: Generated 4 images for MobileReport in 0.17 seconds
Jan  4 13:50:19 raspberrypi weewx[11987] INFO weewx.reportengine: Copied 2 files to /home/weewx/public_html/mobile
Jan  4 13:50:21 raspberrypi weewx[11987] INFO weewx.cheetahgenerator: Generated 14 files for report StandardReport in 1.89 seconds
Jan  4 13:50:22 raspberrypi weewx[11987] INFO weewx.imagegenerator: Generated 12 images for StandardReport in 0.50 seconds
Jan  4 13:50:22 raspberrypi weewx[11987] INFO weewx.reportengine: Copied 14 files to /home/weewx/public_html/std
Jan  4 13:50:22 raspberrypi weewx[11987] INFO weewx.cheetahgenerator: Generated 1 files for report PVW in 0.19 seconds
Jan  4 13:50:23 raspberrypi weewx[11987] INFO weewx.imagegenerator: Generated 11 images for PVW in 0.43 seconds
Jan  4 13:50:23 raspberrypi weewxd: i:19 1609797023.21 1609778423  speed:2.0   dir  :146.25
Jan  4 13:50:23 raspberrypi weewxd: i:20 1609797023.21 1609779023  speed:1.5   dir  :123.75
Jan  4 13:50:23 raspberrypi weewxd: i:21 1609797023.21 1609779623  speed:0.5   dir  :112.5
Jan  4 13:50:23 raspberrypi weewxd: i:22 1609797023.21 1609780223  speed:3.5   dir  :168.75
Jan  4 13:50:23 raspberrypi weewxd: i:23 1609797023.21 1609780823  speed:1.5   dir  :315.0
Jan  4 13:50:23 raspberrypi weewxd: i:24 1609797023.21 1609781423  speed:0.0   dir  :None
Jan  4 13:50:23 raspberrypi weewxd: i:25 1609797023.21 1609782023  speed:0.5   dir  :315.0
Jan  4 13:50:23 raspberrypi weewxd: i:26 1609797023.21 1609782623  speed:0.0   dir  :None
Jan  4 13:50:23 raspberrypi weewxd: i:27 1609797023.21 1609783223  speed:2.0   dir  :191.25
Jan  4 13:50:23 raspberrypi weewxd: i:28 1609797023.21 1609783823  speed:5.5   dir  :270.0
Jan  4 13:50:23 raspberrypi weewxd: i:29 1609797023.21 1609784423  speed:6.0   dir  :270.0
Jan  4 13:50:23 raspberrypi weewxd: i:30 1609797023.21 1609785023  speed:13.5   dir  :213.75
Jan  4 13:50:23 raspberrypi weewxd: i:31 1609797023.21 1609785623  speed:17.5   dir  :236.25
Jan  4 13:50:23 raspberrypi weewxd: i:32 1609797023.21 1609786223  speed:19.0   dir  :225.0
Jan  4 13:50:23 raspberrypi weewxd: i:33 1609797023.21 1609786823  speed:20.0   dir  :225.0
Jan  4 13:50:23 raspberrypi weewxd: i:34 1609797023.21 1609787423  speed:22.0   dir  :213.75
Jan  4 13:50:23 raspberrypi weewxd: i:35 1609797023.21 1609788023  speed:24.0   dir  :180.0
Jan  4 13:50:23 raspberrypi weewxd: i:36 1609797023.21 1609788623  speed:20.5   dir  :191.25
Jan  4 13:50:23 raspberrypi weewxd: i:37 1609797023.21 1609789223  speed:22.5   dir  :225.0
Jan  4 13:50:23 raspberrypi weewxd: i:38 1609797023.21 1609789823  speed:22.5   dir  :202.5
Jan  4 13:50:23 raspberrypi weewxd: i:39 1609797023.21 1609790423  speed:16.5   dir  :236.25
Jan  4 13:50:23 raspberrypi weewxd: i:40 1609797023.21 1609791023  speed:15.5   dir  :191.25
Jan  4 13:50:23 raspberrypi weewxd: i:41 1609797023.21 1609791623  speed:22.5   dir  :157.5
Jan  4 13:50:23 raspberrypi weewxd: i:42 1609797023.21 1609792223  speed:21.0   dir  :180.0
Jan  4 13:50:23 raspberrypi weewxd: i:43 1609797023.21 1609792823  speed:25.5   dir  :157.5
Jan  4 13:50:23 raspberrypi weewxd: i:44 1609797023.21 1609793423  speed:22.5   dir  :168.75
Jan  4 13:50:23 raspberrypi weewxd: i:44 Recent      1609793423 Mon, 04 Jan 2021 12:50:23 +0000
Jan  4 13:50:23 raspberrypi weewxd: i:45 1609797023.21 1609794023  speed:26.5   dir  :157.5
Jan  4 13:50:23 raspberrypi weewxd: i:45 Recent      1609794023 Mon, 04 Jan 2021 13:00:23 +0000
Jan  4 13:50:23 raspberrypi weewxd: i:46 1609797023.21 1609794623  speed:22.5   dir  :157.5
Jan  4 13:50:23 raspberrypi weewxd: i:46 Recent      1609794623 Mon, 04 Jan 2021 13:10:23 +0000
Jan  4 13:50:23 raspberrypi weewxd: i:47 1609797023.21 1609795223  speed:24.0   dir  :157.5
Jan  4 13:50:23 raspberrypi weewxd: i:47 Recent      1609795223 Mon, 04 Jan 2021 13:20:23 +0000
Jan  4 13:50:23 raspberrypi weewxd: i:48 1609797023.21 1609795823  speed:27.0   dir  :157.5
Jan  4 13:50:23 raspberrypi weewxd: i:48 Recent      1609795823 Mon, 04 Jan 2021 13:30:23 +0000
Jan  4 13:50:23 raspberrypi weewxd: i:49 1609797023.21 1609796423  speed:28.0   dir  :157.5
Jan  4 13:50:23 raspberrypi weewxd: i:49 Recent      1609796423 Mon, 04 Jan 2021 13:40:23 +0000
Jan  4 13:50:23 raspberrypi weewxd: i:49 Current     1609796423 Mon, 04 Jan 2021 13:40:23 +0000
Jan  4 13:50:23 raspberrypi weewxd: speed:28.0
Jan  4 13:50:23 raspberrypi weewxd: dir  :157.5
Jan  4 13:50:23 raspberrypi weewxd: imageWindRose:genimages: Generated 1 images in 0.16 seconds
Jan  4 13:50:23 raspberrypi weewx[11987] INFO weewx.reportengine: Copied 24 files to /home/weewx/public_html/PVW
Jan  4 13:50:31 raspberrypi weewx[11987] INFO weewx.engine: Main loop exiting. Shutting engine down.
Jan  4 13:50:31 raspberrypi weewx[11987] INFO weewx.engine: Shutting down StdReport thread
Jan  4 13:50:42 raspberrypi weewx[11987] CRITICAL weewx.engine: Keyboard interrupt.
Jan  4 13:50:44 raspberrypi weewx[11987] INFO weewx.reportengine: ftpgenerator: Ftp'd 29 files in 21.12 seconds
Jan  4 13:50:45 raspberrypi systemd[1]: systemd-hostnamed.service: Succeeded.
Jan  4 13:50:50 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Jan  4 13:50:50 raspberrypi weewx[12051] INFO weewx.engine: Initializing weewx version 4.0.0b9
Jan  4 13:50:50 raspberrypi weewx[12051] INFO weewx.engine: Using Python 2.7.16 (default, Apr  6 2019, 01:42:57) #012[GCC 8.2.0]
Jan  4 13:50:50 raspberrypi weewx[12051] INFO weewx.engine: Platform Linux-4.19.75-v7l+-armv7l-with-debian-10.1
Jan  4 13:50:50 raspberrypi weewx[12051] INFO weewx.engine: Locale is 'en_US.UTF-8'
Jan  4 13:50:50 raspberrypi weewx[12051] INFO weewx.engine: PID file is /var/run/weewx.pid
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Using configuration file /home/weewx/weewx.conf
Jan  4 13:50:50 raspberrypi weewx[12040]: Starting weewx weather system: weewx.
Jan  4 13:50:50 raspberrypi systemd[1]: Started LSB: weewx weather system.
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Debug is 1
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Initializing engine
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Driver version is 3.2.0
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyUSB0; baud 19200; timeout 4.00
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Hardware type is 17
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: ISS ID is 1
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Hardware name: Vantage Vue
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: StdConvert target unit is 0x1
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.manager: Daily summary version is 2.0
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.wxservices: The following values will be calculated: altimeter=prefer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, heatindex=prefer_hardware, humidex=prefer_hardware, inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, pressure=prefer_hardware, rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Archive will use data binding wx_binding
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Record generation will be attempted in 'hardware'
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Using archive interval of 300 seconds (specified by hardware)
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.restx: StationRegistry: Station will not be registered: no station_url specified.
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.restx: WU essentials: {}
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.restx: Wunderground-PWS: Data for station KNVRENO31 will be posted
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.restx: PWSWeather: Data for station KNVRENO31 will be posted
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.restx: CWOP: Data for station CW8738 will be posted
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.restx: WOW: Posting not enabled.
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.restx: AWEKAS: Posting not enabled.
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.manager: Daily summary version is 2.0
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Starting up weewx version 4.0.0b9
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.manager: Daily summary version is 2.0
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.manager: Daily summary version is 2.0
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Clock error is 0.20 seconds (positive is fast)
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.manager: Starting backfill of daily summaries
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Getting archive packets since 2021-01-04 13:50:00 PST (1609797000)
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Retrieving 0 page(s); starting index= 0
Jan  4 13:50:50 raspberrypi weewx[12055] INFO weewx.engine: Starting main packet loop.
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
Jan  4 13:50:50 raspberrypi weewx[12055] DEBUG weewx.drivers.vantage: Gentle wake up of console successful








--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b669d6fa-0af5-4766-b8b0-55892c684bdan%40googlegroups.com.

Brent Dowell

unread,
Jan 4, 2021, 7:56:28 PM1/4/21
to weewx-user
It's not uploading the barometric pressure.

CW8738>APRS,TCPXX*,qAX,CWOP-4:@032150z3949.85N/11938.56W_315/009g014t050r000p000P000b.....h46.weewx-4.0.0b9-Vantage  

Looking at the code, it's supposed to calculate the 'altimeter' value from 'barometer'.  However it's not doing that.   Altimeter is set to None, so when it uploads to CWOP, it skipps the barometer reading, with 'b.....'.

I did experiment around with restx.py and set that to just use the barometer if altimeter is none.

Just not sure why it's not calculating the altimeter.

Brent Dowell

unread,
Jan 4, 2021, 7:57:51 PM1/4/21
to weewx-user
I apologize for the duplicate messages.  This was the first one I posted, and tried to delete earlier.  There's another post I made that has more detailed info.

p q

unread,
Jan 4, 2021, 9:02:40 PM1/4/21
to weewx...@googlegroups.com
That b makes me think it's a string/byte python2 vs python 3 issue. I have no evidence to back that up...



--
Peter Quinn
(415)794-2264

Brent Dowell

unread,
Jan 4, 2021, 9:29:25 PM1/4/21
to weewx-user
That's the string that restx.py is setting it to if the altimeter value is None before it feeds it to CWOP.

I had been using some VERY old code prior to updating to run on the raspberry pi, so I'm not surprised there is something broken.

Just debugging my way through the python till I figure out some more details.  Right now I'm leaning towards something in uwxutils.py.

Just to be clear, I'm assuming it's something in my configuration or implementation that is causing this, not necessarily any bugs in weewx.

Brent Dowell

unread,
Jan 4, 2021, 10:07:03 PM1/4/21
to weewx-user
I'm thinking it has something to do with wxservices.py.

At around line 558, there's this code for calculating 'altimeter'. I do not have a value for 'pressure' in the record.  I have 'barometer', which I'm assuming is '
Sensor Pressure' from reading some of the comments in the python code.

   def altimeter(self, record):
        """Calculate the observation type 'altimeter'."""

        log.info("VANTAGE DEBUG: calc altimeter: %s","altimeter")
        log.info("VANTAGE DEBUG: calc altimeter record: %s",record)
        
        if 'pressure' not in record:
            raise weewx.CannotCalculate('altimeter')

And as I keep search, I see that it can calculate pressure from what it has, but that is not in the record. So seems like it shoudl be calculating and adding pressure to the record before the altimeter, but...

Getting a bit out of my depth here.  I can trace through the code a bit on the pi, but getting a bit lost on the details of the code.


On Monday, January 4, 2021 at 6:02:40 PM UTC-8 peterq...@gmail.com wrote:

Brent Dowell

unread,
Jan 4, 2021, 10:25:13 PM1/4/21
to weewx-user
Think I figured it out.

Calculating the altimeter depends on pressure being calculated, but the list of calculations had pressure in alphabetical order.
I moved pressure in the calculations section before altimeter and my problem appears to be solved.


wxservices.py line 46

   [[Calculations]]
        pressure = prefer_hardware
        altimeter = prefer_hardware
        appTemp = prefer_hardware
        barometer = prefer_hardware
        beaufort = prefer_hardware        
        cloudbase = prefer_hardware
        dewpoint = prefer_hardware
        ET = prefer_hardware
        heatindex = prefer_hardware
        humidex = prefer_hardware
        inDewpoint = prefer_hardware
        maxSolarRad = prefer_hardware
        rainRate = prefer_hardware
        windchill = prefer_hardware
        windrun = prefer_hardware

Brent Dowell

unread,
Jan 4, 2021, 10:38:15 PM1/4/21
to weewx...@googlegroups.com
Think I figured it out.

Calculating the altimeter depends on pressure being calculated, but the list of calculations had pressure in alphabetical order.
I moved pressure in the calculations section before altimeter and my problem appears to be solved.


wxservices.py line 46

   [[Calculations]]
        pressure = prefer_hardware
        altimeter = prefer_hardware
        appTemp = prefer_hardware
        barometer = prefer_hardware
        beaufort = prefer_hardware        
        cloudbase = prefer_hardware
        dewpoint = prefer_hardware
        ET = prefer_hardware
        heatindex = prefer_hardware
        humidex = prefer_hardware
        inDewpoint = prefer_hardware
        maxSolarRad = prefer_hardware
        rainRate = prefer_hardware
        windchill = prefer_hardware
        windrun = prefer_hardware

gjr80

unread,
Jan 4, 2021, 11:12:07 PM1/4/21
to weewx-user
Yes, pressure needs to be listed before the other pressures, order matters in this case. I thought of that but the wee_debug output you provided in the other thread showed pressure was first so I did not bother. No matter, I guess it's fixed now.

Gary

Brent Dowell

unread,
Jan 4, 2021, 11:34:24 PM1/4/21
to weewx-user
The issue is that it's looping over the calculations in that order in the wxservices.py source code, and not the order from the weewx.conf.

I had to edit the order in the wxservices.py code in order to get things to work right.

I did add it as an issue in the github repository.

gjr80

unread,
Jan 5, 2021, 12:24:51 AM1/5/21
to weewx-user
Ah, didn't notice that. the other thing is you appear to be running a late beta of a version about four versions ago. Plus there has been quite a few changes to StdWXCalculate over the last few releases. You may find that the issue has been resolved (deliberately or unintentionally) in one of those releases.

I don't have access to 4.0.0b9 but I will take a browse through some of his close friends and see if I can't spot a problem.

Gary

gjr80

unread,
Jan 5, 2021, 2:30:53 AM1/5/21
to weewx-user
OK, found 4.0.0b9, yes indeed altimeter was before pressure. Plus when you look back at the initial log extract provided you can see the evidence:

Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Initializing weewx version 4.0.0b9
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Using Python 2.7.16 (default, Apr  6 2019, 01:42:57) #012[GCC 8.2.0]
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Platform Linux-4.19.75-v7l+-armv7l-with-debian-10.1
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Locale is 'en_US.UTF-8'
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Using configuration file /home/weewx/weewx.conf
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: StdConvert target unit is 0x1
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.wxservices: The following values will be calculated: altimeter=prefer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, heatindex=prefer_hardware, humidex=prefer_hardware, inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, pressure=prefer_hardware, rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
Jan  4 13:48:41 raspberrypi weewx[11987] INFO weewx.engine: Archive will use data binding wx_binding

b10 was the same but b11 onwards was fixed and as I said later releases have changed in this area significantly.

Sure this was an issue for 4.0.0b9 but I don't believe it is an issue for 4.0.0b11 and any subsequent releases. Easiest solution is to upgrade.

Gary

Brent Dowell

unread,
Jan 5, 2021, 8:10:42 AM1/5/21
to weewx-user

Awesome.  I'll go ahead and do an upgrade later today.  Thanks!

Brent Dowell

unread,
Jan 5, 2021, 9:04:10 AM1/5/21
to weewx-user
Just upgraded and all is looking good.

CW8738>APRS,TCPXX*,qAX,CWOP-4:@051400z3949.85N/11938.56W_113/002g004t029r000p001P000b10185h85.weewx-4.3.0-Vantage 

Thanks again! 

Reply all
Reply to author
Forward
0 new messages