Getting ObserverIp working with python3

44 views
Skip to first unread message

Bill Eaton

unread,
Sep 27, 2020, 8:33:05 PM9/27/20
to weewx-user
I'm upgrading my desktop/server to Ubuntu 20.04/Python3. My old installation of WeeWx was running on Python2.7. On Python 2.7, I was able to get Matt Walls ObserverIp driver working.

I hacked up the ObserverIp driver fixing all of the things that wouldn't work in Python 3 until all of the errors went away. I gave up when I got the driver running on it's own, but WeeWx was logging some kind of dict rain gauge error.

Now I'm working on the Interceptor driver in listen mode. It runs in Python3 with no errors. But I don't seem to be getting any data either. I'm not 100% clear how it's supposed to work. I telnetted into the bridge and configured it to point to the static address on my desktop/server computer(setdsthn <hostname/address>). By default the bridge wants to talk to port 5000, so I put port 5000 in the weewx.conf file.

The interceptor.py driver runs by itself without errors. And WeeWx starts without errors, but there are a bunch of messages

DEBUG user.interceptor: empty queue

Has anyone had any success with Interceptor in Python3?

Sep 27 17:00:31 locutus weewx[56069] INFO __main__: Using Python 3.8.2 (default, Jul 16 2020, 14:00:26) #012[GCC 9.3.0]
Sep 27 17:00:31 locutus weewx[56069] INFO __main__: Platform Linux-5.4.0-48-generic-x86_64-with-glibc2.29
Sep 27 17:00:31 locutus weewx[56069] INFO __main__: Locale is 'en_US.UTF-8'
Sep 27 17:00:31 locutus weewx[56069] INFO __main__: PID file is /var/run/weewx.pid
Sep 27 17:00:31 locutus weewx[56072] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Sep 27 17:00:31 locutus weewx[56072] INFO __main__: Debug is 1
Sep 27 17:00:31 locutus weewx[56072] DEBUG __main__: Initializing engine
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.engine: Loading station type Interceptor (user.interceptor)
Sep 27 17:00:31 locutus weewx[56040]:    ...done.
Sep 27 17:00:31 locutus systemd[1]: Started LSB: weewx weather system.
Sep 27 17:00:31 locutus weewx[56072] INFO user.interceptor: driver version is 0.53
Sep 27 17:00:31 locutus weewx[56072] INFO user.interceptor: device type: acurite-bridge
Sep 27 17:00:31 locutus weewx[56072] INFO user.interceptor: mode is listen
Sep 27 17:00:31 locutus weewx[56072] INFO user.interceptor: listen on :5000
Sep 27 17:00:31 locutus weewx[56072] INFO user.interceptor: sensor map: {'pressure': 'pressure.*.*', 'inTemp': 'temperature_in.*.*', 'inHumidity': 'humidity_in.*.*', 'outTemp': 'temperature.?*.*', 'outHumidity': 'humidity.?*.*', 'windSpeed': 'windspeed.?*.*', 'windDir': 'winddir.?*.*', 'rain': 'rainfall.?*.*', 'txBatteryStatus': 'battery.?*.*', 'rxCheckPercent': 'rssi.?*.*'}
Sep 27 17:00:31 locutus weewx[56072] DEBUG user.interceptor: start tcp server
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.engine: StdConvert target unit is 0x1
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.manager: Daily summary version is 1.0
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.wxservices: The following values will be calculated: 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
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.engine: Archive will use data binding wx_binding
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.engine: Record generation will be attempted in 'hardware'
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.engine: Using archive interval of 300 seconds (specified in weewx configuration)
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.restx: StationRegistry: Registration not requested.
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.restx: Wunderground: Posting not enabled.
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.restx: PWSweather: Posting not enabled.
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.restx: CWOP: Posting not enabled.
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.restx: WOW: Posting not enabled.
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.restx: AWEKAS: Posting not enabled.
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Sep 27 17:00:31 locutus weewx[56072] INFO __main__: Starting up weewx version 4.1.1
Sep 27 17:00:31 locutus weewx[56072] DEBUG weewx.engine: Station does not support reading the time
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.manager: Starting backfill of daily summaries
Sep 27 17:00:31 locutus weewx[56072] INFO weewx.engine: Starting main packet loop.
Sep 27 17:00:41 locutus weewx[56072] DEBUG user.interceptor: empty queue
Sep 27 17:00:51 locutus weewx[56072] DEBUG user.interceptor: empty queue
Sep 27 17:01:01 locutus weewx[56072] DEBUG user.interceptor: empty queue
Sep 27 17:01:11 locutus weewx[56072] DEBUG user.interceptor: empty queue
Sep 27 17:01:31 locutus weewx[56072] message repeated 2 times: [ DEBUG user.interceptor: empty queue]
Sep 27 17:01:41 locutus weewx[56072] DEBUG user.interceptor: empty queue

Reply all
Reply to author
Forward
0 new messages