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 5 hours ago.
  • Auto-run in: about 19 hours.
  • Created on: 26 Sep 2012

625

data points

Description:

Sunset times in Boston, MA sourced from NOAA observatory

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

Time Recorded (time1823) Data (data1823)
11 Jul 2014 09:00:41 [8.36666666666667]
10 Jul 2014 09:01:01 [8.36666666666667]
09 Jul 2014 09:00:49 [8.36666666666667]
08 Jul 2014 09:00:43 [8.38333333333333]
07 Jul 2014 09:00:42 [8.38333333333333]
% 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