"Run if on/off" JSON url dont work if i use "login page" instead of "basic authentication"

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

"Run if on/off" JSON url dont work if i use "login page" instead of "basic authentication"

Post by Evelen »

I have some wall-buttons connected to my RFXTRX443E that should turn lights on and off.

Like this:
1.png
1.png (242.56 KiB) Viewed 792 times

Code: Select all

ON:
http://flemmingss:PWD@localhost:8080/json.htm?type=command&param=switchlight&idx=36&switchcmd=On
OFF:
http://flemmingss:PWD@localhost:8080/json.htm?type=command&param=switchlight&idx=66&switchcmd=Off
This works fine if i use "Basic-Auth", but if i change it to "logon page" it stops working in like 10 minutes or somthint.
the buttons on the wall works, I can see it in the log.

Code: Select all

2016-10-18 19:18:31.753 (Rfxcom433E USB) Lighting 2 (17B - Bryter)
2016-10-18 19:18:32.905 (Rfxcom433E USB) Lighting 2 (17B - Bryter)
2.png
2.png (52.75 KiB) Viewed 792 times

But the JSON url's works from my browser, phone ect (not localhost), also with "logon page"?

what can be the problem?
I don't want to use the "Basic-Auth" because it works badly with automatic login.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: "Run if on/off" JSON url dont work if i use "login page" instead of "basic authentication"

Post by Evelen »

the same problems also is for JSON url's in Blockly events
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: "Run if on/off" JSON url dont work if i use "login page" instead of "basic authentication"

Post by Egregius »

Disable authentication for 127.0.0.1.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest