Page 3 of 7

Re: How use Room Plan ?

Posted: Tuesday 05 August 2014 2:32
by tommysharp
I only have a few test devices so quickly saw that if you have the same device on different FloorPlans then if you move it on one floor then it changes on the other....

Might be nice to be able to use the same room on different floor plans. I think you're locking yourself into the idea that there can only be one of each room in the entire house. But what if I wanted a room called "Whole House" in which I have devices like total power consumption, total water consumption etc.... I'd like to see these devices on more than one FloorPlan.

I still like the idea of being able to define "hot spots" on the FloorPlan. We could then photoshop buttons for various things onto the background image. The hotspot just has coordinates much like you do for a room, and then when it's clicked or touched it launches something. My first thought would be that you can make it launch a different FloorPlan, that would allow for jumping from one FloorPlan to another without clicking through PREV and NEXT. But the possibilities could be endless, the "hot spot" could run a "scene" or whatever the term is that could switch on a whole bunch of lights or do something.

Admittedly my experience with Domoticz is still VERY limited and I don't actually have any actionable devices in my system yet. Just working with raspberry motherboard values and the weather undergound plugin. So apologies if I'm suggesting something that is possible in another way.

Also.... Is it possible to browse directly to a specific FloorPlan? It always seem to open the first one. I'm thinking if I had a tablet on the wall downstairs I'd want it to always open a specific floorplan and have the tabled upstairs always open another floorplan....

On an android touch device how do we get the popup to show like it does on a PC when you hover over an icon? On the desktop if I hover over a temperature device I get a popup showing the current temp etc. On a touchscreen device clicking on it opens up the charts for the device.

Re: How use Room Plan ?

Posted: Tuesday 05 August 2014 6:27
by Dnpwwo
tommysharp wrote:For the amateurs (me!) it'd be great to have an easy way to upload images to use as the room backgrounds. You say they need to be put somewhere in the WWW folder which I guess I have to use TELNET or FTP or something..... An upload option in the Domoticz web site would be great!

EDIT : Okay a quick google shows me that it's pretty straight forward to connect with something like FileZilla and Secure FTP SSH..... But an upload option or select already uploaded file when creating a new floor plan would still be great :-)
Adding file uploading comes with security issues (particularly if you expose your Domoticz instance to the internet) so I avoided it. A 'select existing file' upgrade is in the works (gizmocuz has offered to add it while I focus on working through bug fixing and finishing a few bits of functionality). At some stage this functionality will need to be added to the User Guide and we can cover off uploading then.

Re: How use Room Plan ?

