Page 1 of 1

Api not working as expected in last beta neither in older version giving two different results

Posted: Sunday 02 February 2025 10:12
by shakimiledy
Version: 2024.4 (build 16105)
Platform: PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"

Version: 2024.4 (build 16105) :
command :

Code: Select all

curl -s --insecure 'https://user:[email protected]:443/json.htm?type=devices&rid=306' | jq .result[0].Level | sed 's/[^0-9]//g'  
WORKS PERFECTLY BUT GIVEN RTYPE DEPRECATED IN THE LOGS

command :

Code: Select all

curl -s --insecure 'https://user:[email protected]:443/json.htm?type=getdevices&rid=306' | jq .result[0].Level | sed 's/[^0-9]//g'  
GIVES ERR RESPONSE


LAST DEVELOPMENT BUILD Commit f4f5300
command :

Code: Select all

curl -s --insecure 'https://user:[email protected]:443/json.htm?type=devices&rid=306' | jq .result[0].Level | sed 's/[^0-9]//g' 
GIVES NOT FOUND ERROR

command :
curl -s --insecure 'https://user:[email protected]:443/json.h ... es&rid=306' | jq .result[0].Level | sed 's/[^0-9]//g' GIVES NOT FOUND ERROR TOO


what can be the issue?

Re: Api not working as expected in last beta neither in older version giving two different results

Posted: Sunday 02 February 2025 11:06
by jvdz
Ignoring an warning doesn't solve it! ;)
The issue is as stated in the reply you have had for quite some time now, which is extensively discussed here before:
viewtopic.php?t=40415&hilit=Rtype

and in the Wiki you will find all details: https://wiki.domoticz.com/Domoticz_API/ ... and_newer)

The latest Beta's don't support the old format anymore, hence it's failing now.