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
Moderator: b_weijenberg
- Willem4ever
- Global Moderator
- Posts: 805
- Joined: Mon Oct 30, 2006 3:48 pm
- Location: Uithoorn / Netherlands
Formatting of status strings in HS
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)
hs.SetDeviceString (counter1, "<img src='RFXCOM\images\meter.gif'> " & value/1000 & " kWh", True)
Formatting of status strings in HS
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 **
** Maurice **
Formatting of status strings in HS
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">
<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
@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 **
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 **
- b_weijenberg
- Forum Moderator
- Posts: 1744
- Joined: Sun May 14, 2006 4:32 pm
- Location: Netherlands
Formatting of status strings in HS
Maurice,
You can set the device string with the formatted string on a device value change.
Bert
You can set the device string with the formatted string on a device value change.
Bert
Formatting of status strings in HS
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 **
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 **