Go to Post A programmer's job is to write documentation that happens to compile.... :) - buddy.smith [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 25-10-2009, 20:58
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,060
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
FRC Event Data in XML Format

I would like to announce yet another way to browse the FIRST website. I have often wished that I could have a Windows Gadget or a Dashboard widget that I could configure to scroll the schedule, or the rankings, or the match results. The problem has always been getting the data. I assume that Gameday has the data, and I know that TBA also has a wonderful API but I am not sure how often their data is updated. As a result I decided to pull data directly from the FIRST site and give it back out as XML. Enter http://frcfeed.appspot.com/ The goal of this site (also built on the Google App Engine) is to enable us to develop all sorts of applications without first having to deal with the hassle that is FIRST's website (anyone who has ever looked at the website's html will agree that a lot of it is ugly)

This site will return XML. For example the Awards for the 2009 Greater Toronto regional can be accessed at, http://frcfeed.appspot.com/2009/Grea...Toronto/awards upon viewing source you will see:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Award>
	<Home Town>&nbsp;Port Perry, ON, Canada</Home Town>
	<Name>&nbsp;Bill Holtby</Name>
	<Award>Outstanding Volunteer Award</Award>
	<Team>&nbsp;1006</Team>
</Award>
<Award>
	<Home Town>&nbsp;Mississauga, ON, Canada</Home Town>
	<Name>&nbsp;General Motors of Canada & Rick Hansen Secondary School</Name>
	<Award>Imagery Award</Award>
	<Team>&nbsp;1241</Team>
</Award>
<Award>
	<Home Town>&nbsp;Whitby, ON, Canada</Home Town>
	<Name>&nbsp;MTC/Ontario Power Generation</Name>
	<Award>Rockwell Automation Innovation in Control Award</Award>
	<Team>&nbsp;1075</Team>
</Award>
<Award>
	<Home Town>&nbsp;Webster, NY, USA</Home Town>
	<Name>&nbsp;Xerox Corporation & Webster High Schools</Name>
	<Award>Xerox Creativity Award</Award>
	<Team>&nbsp;1126</Team>
</Award>
<Award>
	<Home Town>&nbsp;Toronto, ON, Canada</Home Town>
	<Name>&nbsp;TDSB & Martingrove C. I.</Name>
	<Award>Delphi "Driving Tomorrow's Technology" Award</Award>
	<Team>&nbsp;854</Team>
</Award>
<Award>
	<Home Town>&nbsp;Oakville, ON, Canada</Home Town>
	<Name>&nbsp;St. Mildred's Lightbourn Parent Association / Ford Motor Co. of Canada, Limited & St. Mildred's-Lightbourn School</Name>
	<Award>Kleiner Perkins Caufield & Byers Entrepreneurship Award</Award>
	<Team>&nbsp;771</Team>
</Award>
<Award>
	<Home Town>&nbsp;Sarnia, ON, Canada</Home Town>
	<Name>&nbsp;Mellon/Ontario Power Generation/Research In Motion & Conseil scolaire des écoles catholiques du Sud-Ouest & Saint-Francois-Xavier High School</Name>
	<Award>Judges Award</Award>
	<Team>&nbsp;1846</Team>
</Award>
<Award>
	<Home Town>&nbsp;St. Catharines, ON, Canada</Home Town>
	<Name>&nbsp;General Motors - St. Catharines Powertrain & Governor Simcoe Secondary School</Name>
	<Award>Website Award</Award>
	<Team>&nbsp;1114</Team>
</Award>
<Award>
	<Home Town>&nbsp;Calgary, AB, Canada</Home Town>
	<Name>&nbsp;Dean Weisensel</Name>
	<Award>Woodie Flowers Award</Award>
	<Team>&nbsp;1482</Team>
</Award>
<Award>
	<Home Town>&nbsp;Mississauga, ON, Canada</Home Town>
	<Name>&nbsp;BAE Systems/Promation Engineering Ltd. & Gordon Graydon Memorial SS</Name>
	<Award>Autodesk Visualization Award</Award>
	<Team>&nbsp;1325</Team>
