API enhancement: Get race order as high level command #366
Unanswered
mjclarke94
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unless I am missing something, the best approach to get the TLA of the driver in a given position is to iterate over the entries in
remote.live_timing_state['data']['liveTimingState']['TimingData']['Lines']
(coming from python, so sorry for the lack of GraphQL!), and map the position and driver number attributes toremote.live_timing_state['data']['liveTimingState']['DriverList']
. This seems like a pretty long winded approach to answer a common question you might ask programatically: "What is the current running order"With this, implementing something like "Set these three windows to be the drivers in P1 -> 5" becomes a much simpler operation.
(apologies if I have missed a simple way of doing this!)
Beta Was this translation helpful? Give feedback.
All reactions