Page 1 of 1

Formatting of status strings in HS

Posted: Fri Jul 31, 2009 3:12 pm
by mo046
Hi,

I would like to do some simple formatting of the status strings in homeseer for devices that are managed by the RFXCom plugin.
In the plugin it is possible to change the text for security sensors, so that part is easy. It is also possible to add icons to depict the status of security sensors (eg. open or closed door) by placing an icon (*.gif) in the homeseer html directory with the same name as the text string in the status field (eg. "door open.gif").
I now like to format the text string (<b>bold</b>, <i>italic</i>, <font color="red">c</font id="red"><font color="green">o</font id="green"><font color="orange">l</font id="orange"><font color="limegreen">o</font id="limegreen"><font color="blue">u</font id="blue"><font color="maroon">r</font id="maroon">, etc.). Is this possible. I guess I have to enter some html formatting code in the device's text string but I don't know the right syntax.
Does anybody have any clue?

** Maurice **

Formatting of status strings in HS

Posted: Fri Jul 31, 2009 8:57 pm
by Willem4ever
Here an example, using RFXCOM graphics to show this tiny meter icon in front of a value.

hs.SetDeviceString (counter1, "<img src='RFXCOM\images\meter.gif'> " & value/1000 & " kWh", True)

Formatting of status strings in HS

Posted: Sat Aug 01, 2009 11:42 pm
by mo046
Maybe I didn't make myself clear enough. I don't want to us scripting to set dynamic info (like meter values) in the device string. I ould like to have a fixed formatting for the text strings for security devices, eg. "door open" in bold and red. Which html-code should be entered in the text field of the security device configuration?

** Maurice **

Formatting of status strings in HS

Posted: Sat Aug 01, 2009 11:56 pm
by TANE
You need DooMotion...:)


<hr noshade size="1"><font size="1">Enver
http://twitter.com/Chak64%20My%20Domoti ... dware.html<i> My Domotica Hardware Software</i></font id="size1">

Formatting of status strings in HS

Posted: Sun Aug 02, 2009 11:24 pm
by mo046
@Enver: I just read your comment in this topic:
http://domoticaforum.eu/topic.asp?TOPIC_ID=3254#24245
I'm a Firefox user too, so Doomotion is also a no-go for me.

Is there no other way to have formatting in RFXCom plugin. Bert, any possibility to make this available. Only basic formatting is needed.

** Maurice **

Formatting of status strings in HS

Posted: Mon Aug 03, 2009 9:25 am
by b_weijenberg
Maurice,

You can set the device string with the formatted string on a device value change.

Bert

Formatting of status strings in HS

Posted: Mon Aug 03, 2009 12:53 pm
by mo046
Bert, I know I can do that, but for that I need to make a whole bunch of extra events just to do the formatting. I hoped it could be done easier within the plugin, but obviously it's not possible.
BTW, I got this idea from the DooNetwork plugin where it is easy to configure the formatting. Maybe you could have something like that in a future release of your plug.

** Maurice **