Formatting of status strings in HS

Forum over de RFXCOM plugin (DUTCH forum)

Moderator: b_weijenberg

Post Reply
mo046
Member
Member
Posts: 186
Joined: Thu Nov 08, 2007 4:12 pm
Location: Netherlands

Formatting of status strings in HS

Post 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 **
User avatar
Willem4ever
Global Moderator
Global Moderator
Posts: 805
Joined: Mon Oct 30, 2006 3:48 pm
Location: Uithoorn / Netherlands

Formatting of status strings in HS

Post 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)
mo046
Member
Member
Posts: 186
Joined: Thu Nov 08, 2007 4:12 pm
Location: Netherlands

Formatting of status strings in HS

Post 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 **
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

Formatting of status strings in HS

Post 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">
mo046
Member
Member
Posts: 186
Joined: Thu Nov 08, 2007 4:12 pm
Location: Netherlands

Formatting of status strings in HS

Post 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 **
User avatar
b_weijenberg
Forum Moderator
Forum Moderator
Posts: 1744
Joined: Sun May 14, 2006 4:32 pm
Location: Netherlands

Formatting of status strings in HS

Post by b_weijenberg »

Maurice,

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

Bert
mo046
Member
Member
Posts: 186
Joined: Thu Nov 08, 2007 4:12 pm
Location: Netherlands

Formatting of status strings in HS

Post 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 **
Post Reply

Return to “Homeseer Rfxcom Plugin Forum”