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:
03/19/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, 05/08/2014 02:23 AM
screenshot032.jpg (126 KB) screenshot032.jpg Weather Window dom-dxecutioner, 05/08/2014 02:23 AM
Actions #1

Updated by buzz over 10 years ago

  • 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.

Actions #2

Updated by buzz over 10 years ago

  • Status changed from Resolved to Closed

Updated by dom-dxecutioner over 10 years ago

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!

Actions

Also available in: Atom PDF