Go to Post We always have a party on Friday. It's called scouting. - Meredith Novak [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
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 04-03-2010, 19:42
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
API for FMS twitter feed

I wrote this last night, and after seeing that it works today, figured I might share it.

This is a PHP API to grab the #FRCFMS Twitter feed, and parse it's data in an easy-to-access way.

The file is http://servb.ath.cx:3445/~luke/1024/frcfms/frcfms.php, get the source at http://servb.ath.cx:3445/~luke/1024/...ile=frcfms.php

Another file of interest is index.php, a sample use of this. adding ?team=XXXX will filter to only show a certain team. So, for example, I can see all of our team's matches with http://servb.ath.cx:3445/~luke/1024/....php?team=1024

load_frcfms() returns an array of objects that have the
  • $date, $event, $type, $match, $red, $blue
  • $r1, $r2, $r3, $rBonus, $rPenalties, $rGoals, $rGoalPen
  • $b1, $b2, $b3, $bBonus, $bPenalties, $bGoals, $bGoalPen
sub-variables for you to access. r/b1-3 are the teams involved, red/blue are the final scores.

I'll probably write up some real documentation eventually, but hopefully some of you find this useful.
 


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
Twitter Hash Tags for the Regionals Justin Regional Competitions 13 05-03-2011 16:28
Twitter for FRC dk5sm5luigi General Forum 0 09-01-2010 08:02
HOT ITEM: Qualifications Ranking program needed for FMS Lite Andy Baker General Forum 2 17-10-2009 12:54
Strange data in FMS Twitter feed rsisk Technical Discussion 1 15-05-2009 09:53
New Vex API for MCC18: LibVexBot outpaddling Programming 2 22-12-2008 09:32


All times are GMT -5. The time now is 15:50.

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