Posted: Tuesday 05 August 2014 17:06
by Dnpwwo
Upped another build tonight that should resolve a number of FireFox issues (not Drag & Drop though, I'll look at that tomorrow).
I do like all the new device icons. Have you had to construct them individually?
Nope, they are just the standard Domoticz icons.
In the bottom right corner of the device information pop-up, partially obscuring the last seen time, there's a blue or yellow star. Is this intentional? What does it signify?
This shows if the device is a 'favorite' or not. Doesn't obscure the 'last seen' time for me, can you post a screen shot?
When editing one room plan, you can't see where you have put the items on another room plan so it's easy to overlap things without realising; you can only see the combined version on the live screen, where you can't edit anything to fix overlaps
Maybe I could show the other floors/devices greyed out or something in a future release, I'll need to think it through.
In the process of experimenting, I've added and deleted floorplans several times, and now I've ended up with the room plans menu missing some of the room plans that I previously used on the deleted floor plans. Is there any way to reset it so they all come back?
There were a couple of bugs early on in the deletion code which could have caused this. This is controlled through the 'Plans' table in the database, setting the FloorplanID to 0 would make them show up in the list again.
I only have a few test devices so quickly saw that if you have the same device on different FloorPlans then if you move it on one floor then it changes on the other....
This was a bug, devices can have different locations in different rooms.
Might be nice to be able to use the same room on different floor plans. I think you're locking yourself into the idea that there can only be one of each room in the entire house. But what if I wanted a room called "Whole House" in which I have devices like total power consumption, total water consumption etc.... I'd like to see these devices on more than one FloorPlan.
This is already possible, I have two roomplans both called 'Outside' with the same devices in them (weather stuff), one shows on each of my Floorplans.
I still like the idea of being able to define "hot spots" on the FloorPlan.
This could be used to link to other floorplans, I'll add it to the feature list. I don't think you would use it to run scenes though, surely you would just show the scene itself in the floorplan and click on it (this works today).
Also.... Is it possible to browse directly to a specific FloorPlan?
I will put this in at some stage but I tried once and failed to make it work so moved on to more pressing things
On an android touch device how do we get the popup to show like it does on a PC when you hover over an icon? On the desktop if I hover over a temperature device I get a popup showing the current temp etc. On a touchscreen device clicking on it opens up the charts for the device.
I don't have an Android device but on an iPad clicking on an icon shows the popup (same as browser hover) and clicking the popup shows the log (or activates the device). This is done by mapping the click and mouseover events to the same thing so it should work everywhere. If any Android devs can point out why this wouldn't work please do so.

Re: How use Room Plan ?

Posted: Tuesday 05 August 2014 21:50
by tommysharp
This is already possible, I have two roomplans both called 'Outside' with the same devices in them (weather stuff), one shows on each of my Floorplans.
So in your example you have had to setup two rooms called "Outside".... You can't use one room on multiple floorplans?

I still like the idea of clickable hotspots to run some sort of action like a scene. Having an image on the screen somewhere of a button called "Bed Time!" which runs a scene when clicked that would switch off a bunch of stuff. I suppose I could just put a scene in the room but the image icons are not very customizable as far as I know... All scenes seem to have the same icon? I suppose I could put the scene icon next to some text on the screen saying "Bed Time".

Any way to change the device icons? Both of the % icons on my screen are for the Raspberry Pi HD and Memory usage... At first glance it's not possible to see which is which...

Would be awesome to see the actual percentage or value of things like temperature or power use without having to click on them...

Re: How use Room Plan ?

Posted: Thursday 07 August 2014 14:18
by Dnpwwo
You can't use one room on multiple floorplans?
Not with the current data model.
Would be awesome to see the actual percentage or value of things like temperature or power use without having to click on them...
This is on the list of enhancements. I'm trying to stabilize the current functionality first.

Added version 1880
  • More Firefox fixes, everything apart from drag & drop should work. (Drag & Drop 1/2 works)
  • Added link to editor in main page if no floorplans have been defined
  • Added display of all roomplans on a floorplan to editor to prevent people from accidentally overlapping them
  • Added mouse position feed back

Re: How use Room Plan ?

Posted: Sunday 10 August 2014 13:12
by Dnpwwo
Upped build 1891.
  • Prevented popups from going off the right hand side of the screen
  • Fixed bug where the same device could not be on a floorplan more than once (only the 1st one appeared)

Re: How use Room Plan ?

Posted: Monday 11 August 2014 17:04
by qwerk
thanks, for all your updates and for the good work
After the last build 1.1894 I lost my icons on the floorplans
I only get an empty floorplan with the room in clickable blue
Is there something wrong on my site?
I always unpack all the gz files in the www root. ( my employer blocks them) can that be my problem?

kee up the good work

Re: How use Room Plan ?

Posted: Tuesday 12 August 2014 3:40
by Dnpwwo
The js file should go into the www/js folder and that is most probably your problem. If you move them and it still doesn't work let me know, I keep my build as up to date as possible and it is still working for me.

I did make changes to the server end in build 1891 that could cause a problem like this but I checked SourceForge last night and they still seem to be in place. I kicked off a build to 1899 but it was still going when I had to go to work so I can't verify it yet.

If it still doesn't work can you supply the following details:
  • which browser(s) have you tried?
  • Does the floorplan editor still work?

Re: How use Room Plan ?

Posted: Tuesday 12 August 2014 15:42
by qwerk
Dnpwwo wrote:The js file should go into the www/js folder and that is most probably your problem. If you move them and it still doesn't work let me know, I keep my build as up to date as possible and it is still working for me.

I did make changes to the server end in build 1891 that could cause a problem like this but I checked SourceForge last night and they still seem to be in place. I kicked off a build to 1899 but it was still going when I had to go to work so I can't verify it yet.

If it still doesn't work can you supply the following details:
  • which browser(s) have you tried?
  • Does the floorplan editor still work?

Hi, I updated to the latest build 1.1902. Same problem. I tested under chrome and ie 11: same problem
I removed room plans with double items : same problem
I removed room plans without area: same problem
Tried it at home with android : same problem
Tried it all remote ( through proxies and reverse proxy) and local: same problem

Floorplanedit is working fine.

JS file are in the place the should be ( looks like it)

It worked fine until yesterday.

What I also noticed is that the popup "browser cache is being refreshed " does not disappear anymore
FYI : i am running on raspberry

I think it is on my site, but I cannot find it

I manually forced an new update after I removed the unpacked js files.: same problem ( I know there should be two unpacked js files in the update)

and again: Keep up the good work, I love it

Re: How use Room Plan ?

Posted: Wednesday 13 August 2014 13:02
by Dnpwwo
okay, if the editor works but the main page doesn't then the issue is with the Domoticz application on the Pi. I upgraded the interface the the main page uses to allow it to pull devices by floor plan rather than by room so if that function is not present on the back end you won't get anything.

Try forcing a refresh of the key files by logging on to the Pi and:
  • cd domtoicz
  • rm main/WebServer.*
  • svn update (it should restore WebServer.h & WebServer.cpp)
  • grep floorid main/WebServer.* (you should see 2 matches, one mention of GetJSONDevices)
  • updatedomo
  • reboot
Make sure the updatedomo steps doesn't show any errors and it should work.

Re: How use Room Plan ?

Posted: Wednesday 13 August 2014 13:32
by qwerk
Dnpwwo wrote:okay, if the editor works but the main page doesn't then the issue is with the Domoticz application on the Pi. I upgraded the interface the the main page uses to allow it to pull devices by floor plan rather than by room so if that function is not present on the back end you won't get anything.

Try forcing a refresh of the key files by logging on to the Pi and:
  • cd domtoicz
  • rm main/WebServer.*
  • svn update (it should restore WebServer.h & WebServer.cpp)
  • grep floorid main/WebServer.* (you should see 2 matches, one mention of GetJSONDevices)
  • updatedomo
  • reboot
Make sure the updatedomo steps doesn't show any errors and it should work.

Hi, I am using the update option from within domoticz
I don't use SVN.
I dont have mail/WebServer.*
I updated now to version 1.1905. same problem

sorry


edit:
I removed all
I downloaded SVN
compile all
copied the DB into the new baked one
copied the floorplans\*.jpg

still the same problem.....

Edit works fine
plans not

Re: How use Room Plan ?

Posted: Wednesday 13 August 2014 20:01
by vincent13
excuse me but i haven't any item for launch the floorplanedit , it's normal ?

my version is 1905 .

thanks

Re: How use Room Plan ?

Posted: Thursday 14 August 2014 0:47
by Golgautier
Hello Vincent,

Yes it is, it is an 'alpha' feature... It is only available with manual URL.

@Dnpwwo : I will try more but it look likes mys Domoticz crashes when I try to create a plan :-/ I specify the name, the file path (relative to www) and I obtain a red popup with "Problem adding Plans!"... And my process domoticz is no more :-(
Domoticz version is 1.1899

Regards

Re: How use Room Plan ?

Posted: Thursday 14 August 2014 1:06
by Golgautier
Issue is more important and simple : as soon as I go to URL http://myserver:80/#Floorplanedit, domotics process is killed... :?:

Re: How use Room Plan ?

Posted: Thursday 14 August 2014 8:21
by vincent13
thanks Golgautier :D

Re: How use Room Plan ?

Posted: Thursday 14 August 2014 14:09
by Dnpwwo
@qwerk, can you try this URL from your browser:[url]http://<your_server>:8080/json.htm?type=devices&filter=all&used=true&order=Name&floor=1[/url] and post the response.

@Golgautier, I haven't seen that before. If there is an error in the log can you post it? If not, can run run domoticz from the command line with debug on, then crash it and post the log.(there are posts on the forum that explain how)

Also, if you know how, can you have a look at the database and check that the Floorplans table exists? I can't think of anything else that could make it crash at that point.

Re: How use Room Plan ?

Posted: Thursday 14 August 2014 16:03
by Golgautier
@dnpwwo

I think missing table is the good way to explore (But i don't know how to connect on domoticz DB :-/)

My test gave me this log output :

Code: Select all

Thu Aug 14 16:00:06 2014 Error: no such column: FloorplanID
Segmentation fault

Re: How use Room Plan ?

Posted: Thursday 14 August 2014 20:18
by qwerk
Dnpwwo wrote:@qwerk, can you try this URL from your browser:[url]http://<your_server>:8080/json.htm?type=devices&filter=all&used=true&order=Name&floor=1[/url] and post the response.

@Golgautier, I haven't seen that before. If there is an error in the log can you post it? If not, can run run domoticz from the command line with debug on, then crash it and post the log.(there are posts on the forum that explain how)

Also, if you know how, can you have a look at the database and check that the Floorplans table exists? I can't think of anything else that could make it crash at that point.

Hi,
I am a real $%%^#^&^
last week ( or the one before) I had a problem with showing the floorplans, domoticz showed the next - previous buttons but there was only 1 plan ( plan 2)
I fixed that in the DB. but forgot all about it.
Now the floorplan section was showing wrong items again. I fixed them manually and now it looks alright.
stupid memory .........

thanks a lot for trying to solve my stupid problem.

your improvements are very nice.
I had made virtual sensors to add extra devices to show more than one ( I switch multiple lights with one switch) your solution works fine , I don't need the virtuals anymore

thanks again

Re: How use Room Plan ?

Posted: Sunday 17 August 2014 11:51
by Golgautier
Dnpwwo wrote: @Golgautier, I haven't seen that before. If there is an error in the log can you post it? If not, can run run domoticz from the command line with debug on, then crash it and post the log.(there are posts on the forum that explain how)

Also, if you know how, can you have a look at the database and check that the Floorplans table exists? I can't think of anything else that could make it crash at that point.
It looks like DB is not up to date. How I can solve thi problem ?

Thx

Re: How use Room Plan ?

Posted: Sunday 17 August 2014 12:46
by Pjedr
Just add the next links it to a custom page:
http://<domoticzadress>:8080/#Floorplans
http://<domoticzadress>:8080/#Floorplanedit

I made a custom html file http://<domoticzadress>:8080/#templates/links (it will show below the "Custom" tab)
peter@peter-ZBOX-ID18:/var/ramdrive/www/templates$ cat links.html (added other links too)

Code: Select all

<!DOCTYPE html>
<html>
<body>

<p><a href="http://<domoticzadress>:8080/#Floorplans">Floerplannen</a></p>
<p><a href="http://<domoticzadress>:8080/#Floorplanedit">Floerplan Bewurkje</a></p>
<p><a href="http://www.knmi.nl/waarschuwingen_en_verwachtingen">Waar Warskogingen en Ferwachtingen</a></p>
<p><p><a href="http://www.knmi.nl/actueel/index.html">Waar Aktueel</a></p>
<a href="http://wolken.buienradar.nl/nl">Satelietbield Bewolking</a></p>
<p><a href="http://www.buienradar.nl/bliksem-1-uur">Buien en Bliksems fan de leste Oere</a></p>

<p><a href="http://sourceforge.net/p/domoticz/code/HEAD/tree/">Domoticz Oarspronkelike Koade</a></p>
<p><a href="http://www.domoticz.com/forum/">Domoticz Forum</a></p>
</body>
</html>