Formula One Card

Hi @BebeMischa, I like the detailed “Next race” view you have there (weather, time, etc.). Can you share your YAML code?

      - type: custom:formulaone-card
        title: Next race
        card_type: next_race
        date_locale: nl
        show_raceinfo: true
        show_weather: true
        show_refresh: true
        weather_options:
          api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxx
2 Likes

Sorry… RTFM I guess, wasn’t aware of the weather API. Thanks again

1 Like

no need for sorry to me, you wasted mostly your own time :stuck_out_tongue:

1 Like

i like this card, just wish it was a integration too to provide sensors, but I make do

2 Likes

If you look back in the topic you can find how to use the api as a sensor. But you will have to replace the url with Race List – Django REST framework

2 Likes

I would simply like the countdown under the text “Next Race,” but I can’t get it to work. Can you help me? This is the code I inserted for the first card.

I tried this way, but two cards and two flags appear. I only want the countdown.

type: vertical-stack
cards:
  - type: custom:formulaone-card
    card_type: countdown
    standings:
    show_flag: false
  - type: custom:formulaone-card
    f1_font: true
    title: Prossimo GP
    card_type: next_race
    date_locale: it
    show_raceinfo: true
    show_weather: true
    show_refresh: true
    weather_options:
      api_key: 3V22RVM8HSZG7JZULZCGW669R
    translations:
      date: Data
      practice1: Prove libere 1
      practice2: Prove libere  2
      practice3: Prove libere  3
      race: Gara
      racename: Nome Gara
      circuitname: Nome Circuito
      location: Luogo
      racetime: Gara
      sprint: Sprint
      qualifying: Qualifiche
      endofseason: Stagione finita
  - type: custom:formulaone-card
    card_type: last_result
    sensor: sensor.formula_one_sensor_last_result
    title: Ultimo GP
    f1_font: true

Try this:

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

thanks, not exactly what i thought, but maybe even better :wink:

Can you please share the code for the title . It looks great !

1 Like

I’d like to create an automation that notifies me before each session. Is this possible? How do I get the countdown data?

Hi,
Check here:

And here:

I’m not sure if it still works with those APIs maybe @marcokreeft87 can confirm this or not.

It seems to me that the API is not working, I cannot get it to return any data

it’s all in this thread already…the original API went EOL but another one took it’s place see post 369 and next few posts.

Update the automations with the URL in the posts you were linked to (two above) and those automations, etc should work for you

2 Likes

I removed the race name and flag with cardmod, not sure if this works in a vertical stack.

card_mod:
  style:
    .: |
      ha-card h2{
        display: none;
      }
1 Like

Hi All,

I would love to be able to check quali results the night they come in, but the results card doesn’t show anything when the race hasn’t been completed. I see that a while ago this was requested and has been apparently been fixed. Is the issue only that the season “hasn’t begun yet” and no standings exist?
That is to say, from the next race on will it be possible to check or is this feature no longer working?

Ive created an issue with the guys from the API. All we can do is wait

Appreciate your help, thanks :slight_smile:

top banner is picture entity card

f1banner1

code for this is

type: picture-elements
image: /local/f1banner1.png
elements:
  - type: image
    entity: sensor.richard_not_home
    image: /local/f1banner1.png
    style:
      left: 50%
      top: 50%
      width: 100%
  - type: custom:formulaone-card
    card_type: countdown
    f1_font: true
    image_clickable: false
    show_carnumber: false
    location_clickable: true
    show_raceinfo: false
    hide_racedatetimes: false
    only_show_date: true
    previous_race: hide
    row_limit: 1
    card_mod:
      style: |
        ha-card {
          margin-top: 14px;
          font-size: 20x; !important;
          font-color: black; !important;
          text-shadow: 0px 4px 7px rgba(0,0,02,1) !important;
          background-color: rgba(0, 0, 0, 0.0) !important;
          border: none !important;
          margin-right: 15px;
          margin-left: 15px;
          width: 27%
    style:
      left: 116%
      top: "-1%"
      width: 80%
      backdrop-filter: blur(10px) saturate(100%);
grid_options:
  columns: full

The rest is just sections layout with the std cards

ANy idea why last result and standings card do not show for me on the phone app when connected to wifi? It works well with LTE and it works well on my PC connected to the same network. I do not use pihole or anything that could block cards from my network.