Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 29 09:47:37 2020 from 192.168.20.45
pi@raspberrypi:~ $ ps -ef|grep weewx
pi 30253 30223 0 12:01 pts/0 00:00:00 grep --color=auto weewx
root 32235 1 5 May01 ? 02:23:06 python2 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
pi@raspberrypi:~ $ python3 --version
Python 3.5.3
pi@raspberrypi:~ $
Whats the trick that I've missed to tell it to use Python3?
Many thanks
Colin
--
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/CACjxfUv_62X8mX2Q8zG7SO6-9TWXgWaFHYLRO8LTnPmrMRTJYw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECE9FUpRR_gZ6TCrRM6zp1msX0OhGPVpbFBgSpP93TdOA%40mail.gmail.com.
--
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/2BE0524D-D87A-45EB-8A45-A6ED93BD087B%40gmail.com.
WEEWX_PYTHON=python2
WEEWX_BINDIR=/usr/share/weewx
WEEWX_BIN=/usr/bin/weewxd
WEEWX_CFG=/etc/weewx/weewx.conf
Changing it to python3 breaks weewx so I'll just leave well enough alone
Colin
Whoops sorry /etc/default/weewx that should have been
I found this /etc/defaultWEEWX_PYTHON=python2
WEEWX_BINDIR=/usr/share/weewx
WEEWX_BIN=/usr/bin/weewxd
WEEWX_CFG=/etc/weewx/weewx.conf
Changing it to python3 breaks weewx so I'll just leave well enough alone
--
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/973baa2b-1c38-45c8-a3ed-630835e0bfdd%40googlegroups.com.
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: Caught unrecoverable exception:
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** invalid syntax (mqtt.py, line 196)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** Traceback (most recent call last):
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 148, in main
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** self.loadServices(config_dict)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** obj = weeutil.weeutil.get_object(svc)(self,config_dict)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** mod = __import__(module)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/user/mqtt.py", line 196
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** except KeyError, e:
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** ^
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** SyntaxError: invalid syntax
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** Exiting.
This may be a problem? After changing to python3 ......May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: Caught unrecoverable exception:
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** invalid syntax (mqtt.py, line 196)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** Traceback (most recent call last):
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 148, in main
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** self.loadServices(config_dict)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** obj = weeutil.weeutil.get_object(svc)(self,config_dict)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** mod = __import__(module)
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** File "/usr/share/weewx/user/mqtt.py", line 196
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** except KeyError, e:
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** ^
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** SyntaxError: invalid syntax
May 3 16:28:06 raspberrypi weewx[5437] CRITICAL __main__: **** Exiting.
On Sun, 3 May 2020 at 15:45, Colin Larsen <colin...@gmail.com> wrote:
Ah ...... that will be the missing piece of the puzzle! Off to sort that now, will report back.Thanks!
On Sun, 3 May 2020 at 15:30, mwall <mw...@users.sourceforge.net> wrote:
On Saturday, May 2, 2020 at 9:11:51 PM UTC-4, Colin Larsen wrote:--I found this /etc/defaultWEEWX_PYTHON=python2
WEEWX_BINDIR=/usr/share/weewx
WEEWX_BIN=/usr/bin/weewxd
WEEWX_CFG=/etc/weewx/weewx.conf
Changing it to python3 breaks weewx so I'll just leave well enough alone
you *should* be able to switch from python2 to python3 simply by changing the WEEWX_PYTHON line. however, if you were running with python2 and you have not installed the python3 dependencies, then of course weewx won't run.m
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...@googlegroups.com.
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/f3000d48-6728-47f3-9b3f-cc6dff38018d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CACjxfUt%2BN8tPjO6m6iSU9CiAYPXcSyeuwiB1wUMtPsVg_rQZqQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECic6VsOdomWgO0vdYuLniReua4XKYMPuwoYisQZA2rEw%40mail.gmail.com.
pebble:weewx $ sudo python3.7 -m pip install python-cjson...Collecting python-cjsonDownloading python-cjson-1.2.2.tar.gz (12 kB)Installing collected packages: python-cjsonRunning setup.py install for python-cjson ... errorERROR: Command errored out with exit status 1:...cjson.c:1206:9: error: non-void function 'initcjson' should return a value [-Wreturn-type]return;^69 warnings and 13 errors generated.error: command '/usr/bin/clang' failed with exit status 1----------------------------------------ERROR: Command errored out with exit status 1: /opt/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-pnhk7sf4/python-cjson/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-pnhk7sf4/python-cjson/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-8ccz83fi/install-record.txt --single-version-externally-managed --compile --install-headers /opt/local/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/python-cjson Check the logs for full command output.
sudo python3.7 -m pip install ujson
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: Caught unrecoverable exception:
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** No module named 'paho'
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** Traceback (most recent call last):
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 148, in main
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict)
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** self.loadServices(config_dict)
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** obj = weeutil.weeutil.get_object(svc)(self,config_dict)
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** mod = __import__(module)
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** File "/usr/share/weewx/user/mqtt.py", line 94, in <module>
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** import paho.mqtt.client as mqtt
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** ImportError: No module named 'paho'
May 6 14:16:47 raspberrypi weewx[6432] CRITICAL __main__: **** Exiting.
Tried to install Paho and I get ...
pi@raspberrypi:/etc/default $ sudo pip install paho-mqtt
Requirement already satisfied: paho-mqtt in /usr/local/lib/python2.7/dist-packages
So how do I install it for python3 please :)
Cheers
Colin
--
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/296D8321-100E-45B1-A47A-2657960A2942%40gmail.com.
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: Caught unrecoverable exception:
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** invalid syntax (owm.py, line 84)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** Traceback (most recent call last):
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 148, in main
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** self.loadServices(config_dict)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** obj = weeutil.weeutil.get_object(svc)(self,config_dict)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** mod = __import__(module)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/user/owm.py", line 84
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** except KeyError, e:
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** ^
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** SyntaxError: invalid syntax
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** Exiting.
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** except KeyError, e:
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** ^
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** SyntaxError: invalid syntax
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** Exiting.
--
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/10c129b2-7488-418c-8380-07115b479be2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CACjxfUsqFccLY_T0oPPwatGRd9tJs-ceOGqJyH1T2ps3VJ6mvw%40mail.gmail.com.
Fixed that one with; sudo python3 -m pip install paho-mqttNow I have an error that looks like it is Open Wetaher map?May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: Caught unrecoverable exception:
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** invalid syntax (owm.py, line 84)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** Traceback (most recent call last):
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 148, in main
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** self.loadServices(config_dict)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** obj = weeutil.weeutil.get_object(svc)(self,config_dict)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** mod = __import__(module)
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** File "/usr/share/weewx/user/owm.py", line 84
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** except KeyError, e:
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** ^
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** SyntaxError: invalid syntax
May 6 14:29:07 raspberrypi weewx[6896] CRITICAL __main__: **** Exiting.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
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/5edba9a8-8cbb-4ae9-8b86-68b0c5a9cdf7%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/5edba9a8-8cbb-4ae9-8b86-68b0c5a9cdf7%40googlegroups.com.
May 7 11:53:05 raspberrypi weewx[3923] INFO weewx.engine: Main loop exiting. Shutting engine down.
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: Terminating weewx version 4.0.0
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** Traceback (most recent call last):
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** File "/usr/share/weewx/weewxd", line 154, in main
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** engine.run()
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** File "/usr/share/weewx/weewx/engine.py", line 188, in run
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** for packet in self.console.genLoopPackets():
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 532, in genLoopPackets
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** for _loop_packet in self.genDavisLoopPackets(200):
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 559, in genDavisLoopPackets
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** loop_packet = self._get_packet()
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 572, in _get_packet
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** _buffer = self.port.read(99)
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 279, in read
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** _buffer = self.serial_port.read(chars)
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 472, in read
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** File "/usr/share/weewx/weewxd", line 257, in sigTERMhandler
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** raise Terminate
May 7 11:53:05 raspberrypi weewx[3923] INFO __main__: **** Terminate
May 7 11:53:10 raspberrypi weewx[3964]: Stopping weewx weather system: weewx..
May 7 11:53:10 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
May 7 11:53:11 raspberrypi systemd[1]: Starting LSB: weewx weather system...
May 7 11:53:11 raspberrypi weewx[4006] INFO __main__: Initializing weewx version 4.0.0
May 7 11:53:11 raspberrypi weewx[4006] INFO __main__: Using Python 3.5.3 (default, Sep 27 2018, 17:25:39) #012[GCC 6.3.0 20170516]
May 7 11:53:11 raspberrypi weewx[4006] INFO __main__: Platform Linux-4.14.71-v7+-armv7l-with-debian-9.4
May 7 11:53:11 raspberrypi weewx[4006] INFO __main__: Locale is 'en_NZ.UTF-8'
May 7 11:53:11 raspberrypi weewx[4006] INFO __main__: PID file is /var/run/weewx.pid
May 7 11:53:11 raspberrypi weewx[4010] INFO __main__: Using configuration file /etc/weewx/weewx.conf
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
May 7 11:53:11 raspberrypi weewx[3994]: Starting weewx weather system: weewx.
May 7 11:53:11 raspberrypi systemd[1]: Started LSB: weewx weather system.
May 7 11:53:11 raspberrypi /weewxd: filepile: Using /home/pi/AQIData.txt with the 'METRIC' unit system
May 7 11:53:11 raspberrypi /weewxd: filepile: Label map is {}
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.engine: StdConvert target unit is 0x10
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.wxservices: The following values will be calculated: pressure=prefer_hardware, barometer=prefer_hardware, altimeter=prefer_hardware, windchill=prefer_hardware, heatindex=prefer_hardware, dewpoint=prefer_hardware, inDewpoint=prefer_hardware, rainRate=prefer_hardware, appTemp=software, maxSolarRad=prefer_hardware, cloudbase=prefer_hardware, humidex=prefer_hardware, ET=prefer_hardware, windrun=prefer_hardware
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.engine: Archive will use data binding wx_binding
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.engine: Record generation will be attempted in 'software'
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.engine: Using archive interval of 300 seconds (software record generation)
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.restx: StationRegistry: Station will be registered.
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.restx: Wunderground: Posting not enabled.
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.restx: PWSweather: Posting not enabled.
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.restx: CWOP: Data for station ZL2ARL will be posted
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.restx: WOW: Posting not enabled.
May 7 11:53:11 raspberrypi weewx[4010] INFO weewx.restx: AWEKAS: Posting not enabled.
May 7 11:53:12 raspberrypi weewx[4010] INFO user.mqtt: service version is 0.22
May 7 11:53:12 raspberrypi weewx[4010] INFO user.mqtt: binding to loop
May 7 11:53:12 raspberrypi weewx[4010] INFO user.mqtt: topic is weather/41south
May 7 11:53:12 raspberrypi weewx[4010] INFO user.mqtt: desired unit system is METRIC
May 7 11:53:12 raspberrypi weewx[4010] INFO user.mqtt: data will be uploaded to mqtt://192.168.20.121:1883/
May 7 11:53:12 raspberrypi /weewxd: restx: Windy: version is 0.4
May 7 11:53:12 raspberrypi /weewxd: restx: Windy: Data will be uploaded to https://stations.windy.com/pws/update
May 7 11:53:12 raspberrypi weewx[4010] INFO user.owm: service version is 0.9
May 7 11:53:12 raspberrypi weewx[4010] INFO user.owm: Data will be uploaded for 5e8d2259cca8ce0001f1aabd
May 7 11:53:12 raspberrypi weewx[4010] INFO __main__: Starting up weewx version 4.0.0
May 7 11:53:12 raspberrypi weewx[4010] INFO weewx.engine: Clock error is -1.17 seconds (positive is fast)
May 7 11:53:12 raspberrypi weewx[4010] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
May 7 11:53:12 raspberrypi weewx[4010] INFO weewx.manager: Starting backfill of daily summaries
May 7 11:53:12 raspberrypi weewx[4010] INFO weewx.engine: Starting main packet loop.
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/7aab2ac7-b93f-4c51-893f-d8c4fc508e4f%40googlegroups.com.
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: OWM: Unexpected exception of type <class 'TypeError'>
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** Traceback (most recent call last):
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** File "/usr/share/weewx/weewx/restx.py", line 378, in run_loop
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** self.process_record(_record, dbmanager)
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** File "/usr/share/weewx/user/owm.py", line 210, in process_record
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** self.post_with_retries(req)
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** File "/usr/share/weewx/weewx/restx.py", line 472, in post_with_retries
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** _response = self.post_request(request, data)
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** File "/usr/share/weewx/weewx/restx.py", line 539, in post_request
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** _response = urllib.request.urlopen(request, data=data_bytes, timeout=self.timeout)
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** return opener.open(url, data, timeout)
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** File "/usr/lib/python3.5/urllib/request.py", line 464, in open
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** req = meth(req)
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** File "/usr/lib/python3.5/urllib/request.py", line 1183, in do_request_
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** raise TypeError(msg)
May 7 11:55:15 raspberrypi weewx[4010] ERROR weewx.restx: *** TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
May 7 11:55:15 raspberrypi weewx[4010] CRITICAL weewx.restx: OWM: Thread terminating. Reason: POST data should be bytes or an iterable of bytes. It cannot be of type str.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CACjxfUuJP1t_wr%3Dmq8R2tyZP6K9Qo1KdZzY63k64YpuL1pXm0w%40mail.gmail.com.
May 7 16:24:53 raspberrypi systemd[1]: Stopping LSB: weewx weather system...
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: Received signal TERM (15).
May 7 16:24:53 raspberrypi weewx[10196] INFO weewx.engine: Main loop exiting. Shutting engine down.
May 7 16:24:53 raspberrypi weewx[10196] INFO weewx.engine: Shutting down StdReport thread
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: Terminating weewx version 4.0.0
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** Traceback (most recent call last):
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** File "/usr/share/weewx/weewxd", line 154, in main
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** engine.run()
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** File "/usr/share/weewx/weewx/engine.py", line 188, in run
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** for packet in self.console.genLoopPackets():
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 532, in genLoopPackets
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** for _loop_packet in self.genDavisLoopPackets(200):
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 559, in genDavisLoopPackets
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** loop_packet = self._get_packet()
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 572, in _get_packet
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** _buffer = self.port.read(99)
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 279, in read
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** _buffer = self.serial_port.read(chars)
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 472, in read
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** File "/usr/share/weewx/weewxd", line 257, in sigTERMhandler
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** raise Terminate
May 7 16:24:53 raspberrypi weewx[10372]: Stopping weewx weather system: weewx.
May 7 16:24:53 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
May 7 16:24:53 raspberrypi weewx[10196] INFO __main__: **** Terminate
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEAi7dv7g%2BRWJTPCsLvj5J9pUCxbXOfE8e5WN5%2B0eJQVFQ%40mail.gmail.com.
May 7 09:35:24 jed165 weewx[2390] ERROR weewx.cheetahgenerator: **** File "_etc_weewx_skins_ss_gauge_data_txt_tmpl.py", line 339, in respond
May 7 09:35:24 jed165 weewx[2390] ERROR weewx.cheetahgenerator: **** TypeError: '>' not supported between instances of 'NoneType' and 'int'
and
|
#set $dp_K = $current.dewpoint.degree_C.raw + 273.16
#set $e = 6.11 * math.exp(5417.7530 * ((1/273.16) - 1/$dp_K))
#set $h = 0.5555 * ($e - 10.0)
#for $hour in $day.hours
#if $hour.rain.sum.raw is not None and $hour.rain.sum.raw > $hourlyrainTH
#set $hourlyrainTH = $hour.rain.sum.raw
Now if $hour.rain.sum.raw is None the first conditional will cause execution to skip the rest of the if statement avoiding the problematic '>'. |
--
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/9055c81f-e90c-4fd2-9bfa-04350f04f2f2%40googlegroups.com.
Gary
There is no error. It is an informational stack trace on WeeWX exit and it cannot be turned off without modifying the code base.
Gary
--
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/34e60342-0957-4a54-83e7-c959004745b4%40googlegroups.com.
Bottom line it is nothing wrong with your install or nor is it caused by anything you have done (other than shutting down or restarting WeeWX).
Gary
--
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/1a88958e-02d1-456b-a37f-321c1394d960%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CACjxfUtx-nJGS1FJkvms9FwHmpRgKmhz%3D215kmQG2_cw3RcOqw%40mail.gmail.com.