Made a bit of progress, restructured the data a bit, brought it into webCoRE - some caching may need to be done though so the piston does not keep requesting stuff - at least the team names for example
(expression) $nfl.ne »»» (dynamic) [games:[57379:[gamekey:57379, home:DEN, away:NE, time:8:30, wday:Sun, season_type:REG, month:11, year:2017, day:12, eid:2017111211, meridiem:PM, week:10], 57441:[gamekey:57441, home:MIA, away:NE, time:8:30, wday:Mon, season_type:REG, month:12, year:2017, day:11, eid:2017121100, meridiem:PM, week:14], 57480:[gamekey:57480, home:NE, away:NYJ, time:1:00, wday:Sun, season_type:REG, month:12, year:2017, day:31, eid:2017123106, meridiem:PM, week:17], 57345:[gamekey:57345, home:NE, away:LAC, time:1:00, wday:Sun, season_type:REG, month:10, year:2017, day:29, eid:2017102903, meridiem:PM, week:8], 57206:[gamekey:57206, home:DET, away:NE, time:7:00, wday:Fri, season_type:PRE, score:[away:30, home:28, display:NE (30) at DET (28)], month:8, year:2017, day:25, eid:2017082551, meridiem:PM, week:3], 57229:[gamekey:57229, home:NE, away:NYG, time:7:30, wday:Thu, season_type:PRE, score:[away:40, home:38, display:NYG (40) at NE (38)], month:8, year:2017, day:31, eid:2017083162, meridiem:PM, week:4], 57256:[gamekey:57256, home:NO, away:NE, time:1:00, wday:Sun, season_type:REG, month:9, year:2017, day:17, eid:2017091705, meridiem:PM, week:2], 57234:[gamekey:57234, home:NE, away:KC, time:8:30, wday:Thu, season_type:REG, month:9, year:2017, day:7, eid:2017090700, meridiem:PM, week:1], 57190:[gamekey:57190, home:HOU, away:NE, time:8:00, wday:Sat, season_type:PRE, score:[away:23, home:27, display:NE (23) at HOU (27)], month:8, year:2017, day:19, eid:2017081956, meridiem:PM, week:2], 57413:[gamekey:57413, home:BUF, away:NE, time:1:00, wday:Sun, season_type:REG, month:12, year:2017, day:3, eid:2017120302, meridiem:PM, week:13], 57339:[gamekey:57339, home:NE, away:ATL, time:8:30, wday:Sun, season_type:REG, month:10, year:2017, day:22, eid:2017102212, meridiem:PM, week:7], 57290:[gamekey:57290, home:NE, away:CAR, time:1:00, wday:Sun, season_type:REG, month:10, year:2017, day:1, eid:2017100107, meridiem:PM, week:4], 57401:[gamekey:57401, home:NE, away:MIA, time:1:00, wday:Sun, season_type:REG, month:11, year:2017, day:26, eid:2017112604, meridiem:PM, week:12], 57391:[gamekey:57391, home:OAK, away:NE, time:4:25, wday:Sun, season_type:REG, month:11, year:2017, day:19, eid:2017111909, meridiem:PM, week:11], 57318:[gamekey:57318, home:NYJ, away:NE, time:1:00, wday:Sun, season_type:REG, month:10, year:2017, day:15, eid:2017101505, meridiem:PM, week:6], 57274:[gamekey:57274, home:NE, away:HOU, time:1:00, wday:Sun, season_type:REG, month:9, year:2017, day:24, eid:2017092407, meridiem:PM, week:3], 57454:[gamekey:57454, home:PIT, away:NE, time:4:25, wday:Sun, season_type:REG, month:12, year:2017, day:17, eid:2017121709, meridiem:PM, week:15], 57464:[gamekey:57464, home:NE, away:BUF, time:1:00, wday:Sun, season_type:REG, month:12, year:2017, day:24, eid:2017122404, meridiem:PM, week:16], 57298:[gamekey:57298, home:TB, away:NE, time:8:25, wday:Thu, season_type:REG, month:10, year:2017, day:5, eid:2017100500, meridiem:PM, week:5], 57183:[gamekey:57183, home:NE, away:JAX, time:7:30, wday:Thu, season_type:PRE, score:[away:31, home:24, display:JAX (31) at NE (24)], month:8, year:2017, day:10, eid:2017081057, meridiem:PM, week:1]], full:New England Patriots, name:Patriots, loc:New England]
(expression) $nfl.ne.thursday »»» (dynamic) [gamekey:57234, home:NE, away:KC, time:8:30, wday:Thu, season_type:REG, month:9, year:2017, day:7, eid:2017090700, meridiem:PM, week:1]
(expression) $nfl.ne.thursday.away »»» (dynamic) KC
(expression) $nfl.ne.thursday.home + ' @ ' + $nfl.ne.thursday.away »»» (string) NE @ KC
So far I’ve made these:
$nfl.< team ID > returns an object that has the following:
- id = the id of the team, same as teamID used
- name = short name of the team, i.e. Patriots
- loc = location of the team i.e. New England
- full = full name of the team, i.e. New England Patriots
- games - a list of all known games and their scores (for those played)
each game contains:
- gamekey = a numeric ID for the game, may be used later
- home = ID of the home team
- away = ID of the away team
- day = day of the month
- month = month
- year = duh
- wday = the day of the week
- eid = the id of the game (may be used later)
- time = time in local timezone of the home team of game start
- meridiem = AM/PM for the time above
- season_type = the season type, PRE for preseason, REG for regular, POST for playoffs/sb
- week = the week of the season described above, PRE has weeks 1-4, REG has weeks 1-17, POST has weeks 1-4 when 1 = wildcards, 4 = superbowl
Special keywords:
$nfl.< team ID >.today < returns today’s game, if any
$nfl.< team ID >.tomorrow < returns tomorrow’s game, if any
$nfl.< team ID >.monday…sunday < returns the game on that day of the week (current week)
$nfl.< team ID >.mon…sun < returns the game on that day of the week (current week) - same as above, but short codes for days
I’ll need to publish the smartapp before you can play with these. Coming soon.
There will also be an option for
$nfl.< team ID >.now <<< returns the game currently being played, if any