[Tutorial] Way to get Radio Messages #84
Replies: 22 comments
-
@theOehrly Maybe you can add it to the package to output the links directly in a row. |
Beta Was this translation helpful? Give feedback.
-
I could add it in theory, yes. But there are way too many things currently that I consider to be more important than adding this feature. So it will likely not happen any time in the foreseeable future. |
Beta Was this translation helpful? Give feedback.
-
Hello, made a program for the same. It returns the radio messages for the latest GP. |
Beta Was this translation helpful? Give feedback.
-
@theOehrly Maybe you can check my code and add it using by using that file in fast f1 |
Beta Was this translation helpful? Give feedback.
-
Just a quick question. Does this work to get RaceControl messages as well? Apart from the radio mesages |
Beta Was this translation helpful? Give feedback.
-
@hash55 It only gives the radio message with which Constructor's want to and rest is for F1TV. You can add a function and copy the code of radio and replace "TeamRadio.json" with "TrackStatus.json" for SC/VSC/Flags etc. rest all is not available on the api according to me. |
Beta Was this translation helpful? Give feedback.
-
Thanks! However, the official F1App also gives race control messages in the same window as the team radios. (I'm talking about messages like "lap deleted" or "pit lane closed" etc) so I would say it must be somewhere in the API, but I'm not familiar to them. I think it should be interesting to have access to it, but I don't know where to start searching it XD |
Beta Was this translation helpful? Give feedback.
-
At the top of 'fastf1/api.py' there is a dictionary called |
Beta Was this translation helpful? Give feedback.
-
Thanks! Will have a look at it |
Beta Was this translation helpful? Give feedback.
-
@theOehrly I also took it from there only. Thank You! for making this list |
Beta Was this translation helpful? Give feedback.
-
@theOehrly @hash55 Hello, try this code.
|
Beta Was this translation helpful? Give feedback.
-
Thanks! Works perfect, just had to change |
Beta Was this translation helpful? Give feedback.
-
@hash55 Actually Jsonstream is a package, you can install it using |
Beta Was this translation helpful? Give feedback.
-
Oh ok. Thanks again. Btw in the |
Beta Was this translation helpful? Give feedback.
-
@hash55 Maybe it helps in checking if data if live during transmission and matches the sequence of other packets of data uploaded. |
Beta Was this translation helpful? Give feedback.
-
@hash55 well, it's not empty, but it only contains timestamps in 15 second intervals. I'm not sure that they're really useful for anything here. But I guess it's useful during the live data stream. |
Beta Was this translation helpful? Give feedback.
-
Thanks! Might there be more pages than those that are in the |
Beta Was this translation helpful? Give feedback.
-
Of course, I could have missed something. Also, I haven't checked in quite some time. So maybe I'll do that again in the next few days. |
Beta Was this translation helpful? Give feedback.
-
@theOehrly I have a question that how do you find the pages from the api? |
Beta Was this translation helpful? Give feedback.
-
@siddharth-tewari that's a good question. Let me know if you discover something new |
Beta Was this translation helpful? Give feedback.
-
There are different ways (I guess) how you can check. I don't really want to detail this here. Nothing special to this api but just "the usual way" of how you'd approach something like this. I found one more api endpoint: "SessionData.json". It's not very interesting, though. It's simply a combination of session status, track status and lap count. So no new data. Still, I'll add it to the list of pages. |
Beta Was this translation helpful? Give feedback.
-
@theOehrly Ok, actually I know nothing about API’s so can you please some reference links? |
Beta Was this translation helpful? Give feedback.
-
If found this so creating a issue so everyone gets to know about it.
Example of URL - 2021/2021-10-24_United_States_Grand_Prix/2021-10-24_Race/
Example - livetiming.formula1.com/static/2021/2021-10-24_United_States_Grand_Prix/2021-10-24_Race/
Example - livetiming.formula1.com/static/2021/2021-10-24_United_States_Grand_Prix/2021-10-24_Race/TeamRadio.jsonStream
Example - http://livetiming.formula1.com/static/2021/2021-04-18_Emilia_Romagna_Grand_Prix/2021-04-18_Race/TeamRadio/MAXVER01_33_20210418_162030.mp3
Beta Was this translation helpful? Give feedback.
All reactions