json commands protected

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
User avatar
maximaxi
Posts: 9
Joined: Sunday 17 April 2016 13:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Pavia Italy
Contact:

json commands protected

Post by maximaxi »

I ask for help
version of domoticz V4.9700
Chrome browser
domoticz, settings, site protection, login page
Also this time it is probable that I am losing myself in a glass of water
I can not send protected Json HTTP commands with user and password
I followed the documentation but I never get anything done
401 Unauthorized
if I open a window in the browser and I log in with domoticz it works correctly

the command I use as an example and this
____http://massimo:[email protected]:8080/json.htm?type=command&param=getlightswitches_____
someone can help me Thanks
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: json commands protected

Post by emme »

Have you setted BASIC-AUTH in the Protection settings?
Cattura-1.jpg
Cattura-1.jpg (27.79 KiB) Viewed 377 times
The most dangerous phrase in any language is:
"We always done this way"
User avatar
maximaxi
Posts: 9
Joined: Sunday 17 April 2016 13:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Pavia Italy
Contact:

Re: json commands protected

Post by maximaxi »

Thank you
Resolved
I imagined losing myself in a glass of water ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest