Formula One Card

Experienced the same yesterday, works now. I guess it goes down when everyone is spamming the api.

i only have 'schedule ’ missing data, that the current state or is it me?

Guys, please read this thread before asking questions

Marco, did you try the ESPN feed? Teamtracker is using the feed aswell

Hi, Marco.
It’s not just historical data. I tried some calls and the data is updated to this Bahrain GP, ​​it seems to be very good.
There are also updated results after 24 hours of the free practice sessions, the only GET calls that don’t seem to work well are those with “latest” id while those with explicit id work.

Which urls did you try?
The documentation only gives me unusable urls

For example this is last session https://api.openf1.org/v1/sessions?session_key=latest

Ps:
They fix “latest” now it work.

They provides driver positions throughout a session, including initial placement and subsequent changes…this is Charles in race session:
https://api.openf1.org/v1/position?session_key=latest&driver_number=16

The same result you can get it in CSV format by adding &csv=true
Example:
https://api.openf1.org/v1/position?session_key=latest&driver_number=16&csv=true

Yeah thats what I said, historical data :stuck_out_tongue:
Its not giving me future events so its useless unfortunately

You’ve right, but read this OpenF1 API | Real-time and historical Formula 1 data

There are great hopes! :slightly_smiling_face:

Short term (early 2024)

  • Add data from previous seasons (2018-2022)
  • Race and championship standings, schedules, and starting grids.

Someone even asked this and the answer was good!

Indeed! Lets hope its before the next race

We hope! Meantime the schedule, next race and countdown are still not working in Formula One card… :sneezing_face:

Next race is working for me, since today.
Also the countdown is kind of working. all events (training, quali, race) happen at the same time :wink:

1 Like

Is this for showing? Because if not, you can combine the countdown cards

How do I combine them? If I check the checkboxes for the practices etc. and save it, it doesn’t save the state of them

That is my problem exact.
I don’t know how to do that in the editor
I now have this:

  • type: vertical-stack
    cards:
    • type: custom:formulaone-card
      card_type: countdown
      title: training 1
    • type: custom:formulaone-card
      card_type: countdown
      title: Training 2
    • type: custom:formulaone-card
      card_type: countdown
      title: Training 3
    • type: custom:formulaone-card
      card_type: countdown
      title: Kwalificatie
    • type: custom:formulaone-card
      card_type: countdown
      title: De race

Use

countdown_type: race,qualifying,practice1,practice2,practice3,sprint

Don’t forget the translations for the events

thanks, that helped a lot :wink:

I can’t get them all in 1 card, but now my 5 cards give the right countdown time

Like this

- type: custom:formulaone-card
  card_type: countdown
  countdown_type: race,qualifying,practice1,practice2,practice3,sprint
  show_raceinfo: true
  f1_font: true

If you want keep split cards i suggest you this:

* type: vertical-stack
cards:
  * type: custom:formulaone-card
card_type: countdown
title: training 1
countdown_type: practice1
  * type: custom:formulaone-card
card_type: countdown
title: Training 2
countdown_type: practice2
  * type: custom:formulaone-card
card_type: countdown
title: Training 3
countdown_type: practice3
  * type: custom:formulaone-card
card_type: countdown
title: Kwalificatie
countdown_type: qualifying
* type: custom:formulaone-card
card_type: countdown
title: Sprint
countdown_type: sprint
  * type: custom:formulaone-card
card_type: countdown
countdown_type: race
title: De race

If you want just one card this is my config (of course free feel to change translations :slight_smile: :

- type: custom:formulaone-card
        card_type: countdown
        f1_font: true
        title: Prossima Sessione
        countdown_type: practice1,practice2,practice3,qualifying,sprint,race
        translations:
          practice1: FP1
          practice2: FP2
          practice3: FP3
          sprint: Sprint
          qualifying: Qualifiche
          racetime: GP
          endofseason: Stagione Finita!
          days: g
          until: a

@marcokreeft87 I don’t know why but in the Race countdown the translation isn’t shown, even if you remove it it doesn’t show “to race”.

Edit: By declaring them like this the translation works, but not yet for the race

countdown_type:
          - practice1
          - practice2
          - practice3
          - qualifying
          - sprint
          - race

There seems to be a bug in that. Try race for translation key