Formula One Card

It worked for Bahrain…I also tried removing the translation…let’s see on Saturday if it will appear somehow! :man_shrugging:t2:

For everyone where it still says end of season:
Ive made a Refresh cache button in version 1.9.0

4 Likes

Where can we find that button?

You have to enable it:

show_refresh: true

1 Like

Everything seems to be working except the Schedule that keeps showing “Error getting schedule”.

1 Like

Schedule is showing here just fine?

1 Like

@marcokreeft87 It would be great to have the results of the last session (http://ergast.com/api/f1/current/last/results)


and Qualifying http://ergast.com/api/f1/{{year}}/{{round}}/qualifying like this:

Qualifying is a bit tricky because it necessarily requires year and round…what do you think about it?

Found it. After clearing the cookies and site data for HA it is back.

2 Likes

Did you try the results card?

Yes, I hadn’t considered it because I don’t see the final times and I realized that only someone the 2023 one shows it:


If I try to play with the results and select the checkered flag and then changing to a GP that doesn’t have the final result causes a crash like this: Brazil GP


and then select for example Japanese GP


Try to do it.

Hi Marco, unfortunately I can confirm that the card (at least as regards mobile devices) has problems, if you want I can open an issue on git in addition to the one reported above. :pensive:

Can you share your config?

Yes:

title: F1
views:
  - title: F1
    path: f1
    icon: mdi:steering
    badges: []
    cards:
      - type: custom:formulaone-card
        card_type: last_result
        title: Ultima Gara
        f1_font: true
        row_limit: 10
        translations:
          points: Punti
          grid: Griglia
          status: Stato
      - type: custom:formulaone-card
        card_type: results
        title: Risultati
        f1_font: true
        hide_tracklayout: true
        row_limit: 10
        translations:
          points: Pts
          wins: Vit
          driver: Pilota
          team: Scuderia
      - type: custom:formulaone-card
        card_type: next_race
        title: Prossima Gara
        f1_font: true
        image_clickable: false
        location_clickable: false
        show_raceinfo: true
        hide_tracklayout: false
        hide_racedatetimes: false
        translations:
          date: Data
          practice1: Libere 1
          practice2: Libere 2
          practice3: Libere 3
          race: Gara n°
          racename: Gara
          circuitname: Circuito
          location: Luogo
          city: Città
          racetime: Gara
          sprint: Sprint
          qualifying: Qualifiche
          endofseason: Stagione Finita!
      - type: custom:formulaone-card
        card_type: countdown
        title: Prossima Sessione
        f1_font: true
        show_refresh: true
        countdown_type:
          - practice1
          - practice2
          - practice3
          - qualifying
          - sprint
          - race
        translations:
          practice1: FP1
          practice2: FP2
          practice3: FP3
          sprint: Sprint
          racetime: GP
          qualifying: Qualifiche
          endofseason: Stagione Finita!
          days: g
          until: a
      - type: custom:formulaone-card
        card_type: schedule
        title: Programma
        only_show_date: false
        hide_racedatetimes: false
        f1_font: true
        previous_race: strikethrough
        standings:
          show_flag: true
        translations:
          date: Data
          time: Ora
          race: Gara n°
          location: Luogo
          endofseason: Stagione Finita!
      - type: custom:formulaone-card
        card_type: driver_standings
        title: Classifica Piloti
        f1_font: true
        show_refresh: true
        row_limit: '15'
        standings:
          show_flag: true
          show_team: true
        translations:
          points: Pts
          wins: Vit
          driver: Pilota
          team: Scuderia

Could be because of the last row_limit: ‘15’.
Should be row_limit: 15.

Javascript should parse it to an integer, but wont hurt to try right?

Hello Marco,
thanks for the suggestion, even if it accept the value I still set it as integer, unfortunately the various behaviors remain the ones I reported…

I’m sorry but I cannot reproduce it


Look, there’s another problem here, you can’t select those icons, to solve it I have to go to edit and then confirm then I can choose between qualifying race and points

Yes thats cache for you

for ppl asking for motogp - this is the cloesest I could find

Perhaps someone is open in developing an integration

1 Like

Nobody was asking for motogp here?

1 Like