Author Topic: StdCalibrate  (Read 3090 times)

0 Members and 1 Guest are viewing this topic.

Offline wxwatching

  • Member
  • *
  • Posts: 14
StdCalibrate
« on: January 15, 2017, 09:58:31 PM »
I was trying to apply a barometric calibration in StdCalibrate. It does not appear to actually get reported other than I see the calibrated value appear on WU briefly and then it reverts back to the uncalibrated value.

From my weewx.conf file:

Code: [Select]
[StdCalibrate]
   
    [[Corrections]]
        # For each type, an arbitrary calibration expression can be given.
        # It should be in the units defined in the StdConvert section.
        # Example:
        foo = foo + 0.2
barometer = barometer + 0.05

Here is syslog when I start Weewx:

Code: [Select]
Jan 15 14:37:30 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Jan 15 14:37:30 raspberrypi weewx[1348]: engine: Initializing weewx version 3.6.2
Jan 15 14:37:30 raspberrypi weewx[1348]: engine: Using Python 2.7.9 (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2]
Jan 15 14:37:30 raspberrypi weewx[1348]: engine: Platform Linux-4.4.34-v7+-armv7l-with-debian-8.0
Jan 15 14:37:30 raspberrypi weewx[1348]: engine: pid file is /var/run/weewx.pid
Jan 15 14:37:30 raspberrypi weewx[1337]: Starting weewx weather system: weewx.
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Using configuration file /etc/weewx/weewx.conf
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Initializing engine
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading station type AcuRite (weewx.drivers.acurite)
Jan 15 14:37:30 raspberrypi systemd[1]: Started LSB: weewx weather system.
Jan 15 14:37:30 raspberrypi weewx[1352]: acurite: driver version is 0.24
Jan 15 14:37:30 raspberrypi weewx[1352]: acurite: R2 will be decoded using sensor constants
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.engine.StdTimeSynch
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.engine.StdTimeSynch
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.engine.StdConvert
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: StdConvert target unit is 0x1
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.engine.StdConvert
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.engine.StdCalibrate
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.engine.StdCalibrate
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.engine.StdQC
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.engine.StdQC
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.wxservices.StdWXCalculate
Jan 15 14:37:30 raspberrypi weewx[1352]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Jan 15 14:37:30 raspberrypi weewx[1352]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.wxservices.StdWXCalculate
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.engine.StdArchive
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Archive will use data binding wx_binding
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Record generation will be attempted in 'hardware'
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Using archive interval of 300 seconds (specified in weewx configuration)
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Use LOOP data in hi/low calculations: 1
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Jan 15 14:37:30 raspberrypi weewx[1352]: manager: Starting backfill of daily summaries
Jan 15 14:37:30 raspberrypi weewx[1352]: manager: Daily summaries up to date
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.engine.StdArchive
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.restx.StdStationRegistry
Jan 15 14:37:30 raspberrypi weewx[1352]: restx: StationRegistry: Registration not requested.
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.restx.StdStationRegistry
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.restx.StdWunderground
Jan 15 14:37:30 raspberrypi weewx[1352]: restx: Wunderground-RF: Data for station KNCDUNN5 will be posted
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.restx.StdWunderground
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.restx.StdPWSweather
Jan 15 14:37:30 raspberrypi weewx[1352]: restx: PWSWeather: Data for station KNCDUNN5 will be posted
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.restx.StdPWSweather
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.restx.StdCWOP
Jan 15 14:37:30 raspberrypi weewx[1352]: restx: CWOP: Data for station KG4AGD will be posted
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.restx.StdCWOP
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.restx.StdWOW
Jan 15 14:37:30 raspberrypi weewx[1352]: restx: WOW: Posting not enabled.
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.restx.StdWOW
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.restx.StdAWEKAS
Jan 15 14:37:30 raspberrypi weewx[1352]: restx: AWEKAS: Posting not enabled.
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.restx.StdAWEKAS
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.engine.StdPrint
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.engine.StdPrint
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Loading service weewx.engine.StdReport
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Finished loading service weewx.engine.StdReport
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Starting up weewx version 3.6.2
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Station does not support reading the time
Jan 15 14:37:30 raspberrypi weewx[1352]: engine: Starting main packet loop.
Jan 15 14:37:30 raspberrypi weewx[1352]: acurite: Found station at bus=001 device=008
Jan 15 14:37:31 raspberrypi weewx[1352]: restx: raw packet: {'sensor_id': 498, 'outHumidity': 62, 'maxSolarRad': None, 'altimeter': 30.23504595660019, 'heatindex': 58.8, 'inDewpoint': None, 'channel': 3, 'inTemp': 73.94, 'barometer': 30.244346115411837, 'windchill': 58.8, 'dewpoint': 45.80878260610244, 'humidex': 59.296429813025824, 'pressure': 29.990655305, 'sensor_battery': 0, 'rxCheckPercent': 100.0, 'rainRate': 0, 'usUnits': 1, 'txTempBatteryStatus': 0, 'appTemp': 51.388215176186876, 'dateTime': 1484509051, 'outTemp': 58.8, 'windSpeed': 11.423192116022717, 'rssi': 3, 'cloudbase': 3185.48961921927}
Jan 15 14:37:31 raspberrypi weewx[1352]: restx: cached packet: {'sensor_id': 498, 'outHumidity': 62, 'humidex': 59.296429813025824, 'rainRate': 0, 'heatindex': 58.8, 'inTemp': 73.94, 'channel': 3, 'barometer': 30.244346115411837, 'windchill': 58.8, 'dewpoint': 45.80878260610244, 'pressure': 29.990655305, 'sensor_battery': 0, 'rxCheckPercent': 100.0, 'altimeter': 30.23504595660019, 'usUnits': 1, 'txTempBatteryStatus': 0, 'appTemp': 51.388215176186876, 'dateTime': 1484509051, 'outTemp': 58.8, 'windSpeed': 11.423192116022717, 'rssi': 3, 'cloudbase': 3185.48961921927}
Jan 15 14:37:31 raspberrypi weewx[1352]: acurite: next read in 18 seconds
Jan 15 14:37:49 raspberrypi weewx[1352]: acurite: Found station at bus=001 device=008
Jan 15 14:37:49 raspberrypi weewx[1352]: restx: raw packet: {'sensor_id': 498, 'maxSolarRad': None, 'altimeter': None, 'heatindex': None, 'inDewpoint': None, 'rain_total': 99.9236, 'channel': 3, 'barometer': None, 'windchill': None, 'dewpoint': None, 'rain': None, 'humidex': None, 'pressure': None, 'sensor_battery': 0, 'rxCheckPercent': 100.0, 'rainRate': 0, 'usUnits': 1, 'txTempBatteryStatus': 0, 'appTemp': None, 'dateTime': 1484509069, 'windDir': 112.5, 'windSpeed': 8.851330359029168, 'rssi': 3, 'cloudbase': None}

