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
Sorry… RTFM I guess, wasn’t aware of the weather API. Thanks again
no need for sorry to me, you wasted mostly your own time
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
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
thanks, not exactly what i thought, but maybe even better
Can you please share the code for the title . It looks great !
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
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;
}
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
top banner is picture entity card
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