Go to Post In Israel we've got the president supporting FIRST and speaking at events, so it's time for you guys to catch up =] - Tottanka [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 29-03-2014, 15:33
nardavin nardavin is offline
Registered User
FRC #2403 (Plasma Robotics)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Gilbert, Arizona
Posts: 28
nardavin is on a distinguished road
Question Pulling FIRST Data

First of all, thank you to all of those who will give up a little of their time in order to help us resolve this problem!

Plasma Robotics is currently working on writing a web app. However, in order to do what we want, we need to pull some data from the FIRST servers. We know that this is possible, because sites like The Blue Alliance and apps like FRC spyder are able to pull these types of data.

For our application, we need to pull a couple different types of data from FIRST. First, we also need to be able to pull information about a given team (by number), such as their team name (aka. Plasma Robotics), their long name (sponsor list name), as well as their location (aka. Mesa Arizona). Also, we need to be able to pull certain information from the databases about a given regional, such as the rankings, attending teams, and the results to matches.

On the topic of regional rankings, we would like to take the information from the FIRST servers and input it into a form on our web app site, so that people that are using the app will be able to look at the rankings a lot easier within our app. An example is attached. The match information would be shown similarly to how the blue alliance shows the data.

We want to pull the teams that are attending any given regional so that we can input those into a <select> as <option> tags in HTML via a server side language (preferably PHP). The information about teams would be used for user profiling as well as showing information about other teams.

Also, we are currently writing our web app using an HTML base with PHP scripting and JS for AJAX.

Thank you for all of your help.

~NA and NS(EH)
Attached Images
File Type: bmp post.bmp (369.5 KB, 47 views)
  #2   Spotlight this post!  
Unread 29-03-2014, 15:56
compsuppjk compsuppjk is offline
Registered User
FRC #0420 (SNORT - Team 420)
 
Join Date: Jan 2013
Rookie Year: 1997
Location: Bailiwick of Jersey
Posts: 9
compsuppjk will become famous soon enough
Re: Pulling FIRST Data

As far as I know, there are only three main sources from which you get data.

The first would be the twitter handle @FRCFMS, which is posted to by each individual event server as the matches are played. I would never solely use this data, because if an event is having an issue with the internet at their venue, you will never be able to get this data again (nobody goes back and creates those twitter posts).

The second source of data would be the event data posted in HTML format found through the FRC website (example: http://www2.usfirst.org/2014comp/Eve...hresults.html). Because these use the standard event codes in the URLs, you can programatically scrape these pages. You can find the match results and all of the rank data this way, and they should be updated every time a new match score is committed. In my mind, this is the best way to obtain data, as these HTML files will generally be posted after an event, even if there was an issue with the internet at the venue.

The third source of data pertains to your question about team information. This is unfortunately where it gets tricky (perhaps there's a better way to do this, but I'm not aware of one.) If you go to an event's page on the FRC website, there is a link "What teams are registered for this event?". If you open that in a new tab, you get something that looks like this: https://my.usfirst.org/myarea/index....5BB4Gjoq14A824 . You can individually click on teams in that list to get their TIMS data; perhaps this format is OK for what you're doing, as you'd be looking for data on teams by event. You could also script something to query all of the events and compile the data that way. The only other thing I could think of to do would be to iterate through the last value on this link: https://my.usfirst.org/myarea/index....ls&tpid=211505 until you grab all of the data (unfortunately that record number doesn't seem to correspond with team numbers in any way).

I hope this helps.
  #3   Spotlight this post!  
Unread 29-03-2014, 16:01
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Pulling FIRST Data

You can pull a lot of this data from the blue alliance directly. http://www.thebluealliance.com/apidocs
  #4   Spotlight this post!  
Unread 29-03-2014, 17:01
nardavin nardavin is offline
Registered User
FRC #2403 (Plasma Robotics)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Gilbert, Arizona
Posts: 28
nardavin is on a distinguished road
Re: Pulling FIRST Data

The more I look, I think the easiest way would be pulling from The Blue Alliance. However, is there any way I can pull specific variables out of the huge amount of information the query throws at me?
  #5   Spotlight this post!  
Unread 29-03-2014, 17:03
jlmcmchl jlmcmchl is offline
FF - The Breakfast Company
AKA: Jordan McMichael
FRC #0027 (Team RUSH 27)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Clarkston,MI
Posts: 327
jlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud of
Re: Pulling FIRST Data

Quote:
Originally Posted by nardavin View Post
The more I look, I think the easiest way would be pulling from The Blue Alliance. However, is there any way I can pull specific variables out of the huge amount of information the query throws at me?
In whatever language you're using you can use JSON to extract individual data.
__________________


Field reset: Kettering Kickoff ('13, '14), Kettering ('14, '15), Bedford ('14), Woodhaven ('16), Carver ('16), Einstein! ('16)
Referee: Bedford ('15), MARC ('15, '16), Kettering Kickoff ('15, '16), Kettering District (#1&2: '16), Troy ('16)
  #6   Spotlight this post!  
Unread 30-03-2014, 00:09
Fletch1373's Avatar
Fletch1373 Fletch1373 is offline
Registered User
AKA: Fletch
FRC #3181 (Panthers)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Rochester, NY
Posts: 251
Fletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud of
Re: Pulling FIRST Data

Quote:
Originally Posted by compsuppjk View Post
As far as I know, there are only three main sources from which you get data.

The first would be the twitter handle @FRCFMS, which is posted to by each individual event server as the matches are played. I would never solely use this data, because if an event is having an issue with the internet at their venue, you will never be able to get this data again (nobody goes back and creates those twitter posts).

The second source of data would be the event data posted in HTML format found through the FRC website (example: http://www2.usfirst.org/2014comp/Eve...hresults.html). Because these use the standard event codes in the URLs, you can programatically scrape these pages. You can find the match results and all of the rank data this way, and they should be updated every time a new match score is committed. In my mind, this is the best way to obtain data, as these HTML files will generally be posted after an event, even if there was an issue with the internet at the venue.

The third source of data pertains to your question about team information. This is unfortunately where it gets tricky (perhaps there's a better way to do this, but I'm not aware of one.) If you go to an event's page on the FRC website, there is a link "What teams are registered for this event?". If you open that in a new tab, you get something that looks like this: https://my.usfirst.org/myarea/index....5BB4Gjoq14A824 . You can individually click on teams in that list to get their TIMS data; perhaps this format is OK for what you're doing, as you'd be looking for data on teams by event. You could also script something to query all of the events and compile the data that way. The only other thing I could think of to do would be to iterate through the last value on this link: https://my.usfirst.org/myarea/index....ls&tpid=211505 until you grab all of the data (unfortunately that record number doesn't seem to correspond with team numbers in any way).

I hope this helps.
There's an additional source that you didn't mention. It's not well known, but has been mentioned a few times on this site. This data is available in tab-delimited format only(as far as I can tell), but is still quite useful.
__________________
Student:
<04: FRC0213> <05-08: FRC1373>
Mentor:
<09-10: FRC0809> <11-12: FRC3555> <12-14: FRC0073> <15-??: FRC3181>
Volunteer:
<FTAA> <CSA> <Defense Coordinator> <Scorekeeper> <Robot Inspector> <Official Scorer>
2016 Tour:
CTWAT [DefCoord] > Pittsburgh[Mentor/DefCoord] > TVR[FTAA] > FLR[CSA] > NE DCMP[CSA] > CMP[CSA]
  #7   Spotlight this post!  
Unread 30-03-2014, 13:58
jlmcmchl jlmcmchl is offline
FF - The Breakfast Company
AKA: Jordan McMichael
FRC #0027 (Team RUSH 27)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Clarkston,MI
Posts: 327
jlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud of
Re: Pulling FIRST Data

Quote:
Originally Posted by Fletch1373 View Post
There's an additional source that you didn't mention. It's not well known, but has been mentioned a few times on this site. This data is available in tab-delimited format only(as far as I can tell), but is still quite useful.
Is there any other data that that lasso page is useful for?
__________________


Field reset: Kettering Kickoff ('13, '14), Kettering ('14, '15), Bedford ('14), Woodhaven ('16), Carver ('16), Einstein! ('16)
Referee: Bedford ('15), MARC ('15, '16), Kettering Kickoff ('15, '16), Kettering District (#1&2: '16), Troy ('16)
  #8   Spotlight this post!  
Unread 31-03-2014, 00:18
Fletch1373's Avatar
Fletch1373 Fletch1373 is offline
Registered User
AKA: Fletch
FRC #3181 (Panthers)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Rochester, NY
Posts: 251
Fletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud ofFletch1373 has much to be proud of
Re: Pulling FIRST Data

Quote:
Originally Posted by jlmcmchl View Post
Is there any other data that that lasso page is useful for?
Those are the only pages I'm aware of. I've tried to find others, but haven't been successful.
__________________
Student:
<04: FRC0213> <05-08: FRC1373>
Mentor:
<09-10: FRC0809> <11-12: FRC3555> <12-14: FRC0073> <15-??: FRC3181>
Volunteer:
<FTAA> <CSA> <Defense Coordinator> <Scorekeeper> <Robot Inspector> <Official Scorer>
2016 Tour:
CTWAT [DefCoord] > Pittsburgh[Mentor/DefCoord] > TVR[FTAA] > FLR[CSA] > NE DCMP[CSA] > CMP[CSA]
Closed Thread


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


All times are GMT -5. The time now is 01:43.

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