Page 1 of 1

Domoticz bookmarklet

Posted: Tuesday 14 March 2017 10:49
by blauwebuis
I have a bookmarklet that I use to trigger lights on my house. It's great. It's fantastic.

The code:
javascript:void((function(){(new Image()).src = "http://192.168.1.34:8080/json.htm?type= ... cmd=Toggle";})());

But it only works if I have recently opened Domoticz in a tab.

How can I change this bookmarklet to always work?

Re: Domoticz bookmarklet

Posted: Tuesday 14 March 2017 12:07
by Egregius
Do you have authentication enabled?
Maybe add your local network.

Re: Domoticz bookmarklet

Posted: Friday 17 March 2017 23:08
by blauwebuis
No I don't have authentification turned on.

And I double checked: I think I have the network set up ok (127.0.0.*;192.168.1.*).

Re: Domoticz bookmarklet

Posted: Saturday 18 March 2017 6:56
by Egregius
What happens if you past the url in a browser at that moment?

Code: Select all

http://192.168.1.34:8080/json.htm?type=command&param=switchlight&idx=59&switchcmd=Toggle