Search found 2 matches

by viriathus
Mon May 28, 2018 9:28 pm
Forum: Computer Talk
Topic: Controlling the TP-Link HS110 smart plug with Domoticz
Replies: 15
Views: 137465

Re: Controlling the TP-Link HS110 smart plug with Domoticz

Thank you... I also found that the following worked for me in the end: import base64 baseURL = 'http://127.0.0.1:8080/json.htm?type=command&param=udevice&nvalue=0' username='<username>' password='<password>' def domoticzrequest (url): base64string = base64.encodestring('%s:%s' % (username, p...
by viriathus
Mon May 28, 2018 2:35 am
Forum: Computer Talk
Topic: Controlling the TP-Link HS110 smart plug with Domoticz
Replies: 15
Views: 137465

Re: Controlling the TP-Link HS110 smart plug with Domoticz

Hey guys,

Did we resolve the 401 from the script? I'm getting the same problem. Works fine if I paste the link in a browser when I am already authenticated in domoticz, but not from the script which is not.

Thanks.