dzvent sendtoURL to control switches on another Domoticz server
Posted: Friday 10 May 2024 10:45
Hi all,
I used dzvent sendtoURL to control devices on another Domoticz server that I have, but because of the authentication changes in the recent versions of Domoticz I can't get my dzvents to authenticate to the API of the other Domoticz anymore.
The 2 Domoticz servers communicate thru public IPs.
I used to send the username and password as parameters in the URL, but that is now deprecated.
I tried "Allow Basic-Auth authentication over plain HTTP (API only)."
I have tried this now (as well as variation without the Basic, thru HTTP and HTPS as well):
So wanted to find out how anyone else had overcome this and what you are using.
Cheers
I used dzvent sendtoURL to control devices on another Domoticz server that I have, but because of the authentication changes in the recent versions of Domoticz I can't get my dzvents to authenticate to the API of the other Domoticz anymore.
The 2 Domoticz servers communicate thru public IPs.
I used to send the username and password as parameters in the URL, but that is now deprecated.
I tried "Allow Basic-Auth authentication over plain HTTP (API only)."
I have tried this now (as well as variation without the Basic, thru HTTP and HTPS as well):
Code: Select all
domoticz.openURL (
{
url = 'https://DNS.name/json.htm?type=command¶m=udevice&idx=66&nvalue=0',
method = 'GET',
headers = {
Authorization = "Basic <YWRRANDhOM4=:QrRANDOgfMTkw>"
}
}
)
Cheers