</Award>
<Award>
	<Home Town>&nbsp;Toronto, ON, Canada</Home Town>
	<Name>&nbsp;Scotiabank/Bell Canada/Toronto District School Board & Woburn Collegiate Institute</Name>
	<Award>General Motors Industrial Design Award</Award>
	<Team>&nbsp;188</Team>
</Award>
<Award>
	<Home Town>&nbsp;Stoney Creek, ON, Canada</Home Town>
	<Name>&nbsp;CNC Woodcraft & HWDSB & Orchard Park Secondary School</Name>
	<Award>Motorola Quality Award</Award>
	<Team>&nbsp;2056</Team>
</Award>
<Award>
	<Home Town>&nbsp;Kincardine, ON, Canada</Home Town>
	<Name>&nbsp;Bruce Power/Power Workers' Union & Kincardine District Secondary School</Name>
	<Award>Johnson & Johnson Gracious Professionalism</Award>
	<Team>&nbsp;781</Team>
</Award>
<Award>
	<Home Town>&nbsp;Whitby, ON, Canada</Home Town>
	<Name>&nbsp;MTC/Ontario Power Generation</Name>
	<Award>Chrysler Team Spirit Award</Award>
	<Team>&nbsp;1075</Team>
</Award>
<Award>
	<Home Town>&nbsp;Sherbrooke, QC, Canada</Home Town>
	<Name>&nbsp;Bombardier Aéronautique/Uiversité de sherbrooke & Ã&permil;cole du Triolet High School Centre 24 Juin</Name>
	<Award>Judge's Award</Award>
	<Team>&nbsp;3117</Team>
</Award>
<Award>
	<Home Town>&nbsp;</Home Town>
	<Name>&nbsp;</Name>
	<Award>Judge's Award</Award>
	<Team>&nbsp;</Team>
</Award>
<Award>
	<Home Town>&nbsp;St. Catharines, ON, Canada</Home Town>
	<Name>&nbsp;ASECO Integrated Systems / Sherrard Kuzz LLP / St. Catharines Corrugated Containers / GM Canada & Denis Morris High School</Name>
	<Award>Rookie Inspiration Award</Award>
	<Team>&nbsp;2852</Team>
</Award>
<Award>
	<Home Town>&nbsp;Kingston, ON, Canada</Home Town>
	<Name>&nbsp;Queen's University/Science '82 and '78/Queen's Engineering Society/Transformix Engineering & Kingston Collegiate Vocational Institute High School</Name>
	<Award>Rookie All Star Award</Award>
	<Team>&nbsp;2809</Team>
</Award>
<Award>
	<Home Town>&nbsp;St. Catharines, ON, Canada</Home Town>
	<Name>&nbsp;ASECO Integrated Systems / Sherrard Kuzz LLP / St. Catharines Corrugated Containers / GM Canada & Denis Morris High School</Name>
	<Award>Highest Rookie Seed Award</Award>
	<Team>&nbsp;2852</Team>
</Award>
<Award>
	<Home Town>&nbsp;Peterborough, ON, Canada</Home Town>
	<Name>&nbsp;G.E. Volunteers & Thomas A. Stewart High School</Name>
	<Award>Underwriters Laboratories Industrial Safety Award</Award>
	<Team>&nbsp;1141</Team>
</Award>
<Award>
	<Home Town>&nbsp;Toronto, ON, Canada</Home Town>
	<Name>&nbsp;Scotiabank/Bell Canada/Toronto District School Board & Woburn Collegiate Institute</Name>
	<Award>Regional Finalist #1</Award>
	<Team>&nbsp;188</Team>
</Award>
<Award>
	<Home Town>&nbsp;Toronto, ON, Canada</Home Town>
	<Name>&nbsp;Corporate Pharmacy/Bangor Metals/Diteba Research Laboratories Inc./Extrude-A-Trim Aluminum Warehouse & Crescent School</Name>
	<Award>Regional Finalist #2</Award>
	<Team>&nbsp;610</Team>
