Court Command demo device: /api/score

Every link sends one command and shows the board's JSON afterwards. The same calls work from a phone, a tablet, GameDay Scores, or curl. Read the board without changing it · Basketball page · Volleyball page · Demo · API reference

Clock: set to 1:00/api/score?Action=Clock&Value=60000
Clock: set to 8:00/api/score?Action=Clock&Value=480000
Clock: run/api/score?Action=ClockRun
Clock: stop/api/score?Action=ClockStop
Clock: add 30 seconds/api/score?Action=ClockAdjust&Value=30000
Clock: subtract 30 seconds/api/score?Action=ClockAdjust&Value=-30000
Clock: add 1 minute/api/score?Action=ClockAdjust&Value=60000
Clock: subtract 1 minute/api/score?Action=ClockAdjust&Value=-60000
Clock: clear (blank)/api/score?Action=Clock&Value=-1
Horn: 1/4 second/api/score?Action=Horn&Value=5
Horn: 1 second/api/score?Action=Horn&Value=20
Horn on next stop/api/score?Action=HornOnStop&Value=10
Horn at 10 s and 0 s on the clock/api/score?Action=Horns&Value=10000,0
Home: +1/api/score?Action=Score&Team=Home&Value=1
Home: +2/api/score?Action=Score&Team=Home&Value=2
Home: +3/api/score?Action=Score&Team=Home&Value=3
Home: -1/api/score?Action=Score&Team=Home&Value=-1
Home: clear score/api/score?Action=Score&Team=Home&Value=-200
Home: possession/api/score?Action=Posession&Team=Home
Home: bonus/api/score?Action=Bonus&Team=Home
Home: player 00 foul +1/api/score?Action=Fouls&Team=Home&Player=00&Value=1
Home: player 00 foul -1/api/score?Action=Fouls&Team=Home&Player=00&Value=-1
Home: player 9 foul +1/api/score?Action=Fouls&Team=Home&Player=9&Value=1
Visitor: +1/api/score?Action=Score&Team=Visitor&Value=1
Visitor: +2/api/score?Action=Score&Team=Visitor&Value=2
Visitor: +3/api/score?Action=Score&Team=Visitor&Value=3
Visitor: -1/api/score?Action=Score&Team=Visitor&Value=-1
Visitor: clear score/api/score?Action=Score&Team=Visitor&Value=-200
Visitor: possession/api/score?Action=Posession&Team=Visitor
Visitor: bonus/api/score?Action=Bonus&Team=Visitor
Visitor: player 01 foul +1/api/score?Action=Fouls&Team=Visitor&Player=01&Value=1
Visitor: player 88 foul +1/api/score?Action=Fouls&Team=Visitor&Player=88&Value=1
Period: +1/api/score?Action=Period&Value=1
Period: -1/api/score?Action=Period&Value=-1
Period: clear/api/score?Action=Period&Value=-9
Time-out: 30 seconds/api/score?Action=TimeOut&Value=30000
Time-out: 1 minute/api/score?Action=TimeOut&Value=60000
Time-in (restore the game clock)/api/score?Action=TimeIn

Board

{
  "Clock": 450000,
  "Running": 0,
  "Suspended": 0,
  "Period": -1,
  "Home": {
    "Score": -1,
    "Fouls": [],
    "Posession": 1,
    "Bonus": 1
  },
  "Visitor": {
    "Score": -1,
    "Fouls": [],
    "Posession": 0,
    "Bonus": 1
  },
  "Horn": 5,
  "HornOnStop": 0
}

Parameters: Action (or a), Team (t): Home or Visitor, Player (p): jersey number, Value (v). Scores, fouls and the period are added to, so send a negative value to subtract. Clock values are milliseconds. Horn values are twentieths of a second.