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

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
shakimiledy
Posts: 3
Joined: Sunday 06 March 2022 12:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
User avatar
jvdz
Posts: 2334
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest