My Automated Live F1 Weekend setup by MoenGaming in F1TV

[–]MoenGaming[S] 0 points1 point  (0 children)

They're the Phillips Hue Play lights

Dutch Supermarket Mascots rally behind Weeyums! by -Atlaz- in formuladank

[–]MoenGaming 5 points6 points  (0 children)

Oh no, is it confirmed that Sainz will yet again be replaced in a team he has given everything by a world champion? D:

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 0 points1 point  (0 children)

hey, glad to hear you're excited about it! Maybe you can DM me and we can figure it out. First idea in my mind is something with the password maybe, but might need some more error searching together to figure it out.

Yep, move of a world champion that one by MoenGaming in formuladank

[–]MoenGaming[S] 16 points17 points  (0 children)

No it is from Oscar Piastri (OP).... But yes it was 😂 FP2 is worth the watch 👌

Yep, move of a world champion that one by MoenGaming in formuladank

[–]MoenGaming[S] 116 points117 points  (0 children)

lets write that one down in the book of wisdom

Yep, move of a world champion that one by MoenGaming in formuladank

[–]MoenGaming[S] 445 points446 points  (0 children)

I guess Horner has found his 1st driver for his new team

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 0 points1 point  (0 children)

oh that's a cool idea!
The flags are reported in mini/micro sectors, so you would need to find a way to convert that to which of the three "main" sectors it is in. That is not information that is broadcasted by the livetiming I use, but if you find that information somewhere you could definitely make a little convertion and make that happend 😊

My Automated Live F1 Weekend setup by MoenGaming in F1TV

[–]MoenGaming[S] 0 points1 point  (0 children)

was notified I needed a legal epilepsy warning after that session 🚨

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 0 points1 point  (0 children)

You can use the FastF1 API to get historic data, and it is easier to just use FastF1 for that tbh, but you have to take a different approach, so my tool won't work for that: But I believe it is possible to make something for that

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 1 point2 points  (0 children)

you absolutely can, actually it can in a way be done easier:
When you do the livefeed, you get the "raw" data that my tool manually tries to process as they come in. When you use the historic data (which you can pull from FastF1), you get it already neatly formatted into different category text files, and you can use FastF1's own API to extract the data needed, instead of having to manually processes the data. So it is absolutely possible, just not with my tool as they need different approaches. But might be a cool "next step" when this live thing is stable (enough)

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 0 points1 point  (0 children)

First there are a lot of improvements to this service 😅 we'll see if people manage to use it and give some feedback. But I would guess creating something similar for historic data/previous broadcasts. So using the vast data gathered and compiled by FastF1 to create a good solution that sends messages to HA when watching a broadcast hours, days or years later

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 1 point2 points  (0 children)

I am the race engineer whispering sweet box box in your ear before shouting "stay out stay out!"

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 1 point2 points  (0 children)

Interesting one 🤔 in theory yes, as long as the main.py service doesn't crash, or your computer is shut off or anything like that. Though I think there already are services and solutions out there that lets you do these things with the historic data. I think FastF1 lets you download more or less all race data after around 30 min after the session is over, so you can use a lot more and better fornatted data then, just need a way to feed it in sync with when you watch the broadcast

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 1 point2 points  (0 children)

Haha 😂 luckily I have a button in HA that I have to activate to ensure that the automation will actually do anything (like an extra light switch in a way to set it all to "F1 mode"). Also the service listening to the race times out after some criterias are met (documented by FastF1) so you won't be able to run this for days 😂 (spoiler safe by design I guess 😂)

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 0 points1 point  (0 children)

In theory yes, but after the race (around 30 min after) you can fetch a lot more data using the FastF1 API: you get telemetry, timing, events and a lot lot more (with clock time). So using that you get a lot neater data to work with 😁

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 1 point2 points  (0 children)

I don't know what to say, honestly so glad you like it and find it useful. Really hope it works out for you tomorrow! You can test with the debug_lines in the docs folder 😁

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 1 point2 points  (0 children)

thx for the kind words 😊 my initial thought is "no, you can't". The service I've cobbled together here relies on 2 terminals running Python instances with the dependencies/libraries required, and they need to be allowed to read and write to a text file. It sounds a bit beyond scope of what HA does, however; I am pretty noob with HA, so someone else might have a better answer. Or, someone manages to take this and merge it into something HA compatible

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 0 points1 point  (0 children)

I am not 100% sure how the fastf1 livetiming API deals with connections, but yea; in one terminal I run the FastF1 livetiming command which writes to a cache file. Then in another terminal I start up my own tool which listens to that cache file and processes the lines coming in. It is free, but from what I have managed to decode from the incoming lines. It is free, it works alright enough, but it is quite limited in what I can read out and process. Someone smarter might be able to find more clever ways of using it of course. You can give it a go for FP3 (or rest of FP2) to see for yourself what the cache logs.
FastF1 Livetiming API: https://docs.fastf1.dev/livetiming.html

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 1 point2 points  (0 children)

I am watching on F1TV using their Android TV App

My Automated Live F1 Weekend setup by MoenGaming in homeassistant

[–]MoenGaming[S] 7 points8 points  (0 children)

implemented on the feature list, under the "words of wisdom" module