Hi Ittiz,Ittiz wrote: ↑Friday 26 October 2018 1:08 Yeah, my Domoticz skill seems to work even if my internet is out, so the processing must happened on the machine itself. Alexa and Google process on the cloud, which is one of the reasons I wanted to avoid using those systems, besides the fact they don't have Domoticz skills on them.
I've tried your domoticz mycroft skill, but I can't get it to work. My domoticz server is hosted on different machine so I filled in a username/password. But it's still saying "401 unauthorized". Any idea where I should look?
Code: Select all
23:37:46.252 - __main__:handle_utterance:62 - INFO - Utterance: ['turn on kitchen light']
~~~~47.958 - mycroft.skills.core:wrapper:1052 - ERROR - An error occurred while processing a request in Domoticz Skill
Traceback (most recent call last):
File "/home/pi/mycroft-core/mycroft/skills/core.py", line 1043, in wrapper
handler(message)
File "/opt/mycroft/skills/domoticz_skill.ittiz/__init__.py", line 71, in handle_domoticz_switch_intent
response = domoticz.switch(state, what, where, action)
File "/opt/mycroft/skills/domoticz_skill.ittiz/Domoticz.py", line 107, in switch
data = self.findid(what, where, state)
File "/opt/mycroft/skills/domoticz_skill.ittiz/Domoticz.py", line 34, in findid
f = urllib.request.urlopen(self.url + "/json.htm?type=devices&filter=all&used=true")
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 472, in open
response = meth(req, response)
File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.5/urllib/request.py", line 510, in error
return self._call_chain(*args)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized