Thank you so much for this tutorial!
I converted my floorplan to SVG and it works great.
One thing that I would like to share though: I had issues with text elements in the SVG (they would just not show in HABPanel). The solution:
Inkscape inserts text as “Flowed Text” and it has to be converted to an actual text element (select the flowed text element, click “Text” >> “Convert to Text” in the toolbar)
Then the text will show up just fine (and with it the item values).
That seems very odd. Can you open the developer tools and inspect the element you use ng-class on? You should see them added or removed in real time if it works, then try with > 60 characters and check what happens, you may also have errors in the Console tab.
Hello I have been having fun with this and cant really add much to the floor plans as there is much better than what I have. I have started with my “Solar Page” and it is working well but I would like to add some animation to it.
Is there a way to add a “GIF” bar to the screen to animate the direction of the energy flow? Currently I am using a arrow but an animation will look super. I have looked at SVG Sircus and even created a bar that pulses but I can seem to get the animation to work.
Best regards
Paul
Your item’s state looks like it includes the Unit of Measurement, so formatting the value it is more tricky. It’s a common issue right now. You have to separate the value from the unit first to get a raw number, then perform the formatting.
Hmm, yes there are problems. But I dont have the knowlegde to fix it as I understand none of this:
vendor.js:119 Error: [$parse:syntax] http://errors.angularjs.org/1.5.11/$parse/syntax?p0=%3A&p1=is%20an%20unexpected%20token&p2=12&p3=Temperature%3A&p4=%3A
at http://10.4.28.237:8080/habpanel/vendor/vendor.js:6:426
at throwError (http://10.4.28.237:8080/habpanel/vendor/vendor.js:233:200)
at t.ast (http://10.4.28.237:8080/habpanel/vendor/vendor.js:225:79)
at Hd.compile (http://10.4.28.237:8080/habpanel/vendor/vendor.js:251:399)
at nc.parse (http://10.4.28.237:8080/habpanel/vendor/vendor.js:263:213)
at g (http://10.4.28.237:8080/habpanel/vendor/vendor.js:127:222)
at b.$watch (http://10.4.28.237:8080/habpanel/vendor/vendor.js:140:442)
at Object.<anonymous> (http://10.4.28.237:8080/habpanel/vendor/vendor.js:278:339)
at http://10.4.28.237:8080/habpanel/vendor/vendor.js:16:71
at sa (http://10.4.28.237:8080/habpanel/vendor/vendor.js:82:244) <text xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332" x="17.682404" y="105.60394" id="text4089" ng-bind="Temperature: " +="" (itemstate('netatmoudendrsmodule_temperature').split('="" ')[0]="" |="" number:1)="" '°c'="" class="ng-binding">
if i delete my floorplan.css (or if i chnge is name) my ng-class continue to works, if i want write a new thing it’s doesn’t work with my ng-class (exemple with light-on).
my css file is in opt/openhab2/conf/html. is there another css.file ?
Hi there, I have some problems and I hope you can help me .
I have a bulb icon that I would like to change to another bulb icon when I click on it, but I can’t find the way to do it. I am trying to change the “xlink:href” value from “.CSS” and from the xml editor but i can’t make it work.
I also would like to modify the value of a “Temperature” variable. I did 2 buttons, one for add 1 and other for substract 1, but only works the second one:
I have been playing with Inkscape and its quite a lot of fun : Here is a short demo of my setup so far.
Still a working progress but it does give a general idea.
This is awesome… I simply got to learn this stuff!!
I don´t need the options of switching light on/off or any thing else from the SVG. I just want it to be an overview of everything.
I specially like the present detection effect you have made… And your Solar panel… wow!!!
Could you share some knowlegde, cause I want to learn?
Most of what was done there comes from information that I got from this thread. I know there should be a better way of doing things but I used a mix of rules ( Created in node red) and making the item state transparent via css. If there is enough interest I will consider doing a vid on it. But I am by no way an expert on the matter.
Glad you liked it