#Definitions:
Node: A individual node from withn a NodeRED Flow
Flow: A collection of nodes
HockEOS: The specific flow for this solution
#Data Flow:
-
User sends /nhl/get/team=XXX to HockEOS incoming UDP Node, where XXX is the three letter code of an NHL team.
-
HockEOS Incoming UDP node passes data to OSC node, which returns the three digit code
-
The three digit code passes through a switch node to determine which team ID# it corresponds to (number is needed for API Call)
-
Old variables are cleared, those blank variables are then sent to EOS temporarily
-
ID from step 3 is put into the API URL and a call is initiated to the NHL API
-
NHL API returns details about the next game for that particular team, and sets a number of variables used throughout
-
A "Game ID" variable from step 6 is passed into another API URL, and then a call is initiated every X seconds (currently 5, but eventually user-definable)
-
Live game data comes back from the NHL, all kinds of variables are sets
-
Some calculations are made for power play status and other Things
-
Data from variables is converted to OSC packets
-
OSC packets are sent to Eos
-
Magic Sheet objects of type "command" are updated as needed