Hi,

with version 4.1.1 I have problems with Station Registry. I guess it has to 
do with station location name and locale used!
If i'm correct "\u0161" is leter "š" and the name of my station location is:

[Station]
    
    # Description of the station location
    location = Loka pri Mengšu


Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: StationRegistry: 
Unexpected exception of type <type 'exceptions.KeyError'>
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: *** Traceback (most 
recent call last):
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***   File 
"/usr/share/weewx/weewx/restx.py", line 378, in run_loop
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***     
self.process_record(_record, dbmanager)
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***   File 
"/usr/share/weewx/weewx/restx.py", line 426, in process_record
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***     _url = 
self.format_url(_full_record)
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***   File 
"/usr/share/weewx/weewx/restx.py", line 1489, in format_url
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***     
_liststr.append(urllib.parse.quote_plus(StationRegistryThread._FORMATS[_key] 
% v, '='))
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***   File 
"/usr/lib/python2.7/urllib.py", line 1306, in quote_plus
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***     s = quote(s, 
safe + ' ')
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***   File 
"/usr/lib/python2.7/urllib.py", line 1301, in quote
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: ***     return 
''.join(map(quoter, s))
Jun 21 21:10:40 RPi-SDR weewx[1348] ERROR weewx.restx: *** KeyError: 
u'\u0161'

Regards,

Boštjan

-- 
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/b01183f7-d71a-434e-8c26-ca065baebecco%40googlegroups.com.

Reply via email to