Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weather
#6
(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.
Reply


Messages In This Thread
Weather - by esawyja - 2019 May 05, 07:55 AM
RE: Weather - by dan - 2019 May 05, 03:46 PM
RE: Weather - by esawyja - 2019 May 06, 05:21 AM
RE: Weather - by dan - 2019 May 06, 02:55 PM
RE: Weather - by esawyja - 2019 May 07, 04:31 AM
RE: Weather - by dan - 2019 May 07, 03:09 PM
RE: Weather - by dan - 2019 May 07, 03:45 PM
RE: Weather - by esawyja - 2019 May 08, 03:13 AM
RE: Weather - by marcusp - 2019 May 06, 12:35 PM
RE: Weather - by dan - 2019 May 06, 03:05 PM
RE: Weather - by marcusp - 2019 May 06, 08:43 PM
RE: Weather - by dan - 2019 May 08, 03:04 PM
RE: Weather - by dan - 2019 May 08, 05:08 PM
RE: Weather - by esawyja - 2019 May 09, 04:24 AM
RE: Weather - by dan - 2019 May 09, 02:48 PM
RE: Weather - by esawyja - 2019 May 10, 05:19 AM
RE: Weather - by esawyja - 2019 May 14, 10:28 AM
RE: Weather - by dan - 2019 May 14, 02:35 PM
RE: Weather - by esawyja - 2019 May 15, 04:25 AM
RE: Weather - by dan - 2019 May 22, 06:12 PM
RE: Weather - by marcusp - 2019 May 25, 09:36 AM
RE: Weather - by dan - 2019 May 25, 02:54 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)