Page 4 of 7
Re: How use Room Plan ?
Posted: Sunday 17 August 2014 12:50
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>
Re: How use Room Plan ?
Posted: Sunday 17 August 2014 15:00
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)
Re: How use Room Plan ?
Posted: Monday 18 August 2014 7:11
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.
Re: How use Room Plan ?
Posted: Monday 18 August 2014 7:14
by dhanjel
Absolutely nothing is happening, no row at all.
Re: How use Room Plan ?
Posted: Monday 18 August 2014 7:54
by Golgautier
@dnpwwo : Thank you very much. I will do all test you want. Take your time, I'm not hurry
Re: How use Room Plan ?
Posted: Tuesday 19 August 2014 23:00
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
), 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 (308.25 KiB) Viewed 5181 times
Chrome or IE, same issue :-/
Re: How use Room Plan ?
Posted: Tuesday 19 August 2014 23:32
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
Re: How use Room Plan ?
Posted: Wednesday 20 August 2014 0:13
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 !
Re: How use Room Plan ?
Posted: Wednesday 20 August 2014 12:16
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.
Re: How use Room Plan ?
Posted: Wednesday 20 August 2014 20:54
by Golgautier
Good. I'll try it soon
Note : SetPoint icon seems to be broken in flor plans edition.
Re: How use Room Plan ?
Posted: Friday 22 August 2014 4:22
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.
Re: How use Room Plan ?
Posted: Friday 22 August 2014 20:51
by Golgautier
Yes my lord (sorry, I miss Warcraft II
)
the domoticz picture :
- setpoint.jpg (14.1 KiB) Viewed 5088 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" }
Re: How use Room Plan ?
Posted: Saturday 23 August 2014 12:43
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 )
- Dimmer display finished
- Favorite setting now works when clicking on 'star'
- Back button from graphs fixed
Re: How use Room Plan ?
Posted: Saturday 23 August 2014 14:55
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 (387.13 KiB) Viewed 5031 times
Re: How use Room Plan ?
Posted: Sunday 24 August 2014 13:43
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.
Re: How use Room Plan ?
Posted: Sunday 24 August 2014 16:31
by Golgautier
Hello,
Thank you Dnpwwo, it's perfect now
Re: How use Room Plan ?
Posted: Saturday 30 August 2014 14:54
by Dnpwwo
Upped build 1942 - Added slider support for non-binary switches (like dimmers)
Re: How use Room Plan ?
Posted: Sunday 31 August 2014 13:28
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
Re: How use Room Plan ?
Posted: Tuesday 02 September 2014 7:53
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?
Re: How use Room Plan ?
Posted: Tuesday 02 September 2014 11:56
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