Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weather Plugin Error -
#1
Below is the output  the status box for the Weather-based water level plug in. Seems to me that it is a python issue with my setup but I do not know. I am using a Rp3 with a new 64bit install of Raspi OS (debian?). SIP is running via python3.  Any suggestions are appreciated.

Also has anyone made an ICON of the Sip Tree?

TIA
Ken

Code:
[code]Weather-based water level encountered error:

Traceback (most recent call last):
  File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.9/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/lib/python3.9/http/client.py", line 950, in send
    self.connect()
  File "/usr/lib/python3.9/http/client.py", line 1417, in connect
    super().connect()
  File "/usr/lib/python3.9/http/client.py", line 921, in connect
  self.sock = self._create_connection(
  File "/usr/lib/python3.9/socket.py", line 822, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sip/SIP/plugins/weather_level_adj.py", line 123, in run
    today = today_info(self, options)
File "/home/sip/SIP/plugins/weather_level_adj.py", line 636, in today_info
    data = get_data(name, request, u"weather", options)
  File "/home/sip/SIP/plugins/weather_level_adj.py", line 504, in get_data
    req = urlopen(url + u"&appid=" + options[u"apikey"])
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
[/code]
Reply
#2
Hi Ken,
There could be several problems with the weather plugin. It was written and modified by different users and it has not been mainlined.

I will take a look and report back here but it may take a while to resolve the problems. At this point there are several older plugins that may require updating in order to run under Python3.

I am not sure what you are asking about the logo. Could you elaborate?

Dan
<p><br></p>
Reply
#3
(2022 Jun 13, 09:49 PM)dan Wrote: Hi Ken,
There could be several problems with the weather plugin. It was written and modified by different users and it has not been maintained.

I will take a look and report back here but it may take a while to resolve the problems. At this point there are several older plugins that may require updating in order to run under Python3.

I am not sure what you are asking about the logo. Could you elaborate?

Dan

Dan,
I did not think to setup and run using python2. I will change over and give that a try and report back. 

Regarding the logo, i liked it and thought that it would make a great ICON for a browser shortcut. I assumed that someone might have had the same idea and had already created a set of ICONS from the logo. - just bling... 
Ken
Reply
#4
I change SIP to autorun using Python2 and the status is now updating with readable information. Easy fix thanks. Now to figure out what it means.
Ken
Reply
#5
Just tested the weather plugin on the latest raspi image (bullseye) and use exclusively Python3. The plugin works fine.

Since your error is "urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution" I assume there was/is a network/dns issue.

--Gerard
Reply
#6
I found the same as Gerard under Python3. The plugin seems to be working as expected.

@Ken,
Regarding the SIP logo/icon it was decided to use only part of the logo for the icon to keep it simple and the proper dimensions. We used the tilted S with the faucet handle on top and the water drop.
<p><br></p>
Reply
#7
Thanks Gerald and Dan, I appreciate your feedback. I changed back to python3 and restarted SIP and the plugin worked as expected.

I did receive an initial output similar to my opening post but after an hour, I checked again and all was good.

Thanks

Ken
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)