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

April 4th, 2012, 05:40 PM
|
|
Seer
|
|
Join Date: Jun 2010
Location: Kearney, NE
Posts: 35
|
|
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
|

April 5th, 2012, 08:58 AM
|
 |
OverSeer
|
|
Join Date: Jan 2001
Location: Michigan, US
Posts: 3,574
|
|
Quote:
Originally Posted by Larryguy50
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
|

April 5th, 2012, 09:18 AM
|
|
OverSeer
|
|
Join Date: Dec 2004
Location: Thorndale, PA.
Posts: 4,190
|
|
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
|

April 5th, 2012, 05:09 PM
|
|
Seer
|
|
Join Date: Jun 2010
Location: Kearney, NE
Posts: 35
|
|
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.
|

April 5th, 2012, 07:34 PM
|
 |
OverSeer
|
|
Join Date: Jan 2001
Location: Centennial, Colorado, USA
Posts: 3,188
|
|
Quote:
Originally Posted by Larryguy50
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
|

April 6th, 2012, 10:12 AM
|
|
Seer
|
|
Join Date: Jun 2010
Location: Kearney, NE
Posts: 35
|
|
I am using LEDAM. Another question...SnevlBB is all script base? No event triggers-commands?
|

April 6th, 2012, 07:40 PM
|
 |
OverSeer
|
|
Join Date: Jan 2001
Location: Centennial, Colorado, USA
Posts: 3,188
|
|
Quote:
Originally Posted by Larryguy50
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
|

April 7th, 2012, 10:10 AM
|
 |
OverSeer
|
|
Join Date: Jan 2001
Location: Michigan, US
Posts: 3,574
|
|
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
|

July 23rd, 2012, 01:23 PM
|
 |
Seer Master
|
|
Join Date: Mar 2002
Location: orlando
Posts: 835
|
|
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
|

July 23rd, 2012, 05:20 PM
|
 |
OverSeer
|
|
Join Date: Jan 2001
Location: Michigan, US
Posts: 3,574
|
|
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
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 05:17 PM.
|