Thanks,
AB

Offline gjr80

  • Member
  • *
  • Posts: 45
Re: StdCalibrate
« Reply #1 on: January 16, 2017, 03:25:31 AM »
Hi,

Probably best asked in the weewx user's group http://groups.google.com/group/weewx-user

Gary

Offline mwall

  • Contributor
  • ***
  • Posts: 135
Re: StdCalibrate
« Reply #2 on: January 16, 2017, 08:17:05 AM »
I was trying to apply a barometric calibration in StdCalibrate. It does not appear to actually get reported other than I see the calibrated value appear on WU briefly and then it reverts back to the uncalibrated value.

calibrations are applied to raw sensor data, not to derived variables.

for acurite hardware, barometer is a derived variable (it is calculated from pressure, temperature, and altitude)

so you should apply the offset to 'pressure', not 'barometer'

need to see more log to make any guesses about wu.  the 'restx' messages tell you exactly what will be sent to wu.  if you set debug=2 you'll see the actual url used to post the data.  what happens to it once wu gets it is anyone's guess.

as gary noted, its usually best to post these kinds of issues at the weewx forum on google groups.

m

EDIT: this might help:

https://github.com/weewx/weewx/wiki/Barometer,-pressure,-and-altimeter
« Last Edit: January 16, 2017, 08:18:47 AM by mwall »

 

anything