tcutting wrote: > These unfortunately will be further down on my list of possible > updates. > The longweather previously in SDT uses a different sub-routine, and I > haven't studied it to try to understand what it is doing. > For the maps, I'll have to look into it. I believe SDT previously > provided map information, but again I haven't looked at what it was > doing, nor how it was doing it.
I think the long weather would be easy to add to your release as long as the text is in your $json_text. You can ignore the other sub-routine and place what you need in your gotWunderground sub-routine. I've pasted the code I used for the long weather statements below. I placed this in the gotWeatherToday sub-routine. Put the forecast time of day in @WETdisplayItems1temp and the weather text in the @WETdisplayItems2temp. Push them in chronological order and your done. Code: -------------------- if ($dnChg eq "D") { # currently push(@WETdisplayItems1temp, $wetData{-1}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather($second->{'NCphrase256'})); # today push(@WETdisplayItems1temp, $wetData{0}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather(@$third[0]->{'narrative12'})); # tonight push(@WETdisplayItems1temp, $wetData{1}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather(@$third[0]->{'narrative12_24'})); #tomorrow push(@WETdisplayItems1temp, $wetData{2}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather(@$third[1]->{'narrative12'})); #tomorrow night push(@WETdisplayItems1temp, $wetData{3}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather(@$third[1]->{'narrative12_24'})); } else { # currently push(@WETdisplayItems1temp, $wetData{-1}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather($second->{'NCphrase256'})); # tonight push(@WETdisplayItems1temp, $wetData{0}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather(@$third[0]->{'narrative12_24'})); #tomorrow push(@WETdisplayItems1temp, $wetData{1}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather(@$third[1]->{'narrative12'})); #tomorrow night push(@WETdisplayItems1temp, $wetData{2}{'forecastTOD'}); push(@WETdisplayItems2temp, localizeLongWeather(@$third[1]->{'narrative12_24'})); } -------------------- PS - The localizeLongWeather function reads through the text and replaces temperature and wind speed values with the user preference. i.e. - changes F to C, MPH to knots etc. ------------------------------------------------------------------------ BoomX2's Profile: http://forums.slimdevices.com/member.php?userid=33529 View this thread: http://forums.slimdevices.com/showthread.php?t=14327 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins