Feature #293
closed
Added by dom-dxecutioner over 10 years ago.
Updated over 10 years ago.
Category:
Weather forecasts
Description
Currently the weather.cpp fetches a 4 day forecast; however, by simply changing the dayf=4 parameter to dayf=7, then we will have a 7 day forecast.
The change would occur in weather.cpp line 117:
FROM
strURL.Format("http://xml.weather.com/weather/local/%s?cc=*&unit=m&dayf=4&prod=xoap&link=xoap&par=%s&key=%s",
TO
strURL.Format("http://xml.weather.com/weather/local/%s?cc=*&unit=m&dayf=7&prod=xoap&link=xoap&par=%s&key=%s",
It also appears that we must change weather.h line 50:
FROM #define NUM_DAYS 4
TO #define NUM_DAYS 7
Files
- Status changed from New to Resolved
- Assignee set to buzz
- Target version set to 3.5
- % Done changed from 0 to 100
- Resolution set to fixed
done in r32707. thanks for the changes.
- Status changed from Resolved to Closed
Thanks BuZz! I might just stop moaning for 5 minutes or so... LOL
I just tested the new Win32 build and it works nicely; however, using Window.Property(Day0.OutlookIcon)
and Window.Property(Day0.FanartCode)
and Window.Property(Day0.Condition)
does not work; To be fair, I don't think this worked before either...
Window.Property(Day0.HighTemp)
and Window.Property(Day0.LowTemp)
works just fine... I'll take a look at the code and create a bug ticket, if in fact it's a bug.
Thanks!
Also available in: Atom
PDF