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

Highest magnitude earthquake past day

This trend is broken.

Error using urlreadwrite (line 98)
Error downloading URL. Your network connection may be down or your proxy settings improperly configured.

Error in urlread (line 36)
[s,status] = urlreadwrite(mfilename,catchErrors,url,varargin{:});

903

data points

Error

Description:

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

Time Recorded (time1714) Data (data1714)
03 Apr 2015 04:01:18 NaN
02 Apr 2015 04:00:14 [5.8]
01 Apr 2015 04:00:24 [5.9]
31 Mar 2015 04:00:14 [6.5]
30 Mar 2015 04:00:15 [7.5]
% -------------------------
% import and prepare data

url = 'http://earthquake.usgs.gov/earthquakes/feed/csv/all/day';
block = urlread(url);
fmt = '%s %s %s %s %s %s %s %s %s %s %s %s %s';
readData = textscan(block, fmt, 'delimiter', ',');


% -------------------------
% process
T = size(readData{5},1);
magnitudes = zeros(T-1,1);
for t = 2:T
magnitudes(t-1) = str2double( char( readData{5}(t) ) );
end

magNAN = isnan(magnitudes);
magnitudes_adj = magnitudes(magNAN==0);

maxMagn = max(magnitudes_adj);

updatetrend(maxMagn );
Tags:

    Add Tags


    0 comments