The Trendy application is being retired in the new year. The new web application, ThingSpeak, offers similar functionality. We recommend that active Trendy users who are looking to create new trends use ThingSpeak. To begin collecting your data in ThingSpeak, please read the tutorial : ThingSpeak for Trendy users. Although Trendy no longer allows the creation of new trends, the application will still remain accessible until January 13, 2016. Until that date, you can view your current trends and download your data. After that date, your data will no longer be accessible. Thanks for using Trendy and we encourage you to check out ThingSpeak.

Close-button

Daylight Hours Bangor Maine

This trend is broken.

Your code has an error or you are requesting a feature that is not yet available.

1559

data points

Error

Description:

daylight hours in decimal format

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

Time Recorded (time1938) Data (data1938)
05 Apr 2013 17:03:22 NaN
05 Apr 2013 16:00:45 [9.73333333333333]
05 Apr 2013 15:00:38 [9.73333333333333]
05 Apr 2013 14:00:42 [9.73333333333333]
05 Apr 2013 13:00:51 [9.73333333333333]
% Daylight hours for Bangor

% find the target site
url = 'http://www.wunderground.com/history/airport/KBGR/2013/1/30/DailyHistory.html';

% find the target number to 'scrape'
daylight_h = urlfilter(url, 'Length of Day',1);

% this is the minute value assigned to another variable
daylight_m = urlfilter(url, 'Length of Day',2);

% convert minutes to decimal value
daylight_m = (daylight_m/60);

% assign variable to sum of data
partial_hour = (daylight_h + daylight_m);

%returns two values so just use the second
graphit = partial_hour(2);

% update trendy
updatetrend(graphit);
Tags:

    Add Tags


    0 comments