How use Room Plan ?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Pjedr
Posts: 38
Joined: Friday 27 December 2013 3:13
Target OS: Linux
Domoticz version: Beta
Location: Friesland
Contact:

Re: How use Room Plan ?

Post by Pjedr »

And been creative again, added my camera at the hallway in /var/ramdrive/www/templates/frontcam.html

Code: Select all

<br>
<h2>Entree Kamera</h2>
<br>
<div align="center" style="margin-right: auto; margin-left: auto; width: 650px;">
<img alt="video" id="imgDisplay" name="imgDisplay" src="http://<camaddress>:<ipport>/snapshot.cgi?user=usernam&pwd=password">
<div>
dhanjel
Posts: 102
Joined: Tuesday 05 August 2014 22:16
Target OS: Linux
Domoticz version: 3.5146
Location: Sweden
Contact:

Re: How use Room Plan ?

Post by dhanjel »

Just tried this in both Safari and Chrome without any luck. I enter a name and the relative path to my floorplan (even tried with example.jpg), but when I click 'Add' nothing is added. And nothing about this in the log.

Anyone else with issues like this?

(I'm running on a Windows server, version 1.1906)
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How use Room Plan ?

Post by Dnpwwo »

I enter a name and the relative path to my floorplan (even tried with example.jpg), but when I click 'Add' nothing is added. And nothing about this in the log.
A suggestion and a question:
  • To make sure that the relative URL is correct, append it to [url]http://<your_server:8080>[/url] and the image should appear in your browser. If it doesn't then the relative URL is incorrect.
  • When you say 'nothing is added', do you get a row in the floor plan table but no image, or absolutely nothing?
File browser functionality is on the list for future updates to make this easier.
It looks like DB is not up to date. How I can solve this problem ?
Sorry Golgautier I've been out of town for a few days. From the log extract I believe that the Floorplan table exists in the database but that a command to add columns to the Plans table has not worked for you. I will look into adding some logging of 'major' events tonight so that I can diagnose some of these issues more easily.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
dhanjel
Posts: 102
Joined: Tuesday 05 August 2014 22:16
Target OS: Linux
Domoticz version: 3.5146
Location: Sweden
Contact:

Re: How use Room Plan ?

Post by dhanjel »

Absolutely nothing is happening, no row at all.
Golgautier
Posts: 19
Joined: Tuesday 29 April 2014 1:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Paris, France
Contact:

Re: How use Room Plan ?

Post by Golgautier »

@dnpwwo : Thank you very much. I will do all test you want. Take your time, I'm not hurry ;)
Golgautier
Posts: 19
Joined: Tuesday 29 April 2014 1:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Paris, France
Contact:

Re: How use Room Plan ?

Post by Golgautier »

@Dnpwwo : Thank you for your job... I updated Domoticz this evening to test roomplan module update...

It works better for me (I can add plans and images), but I have still an issue :-/ When i select roomplan, picture is updated at he bottom (it's cool :P), but I'm unable to do something on it... button or menus are greyed. When I click on the picture, I have a warning :
floorplanedit.jpg
floorplanedit.jpg (308.25 KiB) Viewed 5192 times
Chrome or IE, same issue :-/
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How use Room Plan ?

Post by Dnpwwo »

Not sure what changed, I haven't published a new version yet :?

You need to create some Room Plans, these map devices to rooms and are existing functionality and is off the Setup menu. These also appear on the main Dashboard page as a drop down box on the right. Once you have some of these they will appear in the editor as well and 'Adding' them will populate the 2nd table.

Then you can click on the floorplan to draw your rooms
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Golgautier
Posts: 19
Joined: Tuesday 29 April 2014 1:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Paris, France
Contact:

Re: How use Room Plan ?

Post by Golgautier »

Hello,

I updated to 1.911 to try this. With 1.1909, I was unable to add floorplans because of table error and coredump. since I have updated, I can add floorplans.

I didn't undestood that roomplans where a part of floorplans, I thought that floorplans was a replacement module. So, I have created all my rooms with my devices, and added them into the flooplans, ans all seem to be working very well.

You did a great job ! congratulations ! :D
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How use Room Plan ?

Post by Dnpwwo »

Upped version 1912.

Popups now stay visible as long as the mouse pointer is over them, this means that blinds, inverted blinds & groups should now work because the right hand button can be pressed.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Golgautier
Posts: 19
Joined: Tuesday 29 April 2014 1:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Paris, France
Contact:

Re: How use Room Plan ?

Post by Golgautier »

Good. I'll try it soon :)

Note : SetPoint icon seems to be broken in flor plans edition.
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How use Room Plan ?

Post by Dnpwwo »

@Golgautier, Can you please post a picture of what SetPoint should look like (I don't have one) from one of the other device views? Also can you post the output from [url]http://<your_server>:8080/json.htm?type=devices&filter=all&used=true&order=Name&floor=<floorplan_number>[/url] for the floor plan that the device is on. All I need is the data for the specific device but if you can't work that out just post the whole thing.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Golgautier
Posts: 19
Joined: Tuesday 29 April 2014 1:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Paris, France
Contact:

Re: How use Room Plan ?

Post by Golgautier »

Yes my lord (sorry, I miss Warcraft II ;-) )

the domoticz picture :
setpoint.jpg
setpoint.jpg (14.1 KiB) Viewed 5099 times
json output :

Code: Select all

{ "5MinuteHistoryDays" : 1, "ActTime" : 1408733419, "AllowWidgetOrdering" : true, "DashboardType" : 0, "Latitude" : "48.759255", "Longitude" : "2.302553", "MobileType" : 0, "TempScale" : 1.0, "TempSign" : "C", "WindScale" : 1.0, "WindSign" : "m/s", "dontcachehtml" : true, "result" : [ { "BatteryLevel" : 92, "CustomImage" : 0, "Data" : "20.0", "Favorite" : 1, "HardwareID" : 2, "HardwareName" : "Aeontech Z-Stick", "HaveTimeout" : false, "ID" : "0001101", "LastUpdate" : "2014-08-22 20:45:17", "Name" : "[Chambre_1][RT][Consigne]", "Notifications" : "false", "PlanID" : "1", "Protected" : false, "SetPoint" : "20.0", "SignalLevel" : 12, "SubType" : "SetPoint", "Timers" : "false", "Type" : "Thermostat", "TypeImg" : "override_mini", "Unit" : 1, "Used" : 1, "XOffset" : "1024", "YOffset" : "367", "idx" : "59" }, { "BatteryLevel" : 97, "CustomImage" : 0, "Data" : "17.0", "Favorite" : 1, "HardwareID" : 2, "HardwareName" : "Aeontech Z-Stick", "HaveTimeout" : false, "ID" : "0001001", "LastUpdate" : "2014-08-22 20:49:42", "Name" : "[Chambre_2][RT][Consigne]", "Notifications" : "false", "PlanID" : "2", "Protected" : false, "SetPoint" : "17.0", "SignalLevel" : 12, "SubType" : "SetPoint", "Timers" : "false", "Type" : "Thermostat", "TypeImg" : "override_mini", "Unit" : 1, "Used" : 1, "XOffset" : "341", "YOffset" : "320", "idx" : "58" } ], "status" : "OK", "title" : "Devices" }
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How use Room Plan ?

Post by Dnpwwo »

@Golgautier, try build 1920+ and let me know if your SetPoint is still not showing up properly.

Added:
  • SetPoint support
  • Drag n Drop uplift, now very good on iPad, Chrome, IE. (Don't get me started on FireFox :evil: )
  • Dimmer display finished
  • Favorite setting now works when clicking on 'star'
  • Back button from graphs fixed
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Golgautier
Posts: 19
Joined: Tuesday 29 April 2014 1:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Paris, France
Contact:

Re: How use Room Plan ?

Post by Golgautier »

Hi Dnpwwo...

I'm sorry but nothing is displayed whan I select floorplan and room... It is ok on all others rooms, but in this 2 rooms, I only have a set point device, and floorplan show me nothing :-/

Note : I have cleared the 2 room plans to verify but it changes nothing.
Flooplan.jpg
Flooplan.jpg (387.13 KiB) Viewed 5042 times
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How use Room Plan ?

Post by Dnpwwo »

@Golgautier, try build 1932+, second time lucky.

I worked out how to inject your data into the code and saw an exception, now I see the device just fine.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Golgautier
Posts: 19
Joined: Tuesday 29 April 2014 1:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Paris, France
Contact:

Re: How use Room Plan ?

Post by Golgautier »

Hello,

Thank you Dnpwwo, it's perfect now ;)
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How use Room Plan ?

Post by Dnpwwo »

Upped build 1942 - Added slider support for non-binary switches (like dimmers)
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: How use Room Plan ?

Post by qwerk »

The slider is working perfectly.
Is it possible to make it so the light will turn with use of the slider when the light is off?

Keep up the good work
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How use Room Plan ?

Post by Dnpwwo »

Hi qwerk,

Glad to hear it works okay, I don't actually have any dimmable devices so I couldn't be 100% sure.

It should work pretty much the same way as the slider on the existing pages because it calls the same backend function. For me, if the light is on and the slider is moved to below about 20% it goes off. If the device is off it comes on if the slider is moved to anywhere above the same threshold. Is this not what you are after?
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: How use Room Plan ?

Post by qwerk »

@ Dnpwwo

funny thing,
It did not work at first and after your reply I tested again and now it works.
I did some SVN updates in between... who knows.

thanks for the reply and thanks for Domoticz ;-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest