Since you are new, let us show you how Trendy works.

Close-button

Ten Day Forecast Highs for Natick, MA

  • Created by: Ned Gulley
  • Last ran: about 17 hours ago.
  • Auto-run in: about 7 hours.
  • Created on: 18 May 2012
  • Liked: 1 time

250

data points

Description:

Natick weather data gathered from this URL at Weather.com.

Recently Collected Data (last 5 of 250) Show All Data

Time Recorded (time1655) Data (data1655)
11 Jul 2014 11:30:09 [80 85 84 85 80 79 79 83 83 82]
10 Jul 2014 11:30:08 [86 81 85 85 87 83 81 80 80 84]
09 Jul 2014 11:30:09 [90 86 82 86 85 81 83 82 81 81]
08 Jul 2014 11:30:09 [93 90 85 83 84 84 85 84 80 79]
07 Jul 2014 11:30:09 [89 92 88 82 81 84 83 85 84 82]
url = 'http://www.weather.com/weather/tenday/Natick+MA+01760:4:US';
html = urlread(url);

target = 'class="wx-temp">\s(\d+)<sup>';
tk = regexp(html,target,'tokens');
hitemp = zeros(size(tk));
for i = 1:length(tk)
    hitemp(i) = str2num(tk{i}{1});
end

updatetrend(hitemp)
Tags:

    Add Tags


    0 comments