-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlay on picture elements floorplan [FEATURE] #10
Comments
Hi, Answering your question, technically speaking it is possible. Maybe not with this app, you might need to implement it yourself on your floorplan page. What I did was : I can try to find this code and send it to you if you want (it did work but the perspective was not achieved) so you have a base to work on. It would be nice to have it in ESPresenceIPS but it will require an amount of time i'm not sure I can invest right now. |
Wow, thanks a lot for the thorough response! Also, this video made me think that we could use a script to change the I'm looking forward to your experiment code when you have time. |
Hey, I'm so sorry, I just completely forgot and did not receive a notification when you responded. first I created sensors with the json payload as state (in configuration.yaml) :
in my floorplan.yaml config, I added this :
this code will watch certain devices from. IPS and trigger a js code on state change. than add : to your floorlpal.svg file (before closing tag)
now you should have discs moving on your page based on the locations of the devices. keep in min this code is 1px = 1cm i think. and it will start from top left of your svg frame. I would advice to set the circle container to absolute, ether scale or change the px to m ratio to fill your plan. If the plan if in perspective (mine is) you will have to play with matrix3d CSS rule to make it fit your perspective. have fun with all this. It is going to be challenging to get it perfectly as you want. I will gladly assist you in this if you plan on trying out the code et fixing it to your needs. If the result you/we come up with seems to work fine, I might see if we can make something cleaner out of it if needed :) |
"example/test" comment in the svg code is actually the ips bases (esp32) locations. I used it for testing, they are not needed but great to check your accuracy. css "transform" can be changed to "transform3d" to use GPU acceleration in the browser :) and you can add a transition: transform .25s ease-in-out; or other timing/easing to have nice animations between position if the element jumps too much. for css overides and js custom script, I added a custom js file to my dashboards that removes the top bar on the floorplan : (this is my custom js file)
|
Hi, I really love this concept. I wonder if this could be overlayed on a Hone Assistant picture element floorplan. I haven't found any information about that but I think it would be a nice feature. I'm not sure about the technicalities that would allow that or not. What do you think about this? :)
Maybe I should ask this in the
ad-espresense-ips
repo?Thanks!
The text was updated successfully, but these errors were encountered: