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

Winning Percentage for All MLB Teams

This trend is disabled.

This trend is disabled and will not collect data until re-enabled.

192

data points

Disabled

Description:

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

Time Recorded (time1690) Data (data1690)
26 Dec 2012 09:31:28 [613 452 682 774 357 469 640 515 455 500 545 241 640 440 310 414 458 556 467 310 414 385 593 469 531 500 714 545 438 600]
25 Dec 2012 09:31:27 [549 340 580 451 580 512 543 377 500 531 580 420 463 426 457 605 574 469 500 488 574 556 426 599 395 444 543 407 525 586]
24 Dec 2012 09:31:31 [549 340 580 451 580 512 543 377 500 531 580 420 463 426 457 605 574 469 500 488 574 556 426 599 395 444 543 407 525 586]
23 Dec 2012 09:31:33 [549 340 580 451 580 512 543 377 500 531 580 420 463 426 457 605 574 469 500 488 574 556 426 599 395 444 543 407 525 586]
22 Dec 2012 09:31:35 [549 340 580 451 580 512 543 377 500 531 580 420 463 426 457 605 574 469 500 488 574 556 426 599 395 444 543 407 525 586]
url = 'http://sportsillustrated.cnn.com/baseball/mlb/standings/';
html = urlread(url);

target = '<td class="cnnCol3">\.(\d\d\d)</td>';
tk = regexp(html,target,'tokens');

pct = zeros(size(tk));
for i = 1:length(tk)
    pct(i) = str2num(tk{i}{1});
end

target = 'img title="(.*?)"';
tk2 = regexp(html,target,'tokens');
names = [];
for i = 1:length(tk2)
    names{i} = tk2{i}{1};
end

[names,ix] = sort(names);
pct = pct(ix);

% for i = 1:length(names)
%    fprintf('%s: %d\n',names{i},pct(i));
% end

updatetrend(pct)
Tags:

    Add Tags


    0 comments