www.homeseer.com  
 

Go Back   HomeSeer Message Board > 3rd Party Plug-Ins/Scripts > Plug-ins by Author > Ultra Scripts and Plug-Ins > UltraWeatherBug HSPI

UltraWeatherBug HSPI Discussion area for the UltraWeatherBug plug-in by UltraJones

Reply
 
Thread Tools Display Modes
  #1  
Old April 4th, 2012, 05:40 PM
Larryguy50 Larryguy50 is offline
Seer
 
Join Date: Jun 2010
Location: Kearney, NE
Posts: 45
Default Problem with using hs.Devicestring

I'm not sure where to post this, so I will start here.

I am trying to display conditions from the plugin on a betbrite sign. Devicevalue works fine when used to get temp and so on from UltraWeatherBug, but when using hs.Devicestring to retrive conditions or anything with weather text that is contained in a device I get extra characters in front of the text being displayed on the sign. I don't have this if I am just feeding my own text to the sign.

Does anyone know why I have those extra charcters and how to fix that? I'm not to great at scripting.

Thanks
Reply With Quote
  #2  
Old April 4th, 2012, 06:07 PM
jon00's Avatar
jon00 jon00 is offline
OverSeer
 
Join Date: Jan 2002
Location: London UK
Posts: 7,869
Default

Never tried it but I think BLTouchString can be used to filter out HTML code in devicestring: http://bladeplugins.no-ip.org/Downlo...#BLTouchString
__________________
Jon

Reply With Quote
  #3  
Old April 5th, 2012, 08:58 AM
Ultrajones's Avatar
Ultrajones Ultrajones is offline
OverSeer
 
Join Date: Jan 2001
Location: Michigan, US
Posts: 4,144
Default

Quote:
Originally Posted by Larryguy50 View Post
I'm not sure where to post this, so I will start here.

I am trying to display conditions from the plugin on a betbrite sign. Devicevalue works fine when used to get temp and so on from UltraWeatherBug, but when using hs.Devicestring to retrive conditions or anything with weather text that is contained in a device I get extra characters in front of the text being displayed on the sign. I don't have this if I am just feeding my own text to the sign.

Does anyone know why I have those extra charcters and how to fix that? I'm not to great at scripting.

Thanks
Are you updating the betbrite sign via script?
__________________
Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR
Reply With Quote
  #4  
Old April 5th, 2012, 09:18 AM
nightwalker nightwalker is offline
OverSeer
 
Join Date: Dec 2004
Location: Thorndale, PA.
Posts: 3,995
Default

As Jon00 says BLTouchString does a fine job of this, I had the same problem with the condition of the UltraWeatherBug device string. I used this script to put the condition in a virtual device and used that to send where needed.

PHP Code:
' Strips out some weird charaters so the weather condition from ultraweatherbug speaks correctly.

Public Sub Main(ByVal Parms As Object) 

     hs.SetDeviceString ("Z53",hs.Plugin("BLTouchString").GetFormattedDeviceString("(26"),TRUE)
 
End Sub 
__________________
Marty
------
XPpro SP3 /w HS Standard 2.5.0.80, HSTouch Server - 1.0.0.70, HSTouch Client 1.0.0.73 HSTouch Android - 1.0.0.2, HSTouch iPhone - 1.0.0.2
Playing with HS3 a bit but it's just play at this point.
Reply With Quote
  #5  
Old April 5th, 2012, 05:09 PM
Larryguy50 Larryguy50 is offline
Seer
 
Join Date: Jun 2010
Location: Kearney, NE
Posts: 45
Default

Yes, I am using a script I found to send the device info to the sign. I tried to reference the same device to a touch screen object and it reads it correctly. Maybe I will have to use the BLTouch String as others suggested.
Reply With Quote
  #6  
Old April 5th, 2012, 07:34 PM
stevea's Avatar
stevea stevea is offline
OverSeer
 
Join Date: Jan 2001
Location: Centennial, Colorado, USA
Posts: 3,368
Default

Quote:
Originally Posted by Larryguy50 View Post
Yes, I am using a script I found to send the device info to the sign. I tried to reference the same device to a touch screen object and it reads it correctly. Maybe I will have to use the BLTouch String as others suggested.
Are you using SnevlBB or LEDAM for the interface to the BetaBrite? If it is SnevlBB I can help you out. I've never had LEDAM and so am not qualified to do much help.

It sounds like you just need a way to extract the visible text from the HTML in the device string.

Steve
Reply With Quote
  #7  
Old April 6th, 2012, 10:12 AM
Larryguy50 Larryguy50 is offline
Seer
 
Join Date: Jun 2010
Location: Kearney, NE
Posts: 45
Default

I am using LEDAM. Another question...SnevlBB is all script base? No event triggers-commands?
Reply With Quote
  #8  
Old April 6th, 2012, 07:40 PM
stevea's Avatar
stevea stevea is offline
OverSeer
 
Join Date: Jan 2001
Location: Centennial, Colorado, USA
Posts: 3,368
Default

Quote:
Originally Posted by Larryguy50 View Post
I am using LEDAM. Another question...SnevlBB is all script base? No event triggers-commands?
Larry,

It is script based, so it is probably a little more work than just picking an action from an event. I do provide a bunch of starter scripts that will do most of what you would want to do.

Send me an email at snevl at msn dot com and I'll be happy to help you customize SnevlBB for what you want, if you want to try to use SnevlBB.

Steve
Reply With Quote
  #9  
Old April 7th, 2012, 10:10 AM
Ultrajones's Avatar
Ultrajones Ultrajones is offline
OverSeer
 
Join Date: Jan 2001
Location: Michigan, US
Posts: 4,144
Default

You can also simply disable the images you are trying to remove by setting UltraWeatherBug > Options > HomeSeer Device Options > Device Image = No.

Regards,
Ultrajones
__________________
Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR
Reply With Quote
  #10  
Old July 23rd, 2012, 01:23 PM
collegeboyslive's Avatar
collegeboyslive collegeboyslive is offline
Seer Master
 
Join Date: Mar 2002
Location: orlando
Posts: 799
Default

that still leave a " " charature in there that hs reads
__________________
detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting
Reply With Quote
  #11  
Old July 23rd, 2012, 05:20 PM
Ultrajones's Avatar
Ultrajones Ultrajones is offline
OverSeer
 
Join Date: Jan 2001
Location: Michigan, US
Posts: 4,144
Default

UltraWeatherBug HSPI version 1.0.4587.29312 removes the leading HTML encoded space.

Regards,
Ultrajones
__________________
Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:05 AM.

Untitled Document
NEW!
New How-To's
New Products

HomeSeer Z-Troller"
MyHomeSeer-Connect Service

Copyright HomeSeer Technologies, LLC