Search found 3 matches

by koekerdt
Saturday 12 November 2016 10:46
Forum: Other questions and discussions
Topic: Update variable in Domoticz using Python JSON and HTTPS
Replies: 4
Views: 2863

Re: Update variable in Domoticz using Python JSON and HTTPS

I don't think it's a cookie; I'm logging in on another device then the one running the script. Anyway for now it seems to work again and since this is not a vital functionality for my system to work, I'ts fine for now :)

Thanks for your responses!
by koekerdt
Sunday 06 November 2016 14:03
Forum: Other questions and discussions
Topic: Update variable in Domoticz using Python JSON and HTTPS
Replies: 4
Views: 2863

Re: Update variable in Domoticz using Python JSON and HTTPS

Passing the link to Curl results in the following: <html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html> This kinda makes sense since the urlib2.urlopen is not using an URL as input but a request object. The request object is created by the urlib2.request(my ...
by koekerdt
Saturday 05 November 2016 17:40
Forum: Other questions and discussions
Topic: Update variable in Domoticz using Python JSON and HTTPS
Replies: 4
Views: 2863

Update variable in Domoticz using Python JSON and HTTPS

Hi all, some time ago I've created a script to retrieve the sunset time from domoticz using JSON, apply some offset and then store the updated time again in domoticz using JSON. I'm using the NGINX webserver and redirect all traffic to HTTPS (as described in https://www.domoticz.com/wiki/Secure ...