I really should wear my specs more often. Missed that completely.
It was curly quotes (and non-programmers editor). Many thanks
Alastair
On Tuesday, October 5, 2021 at 10:04:27 AM UTC+1 gjr80 wrote:
> Hi,
>
> It’s been a while since I last uploaded to WOW but did you edit weewx.conf
> with something other than a text or programmers editor? The ‘password’
> setting in the config snippet you provided is enclosed within opening and
> closing double quotes (curly quotes - look closely and you will see the
> opening and closing double quotes are different), try replacing them with
> standard ASCII double quotes. ‘station’ looks OK.
>
> Also, if that is you real station I’d and password you might want to
> change your password.
>
> Gary
> On Tuesday, 5 October 2021 at 18:34:26 UTC+10 Alastair L wrote:
>
>> Hi
>> Could someone please point out what I could be doing wrong that is
>> stopping me sending data to WoW? I'm seeing lots of error messages that I
>> can't interpret.
>>
>> Thanks in advance
>> Alastair
>>
>> Relevant portion of weewx.conf
>> [[WOW]]
>> # This section is for configuring posts to WOW.
>>
>> # If you wish to do this, set the option 'enable' to true,
>> # and specify a station and password.
>> # To guard against parsing errors, put the password in quotes.
>> enable = true
>> station = "2051cb0d-531c-ec11-b76a-0003ff597a5e"
>> password = “435683”
>>
>> Relevant section of Log file
>> Oct 5 09:06:38 raspberrypi systemd[1]: Starting LSB: weewx weather
>> system...
>> Oct 5 09:06:38 raspberrypi weewx[24674] INFO __main__: Initializing
>> weewx version 4.4.0
>> Oct 5 09:06:38 raspberrypi weewx[24674] INFO __main__: Using Python
>> 3.7.3 (default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0]
>> Oct 5 09:06:39 raspberrypi weewx[24674] INFO __main__: Platform
>> Linux-5.4.79-v7l+-armv7l-with-debian-10.7
>> Oct 5 09:06:39 raspberrypi weewx[24674] INFO __main__: Locale is
>> 'en_US.UTF-8'
>> Oct 5 09:06:39 raspberrypi weewx[24674] INFO __main__: PID file is
>> /var/run/weewx.pid
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO __main__: Using
>> configuration file /etc/weewx/weewx.conf
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO __main__: Debug is 0
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.engine: Loading
>> station type Vantage (weewx.drivers.vantage)
>> Oct 5 09:06:39 raspberrypi weewx[24662]: Starting weewx weather system:
>> weewx.
>> Oct 5 09:06:39 raspberrypi systemd[1]: Started LSB: weewx weather system.
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.engine: StdConvert
>> target unit is 0x1
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.engine: Archive will
>> use data binding wx_binding
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.engine: Record
>> generation will be attempted in 'hardware'
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.engine: Using archive
>> interval of 300 seconds (specified by hardware)
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.restx:
>> StationRegistry: Station will be registered.
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.restx:
>> Wunderground-PWS: Data for station ILAIRG10 will be posted
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.restx: PWSWeather:
>> Data for station CLASHNESSIE will be posted
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.restx: CWOP: Posting
>> not enabled.
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.restx: WOW: Data for
>> station 2051cb0d-531c-ec11-b76a-0003ff597a5e will be posted
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.restx: AWEKAS:
>> Posting not enabled.
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO __main__: Starting up weewx
>> version 4.4.0
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.engine: Clock error
>> is -1.32 seconds (positive is fast)
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.engine: Using binding
>> 'wx_binding' to database 'weewx.sdb'
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.manager: Starting
>> backfill of daily summaries
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.manager: Daily
>> summaries up to date
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.engine: Starting main
>> packet loop.
>> Oct 5 09:06:39 raspberrypi weewx[24681] INFO weewx.wxxtypes: Type
>> beaufort has been deprecated. Use unit beaufort instead.
>> Oct 5 09:10:15 raspberrypi weewx[24681] INFO weewx.manager: Added record
>> 2021-10-05 09:10:00 BST (1633421400) to database 'weewx.sdb'
>> Oct 5 09:10:15 raspberrypi weewx[24681] INFO weewx.manager: Added record
>> 2021-10-05 09:10:00 BST (1633421400) to daily summary in 'weewx.sdb'
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: WOW:
>> Unexpected exception of type <class 'UnicodeEncodeError'>
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** Traceback
>> (most recent call last):
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/share/weewx/weewx/restx.py", line 381, in run_loop
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> self.process_record(_record, dbmanager)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/share/weewx/weewx/restx.py", line 446, in process_record
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> self.post_with_retries(_request, data)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/share/weewx/weewx/restx.py", line 475, in post_with_retries
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> _response = self.post_request(request, data)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/share/weewx/weewx/restx.py", line 1083, in post_request
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> _response = urllib.request.urlopen(request, timeout=self.timeout)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> return opener.open(url, data, timeout)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/urllib/request.py", line 525, in open
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> response = self._open(req, data)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/urllib/request.py", line 543, in _open
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> '_open', req)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> result = func(*args)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> return self.do_open(http.client.HTTPConnection, req)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> encode_chunked=req.has_header('Transfer-encoding'))
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/http/client.py", line 1244, in request
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> self._send_request(method, url, body, headers, encode_chunked)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/http/client.py", line 1255, in _send_request
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> self.putrequest(method, url, **skips)
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: *** File
>> "/usr/lib/python3.7/http/client.py", line 1122, in putrequest
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> self._output(request.encode('ascii'))
>> Oct 5 09:10:15 raspberrypi weewx[24681] ERROR weewx.restx: ***
>> UnicodeEncodeError: 'ascii' codec can't encode character '\u201c' in
>> position 105: ordinal not in range(128)
>> Oct 5 09:10:16 raspberrypi weewx[24681] CRITICAL weewx.restx: WOW:
>> Thread terminating. Reason: 'ascii' codec can't encode character '\u201c'
>> in position 105: ordinal not in range(128)
>> Oct 5 09:10:16 raspberrypi weewx[24681] INFO weewx.restx: PWSWeather:
>> Published record 2021-10-05 09:10:00 BST (1633421400)
>>
>>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/ced88991-6c6f-4e82-ac57-91a095a828b2n%40googlegroups.com.