I want to use curl to have an external aplication set a switch or fill a variable.Version: 2023.1 (build 15427)
Build Hash: 3c8e06c73
Compile Date: 2023-07-15 09:09:43
dzVents Version: 3.1.8
Python Version: 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)]
This seems not to be possibe with current security changes. Json is not possible without having the other network device set in the trusted networks.
I do not want to set it in trusted networks as it grants all possible domoticz rigts without any autentication. ( In trusted networks it works without any authentication)
What i tried :
Code: Select all
curl --insecure --connect-timeout 5 --max-time 9 http://plainname:[email protected]:port/json.htm?type=command¶m=switchlight&idx=1391&switchcmd=On"
Code: Select all
curl --insecure --connect-timeout 5 --max-time 9 http://bas64name:[email protected]:port/json.htm?type=command¶m=switchlight&idx=1391&switchcmd=On"
Code: Select all
curl --insecure --connect-timeout 5 --max-time 9 https://plainname:[email protected]:port/json.htm?type=command¶m=switchlight&idx=1391&switchcmd=On"
Code: Select all
curl --insecure --connect-timeout 5 --max-time 9 https://bas64name:[email protected]:port/json.htm?type=command¶m=switchlight&idx=1391&switchcmd=On"
I have tried with and without having "Sta Basic-Auth authenticatie toe over HTTP (API aanroepen)" enabled.
Where is my mistake ? Or is the json api call not functional in the recent beta and only useable in trusted networks ?
I read in some change docs to use a temp token ? how to get that with curl ? An if get how to use it ?
I have limited coding skills, just trying to use domoticz to combine all things in one platform.