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

Close-button

Sunset times in Boston, MA

  • Created by: Muthu Annamalai
  • Last ran: about 3 hours ago.
  • Auto-run in: about 21 hours.
  • Created on: 26 Sep 2012

669

data points

Description:

Sunset times in Boston, MA sourced from NOAA observatory

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

Time Recorded (time1823) Data (data1823)
23 Aug 2014 09:00:42 [7.55]
22 Aug 2014 09:00:47 [7.58333333333333]
21 Aug 2014 09:00:45 [7.6]
20 Aug 2014 09:00:43 [7.63333333333333]
19 Aug 2014 09:00:45 [7.65]
% Example code added - Retrieve answer count on MATLAB Answers

url = 'http://aa.usno.navy.mil/cgi-bin/aa_pap.pl';

state = 'MA';
place = 'BOSTON';
d=regexp(date(),'-','split');
    months = {'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'};
    for itr = 1:12
        if ( strcmpi(months{itr},d{2}) )
            d{2} = num2str(itr);
            break;
        end
    end
    str = urlread(url,'POST',{'xxm',d{2},'xxd',d{1},'xxy',d{3},'st',state,'placeus',place});

p=regexp(str,'Sunset','split');
q=regexp(p{2},'\n','split');
s=regexp(strtrim(q{1}),'[:\ ]','split'); %has sunrise data in hrs as string
hr = str2double(s{1});
min = str2double(s{2});
count = hr + min/60;

updatetrend(count);
Tags:

    Add Tags


    0 comments