jsnell;204316 Wrote: 
> Hey CubsFan,
> 
> I hacked an older version of SDT to work with my home weather station.
> I'm trying to re-hack the latest version to work with it, and am trying
> to get your WeatherUnderground function to do the trick. (The current
> version of my station software doesn't work with WeatherUnderground.)
> Unfortunately I'm definitely doing something wrong.
> 
> Here's the output of my weather station:
> ...
> 
> Any thoughts about what I'm doing wrong? Would I be better off
> programming my server output to fake a weather underground output?
I think I know what your problem is...  From what I remember, the
wunderground data is all grouped together on a single line.  Your data
is separated on individual lines.  So you can either change your data
output to all be on one line or you can add a for loop to walk through
each line against your if's.

You can look in gotWeather for an example, but you just need to add:
for (@ary) {
before your first if statement
and of course another } at the end of the if's to balance it out.

Lemme know if you have any issues.
-Greg


-- 
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to