Project

General

Profile

Actions

Feature #293

closed

7 Day Weather Forecast

Added by dom-dxecutioner over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Weather forecasts
Target version:
Start date:
19/03/2014
Due date:
% Done:

100%

Resolution:
fixed

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

screenshot031.jpg (122 KB) screenshot031.jpg Home Screen Weather dom-dxecutioner, 08/05/2014 02:23 AM
screenshot032.jpg (126 KB) screenshot032.jpg Weather Window dom-dxecutioner, 08/05/2014 02:23 AM
Actions

Also available in: Atom PDF