Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
issues activing plugings
#2
(2020 May 10, 10:10 AM)takezo Wrote: I have the following plug-ins activated:


mqtt
mqtt schedule
mqtt slave
mqtt zone broadcaster
weather_level_ad

when I activate the last plug-in, all the other plug-ins seem to stop working. here log with error:




Code:
user@server-sip:~/SIP$ sudo python sip.py
Ignoring exception while loading the mqtt_zones plug-in.
from __future__ imports must occur at the beginning of the file (mqtt_zones.py, line 8)
MQTT publish UP
Ignoring exception while loading the mqtt_schedule plug-in.
from __future__ imports must occur at the beginning of the file (mqtt_schedule.py, line 8)
Ignoring exception while loading the mqtt_slave plug-in.
from __future__ imports must occur at the beginning of the file (mqtt_slave.py, line 8)
plugins loaded:
  mobile_app
  mqtt
  plugin_manager
  relay_board
  system_update
  weather_level_adj
Starting timing loop

Checking weather status...
http://:::80/
HTTP Error 400: Bad Request Retrying.
Weather-based water level encountered error:
Traceback (most recent call last):
  File "/home/user/SIP/plugins/weather_level_adj.py", line 123, in run
    today = today_info(self, options)
  File "/home/user/SIP/plugins/weather_level_adj.py", line 602, in today_info
    data = get_data(name, request, u"weather", options)
  File "/home/user/SIP/plugins/weather_level_adj.py", line 490, in get_data
    req = urlopen(url + u"&appid=" + options[u"apikey"])
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request

into pluging weather_level_ad i have added location with this format:

lat=30.535105_lon1.1101715

and i got this error:

Code:
Weather-based water level encountered error:
Traceback (most recent call last):
  File "/home/user/SIP/plugins/weather_level_adj.py", line 123, in run
    today = today_info(self, options)
  File "/home/user/SIP/plugins/weather_level_adj.py", line 602, in today_info
    data = get_data(name, request, u"weather", options)
  File "/home/user/SIP/plugins/weather_level_adj.py", line 490, in get_data
    req = urlopen(url + u"&appid=" + options[u"apikey"])
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request


any idea?


thnaks for the support!
There is an error in the documentation page.
The location should have "=" in both the lat and lon parts like so:
lat=30.535105_lon=1.1101715

Dan
<p><br></p>
Reply


Messages In This Thread
issues activing plugings - by takezo - 2020 May 10, 10:10 AM
RE: issues activing plugings - by dan - 2020 May 10, 02:52 PM
RE: issues activing plugings - by takezo - 2020 May 12, 10:42 AM
RE: issues activing plugings - by dan - 2020 May 12, 04:02 PM
RE: issues activing plugings - by takezo - 2020 May 13, 08:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)