I run a python script to enter a value into Domotics.
pi@domoticz:~ $ python bme280.py
The command to enter the 2 values 1015.2 en 1 is:
curl -s "http://127.0.0.1:8080/json.htm?type=com ... e=1015.2;1"
I got the following error:
<html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>pi@domoticz:~ $
Who knows what goes wrong?
Willem
Authorisation error
Moderator: leecollings
-
willem9136
- Posts: 58
- Joined: Friday 11 December 2020 15:09
- Target OS: Linux
- Domoticz version: 2026.2
- Location: Netherlands Paesens
- Contact:
- habahabahaba
- Posts: 285
- Joined: Saturday 18 March 2023 14:44
- Target OS: Windows
- Domoticz version: 2024.4
- Contact:
Re: Authorisation error
Is 127.0.0.1 in trusted networks in Dz settings ?
-
willem9136
- Posts: 58
- Joined: Friday 11 December 2020 15:09
- Target OS: Linux
- Domoticz version: 2026.2
- Location: Netherlands Paesens
- Contact:
Re: Authorisation error
If I set it to 192.168.2.100 I got the same error.
- habahabahaba
- Posts: 285
- Joined: Saturday 18 March 2023 14:44
- Target OS: Windows
- Domoticz version: 2024.4
- Contact:
Re: Authorisation error
Then both networks should be in trusted zone.
Or add the authorization -Wiki
Or add the authorization -Wiki
- waltervl
- Posts: 7021
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Authorisation error
And check the "Allow Basic Authentication over plain HTTP" security setting (switch it on).
https://wiki.domoticz.com/Security#Adva ... rity_setup
https://wiki.domoticz.com/Security#Adva ... rity_setup
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
willem9136
- Posts: 58
- Joined: Friday 11 December 2020 15:09
- Target OS: Linux
- Domoticz version: 2026.2
- Location: Netherlands Paesens
- Contact:
Re: Authorisation error
Workshop! Thanks a lot!