</Award>
<Award>
	<Home Town>&nbsp;North Bay, ON, Canada</Home Town>
	<Name>&nbsp;Near North Student Robotics Initiative</Name>
	<Award>Regional Finalist #3</Award>
	<Team>&nbsp;1305</Team>
</Award>
<Award>
	<Home Town>&nbsp;</Home Town>
	<Name>&nbsp;</Name>
	<Award>Regional Finalist #4</Award>
	<Team>&nbsp;</Team>
</Award>
<Award>
	<Home Town>&nbsp;Stoney Creek, ON, Canada</Home Town>
	<Name>&nbsp;CNC Woodcraft & HWDSB & Orchard Park Secondary School</Name>
	<Award>Regional Winner #1</Award>
	<Team>&nbsp;2056</Team>
</Award>
<Award>
	<Home Town>&nbsp;St. Catharines, ON, Canada</Home Town>
	<Name>&nbsp;General Motors - St. Catharines Powertrain & Governor Simcoe Secondary School</Name>
	<Award>Regional Winner #2</Award>
	<Team>&nbsp;1114</Team>
</Award>
<Award>
	<Home Town>&nbsp;Toronto, ON, Canada</Home Town>
	<Name>&nbsp;Etobicoke Collegiate Institute & TDSB</Name>
	<Award>Regional Winner #3</Award>
	<Team>&nbsp;2185</Team>
</Award>
<Award>
	<Home Town>&nbsp;</Home Town>
	<Name>&nbsp;</Name>
	<Award>Regional Winner #4</Award>
	<Team>&nbsp;</Team>
</Award>
<Award>
	<Home Town>&nbsp;Sault Ste Marie, ON, Canada</Home Town>
	<Name>&nbsp;Tenaris Algoma Tubes / EPOH & Algoma District School Board</Name>
	<Award>Regional Engineering Inspiration Award</Award>
	<Team>&nbsp;1535</Team>
</Award>
<Award>
	<Home Town>&nbsp;St. Catharines, ON, Canada</Home Town>
	<Name>&nbsp;General Motors - St. Catharines Powertrain & Governor Simcoe Secondary School</Name>
	<Award>Regional Chairman's Award</Award>
	<Team>&nbsp;1114</Team>
</Award>
Accessing this for different things is very simple, use the base url http://frcfeed.appspot.com/[year optional]/[Event name OR code]/[qualification OR elimination if applicable]/[results OR standings OR schedule OR awards]

Results and Schedule require either qualification or elimination be specified but the other two don't need it, adding it won't hurt anything though.

A word on the event name or code, FIRST specifies a bunch of codes for events, (ex: dt for Detroit) I hate remembering those, I assume that everyone hates remembering those. I decided that I would rather specify an event by its official name (removing the words regional, mi district, division, and field to save typing) However, I realize that some people would prefer to use a code, this supports BOTH, if you specify something it doesn't recognize as an event name it will assume you know what you are doing and treat it as an event code. It will return nothing if you get the wrong name or code.

Currently it defaults to 2010 for the year if you don't specify a year, there is no data for these events so you should probably specify 2009 as the year.

Enjoy!

ps: This is not to step on the feet of any of the other great services out there, TBA is amazing and I have heard great things about Gameday. If they offer a similar services consider this an alternative.
__________________




.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2009 FRC Kit of Parts (Pro/ENGINEER format) - Supported by PTC PTC_FRC CAD 18 18-11-2009 01:02
FIRST Event Data in XML format Andrew Schreiber Technical Discussion 11 03-05-2009 04:18
XML Interchange format Nibbles Scouting 25 03-10-2008 02:09
How to write image data to binary PGM file format(P5)? tommy_chai Programming 0 08-10-2007 08:22
Scouting Data Interchange Format proegssilb Scouting 7 06-06-2007 19:29


All times are GMT -5. The time now is 17:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi