2019 May 06, 03:05 PM
(2019 May 06, 12:35 PM)marcusp Wrote: I have GreenIQ V2, SIP works OK after GPIO remap. But when I added new weather plugins, I get these errors:
http://:::80/
Checking rain status...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pi/SIP/plugins/weather_adj.py", line 42, in weather_to_delay
weather = get_weather_data() if data['weather_provider'] == "yahoo" else get_wunderground_weather_data()
File "/home/pi/SIP/plugins/weather_adj.py", line 121, in get_weather_data
app_id = options['xxxxxxxx’].encode('utf-8')
KeyError: 'xxxxxxxx’
When I try select Plugins -> Weather-Based Rain Delay I get „internal server error” and on the console:
Traceback (most recent call last):
File "/home/pi/SIP/web/application.py", line 239, in process
return self.handle()
File "/home/pi/SIP/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/home/pi/SIP/web/application.py", line 423, in _delegate
return handle_class(cls)
File "/home/pi/SIP/web/application.py", line 399, in handle_class
return tocall(*args)
File "/home/pi/SIP/plugins/weather_adj.py", line 227, in GET
return template_render.weather_adj(get_weather_options())
File "/home/pi/SIP/web/template.py", line 1020, in template
return self._base(t(*a, **kw))
File "/home/pi/SIP/web/template.py", line 881, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/home/pi/SIP/web/template.py", line 808, in __call__
return self.t(*a, **kw)
File "templates/weather_adj.html", line 64, in __template__
<td style='text-transform: none;'>$_('Yahoo Consumer Key'):</td>
KeyError: 'yapiappid'
Looks like it is not finding a valid user key.
Weather underground does not work any more for new users. You may be able to use the Yahoo API from the weather_adj plugin if you have a valid Consumer Key and Consumer Secret.
The update to the weather_adj plugin was provided by a user and has not bee fully tested.