FRC-Spy

Not sure what you mean by “colum”

The moon rocks columns show the number of moonrocks score by the alliance (humans + robots) under E and the number of Supercells scored under S.

The data is pulled off of a Twitter feed that is updated by the official scoring software so it should be accurate.

Sounds good. Thank you for the answer :slight_smile:

Did you ever think of making the blue a little darker? It’s kind of hard to see on some computers and hurts my eyes >.<

Just a suggestion, It looks great!!! :slight_smile:

Look forward to using this.

I know it is a test, but why isn’t there an E-18 or E-9?

There is also no E-12

The “missing” matches are matches that are skipped because one alliance won the first two matches of the set.

We scrape the official USFIRST score pages in real-time, so parsing the Twitter data would be just another way of getting at information we already know.

Also, I am not sure how to map “Elimination 20” to “Semifinal 1 Match 2”. The Twitter data seems to use sequential numbers for Elims, which doesn’t work as well as the Qual numbers do.

I made an xsl stylesheet for the xml file, it displays the data from frc.xml pretty fast. It doesn’t look that great, but it shows up on the ipod touch well. It loads faster than frc-spy. I really haven’t done that much web/xml development, so I am sure there are many mistakes, but it works. Once event filtering is in, it should automatically apply to what is displayed using this stylesheet.

to use, make this the second line of frc.xml

<?xml-stylesheet href="format.xsl" type="text/xsl"?>

and save this to format.xsl

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>FRC Scores</title>
<meta name="viewport" content="width=480; initial-scale=0.6666; maximum-scale=1.0; minimum-scale=0.6666" />
</head>
<body>
<table border="0">
<tr bgcolor="#9acd32">
<th>Event</th>
<th>Match</th>
<th bgcolor="red">Red Alliance</th>
<th bgcolor="blue">Blue Alliance</th>
<th bgcolor="red">Red Score</th>
<th bgcolor="blue">Blue Score</th>
</tr>
<xsl:for-each select="matches/match">
<tr>
<td><xsl:value-of select="event"/></td>
<td><xsl:value-of select="typ"/> - <xsl:value-of select="mch"/></td>
<td bgcolor="#ff9999"><xsl:value-of select="red1"/>-<xsl:value-of select="red2"/>-<xsl:value-of select="red3"/></td>
<td bgcolor="#9999ff"><xsl:value-of select="blue1"/>-<xsl:value-of select="blue2"/>-<xsl:value-of select="blue3"/></td>
<xsl:if test="number(bfin)>number(rfin)">
<td bgcolor="#ff9999"><xsl:value-of select="rfin"/></td>
<td bgcolor="blue"><xsl:value-of select="bfin"/></td>
</xsl:if>

<xsl:if test="number(rfin)>number(bfin)">
<td bgcolor="red"><xsl:value-of select="rfin"/></td>
<td bgcolor="#9999ff"><xsl:value-of select="bfin"/></td>
</xsl:if>

<xsl:if test="number(rfin)=number(bfin)">
<td bgcolor="red"><xsl:value-of select="rfin"/></td>
<td bgcolor="blue"><xsl:value-of select="bfin"/></td>
</xsl:if>

</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

I know it’s a stretch, but do you think you could get team filtering as well, since it’d be nice to be able to just see your matches.

-Z

For some reason the Traverse City District Competition isn’t being represented in FRC-spy. We have had about 25 minutes of events so far, but none of the results have been posted.

It may have something with TBA not updating the TCDC match listings though…

No, I don’t think it has anything to do with TBA. The Twitter feed hasn’t been reporting them either for some reason

Sounds like there’s no network connection at the event.

I have seen some Traverse scores on the twitter, so it’s reporting a few of them. And there may not be any network connection, but I’m not positive.

But http://www2.usfirst.org/2009comp/events/GT/matchresults.html is completely updated

Brandon, I notice for ties, one alliance is still lit up more than the other, shouldn’t they both be lit up?

Brandon, I am unsure of why this is wrong but for me the score for the last midwest final is showing up as

Midwest
E - 20
0:00 (C)
2338
2039
135
1675
1625
111

64
74

32
0

37
0

0
0

that 74 should be an 82 according to both TBA and myself who is from 1625. Unsure why its off but thought you should know.

EDIT: It is the twitter’s fault now that I checked. But thats strange it would be off.

In the test match that just got sent last night (Sunday) through Twitter to the feed, both are lit up with end scores of 0-0 on each alliance.
Looks like it’s fixed!

I didn’t do anything … so maybe a tie with scores > 0 comes up weird. I’ll look at the code.

Edit: I found an issue … they both should be faded when there is a tie now.

Team and Event filtering is now available on FRC-Spy. Check it out, let me know of any weird quirks or additional features you need … I’ve only tested this in Firefox on a Mac.

Aaaand, I should get some sleep.

This is great.

Two feature requests:

  1. Highlighting of filtered teams. It is hard to pick out at a glance the teams I chose to filter. If they were bigger, bolder, a different colour, or something like that, that’d be great.
  2. A mini-mode. This way, I could open a browser window, point it at FRC-spy, and have it only take up a little screen real estate. If I shrink the text with ctrl+scroll-wheel, the table stays about the same size.