Domoticz API: List hidden Rooms and Floorplans

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
SchattenMann
Posts: 73
Joined: Friday 09 October 2015 19:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz API: List hidden Rooms and Floorplans

Post by SchattenMann »

The JSON API seems a bit incomplete when it comes to Room and Floor Plans

Unable to list *all* (including hidden) rooms

Would have expected /json.htm?type=plans&order=name or /json.htm?type=plans&order=name&used=false to retrieve them but it doesn’t

Unable to list Floor Plans (Plans -> Floorplan)

I need to list all floorplans and all rooms within a floorplan but there doesn’t seem to be that option.
In insight I’d say the naming being used at the moment is quite strange as I would have expected:

/json.htm?type=plans -> list Floorplan
/json.htm?type=rooms -> list Rooms
SchattenMann
Posts: 73
Joined: Friday 09 October 2015 19:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz API: List hidden Rooms and Floorplans

Post by SchattenMann »

nvm, I've figured it out - guess Wiki needs updating!

Code: Select all

http://192.168.1.2:8080/json.htm?type=floorplans
http://192.168.1.2:8080/json.htm?type=plans&displayhidden=1
http://192.168.1.2:8080/json.htm?type=command&param=getfloorplanplans&idx=1
Toulon7559
Posts: 849
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Domoticz API: List hidden Rooms and Floorplans

Post by Toulon7559 »

@SchattenMann

What do you want to tell with that list of IP-adresses in the local range of 192.168.* ?
We (= other forum-members) cannot see what you intend to show by clicking those URLs
Last edited by Toulon7559 on Friday 26 August 2016 16:00, edited 2 times in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
SchattenMann
Posts: 73
Joined: Friday 09 October 2015 19:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz API: List hidden Rooms and Floorplans

Post by SchattenMann »

can't see how that's a problem, just replace 192.168.1.2 with your Domoticz IP
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest