Formula One Card

Thanks! That did the trick.
EDIT: you can keep show_team and show_teamLogo: true the show_flag is the culprit.

may be well wide of the mark here, but is this of any use around replacing the Ergast API…

Backward compatible sounds like easy migrate indeed. 200 requests per hours is sufficient also.

Nice! I tried the api, and is seems to do the same as ergast. But they need to make some changes to it for the card. They need to add some response headers.

3 Likes

I see those headers were specifically added 3 weeks ago

not sure if this would be the reason.
There are ways to work around CORS

but this either means a proxy or browser change which I imagine wouldn’t be ideal.

Well if that has been added. It doesnt work haha. So my bug is valid :stuck_out_tongue:

I mean the other way around,
this seems to be specifically added to avoid other webpages from using the API.
(for as far as I understand python)
it only allows https://jolpi.ca
this ofc could also be a mistake.

Would be weird to create an API that nobody can use

Nooo, that’s not the idea. Who pay’s, can use… :stuck_out_tongue: That’s the idea… F1 at it’s best :smiley:

1 Like

You could use it. Using the desired Origen or from a non webclient.

For payment you usually use access tokens or something. It’s far too easy to get around it.

Yes but the card makes call from your network through your browser. We have to wait for the developer

Cant you make the request go trhough HA integrations? The api is meant for back-end communcation and not from frontend as i see it.

Guys guess what? The developer of the API made a change and its now in Formula One Card!!
Check out version 1.9.3!

6 Likes

Hmm only driver standings isnt working… let me check

1 Like

This should be fixed now :slight_smile:

5 Likes

Really really cool there is a new api which works. All others had their shortcommings. And really really lovely you keep pushing this card. I won’t say i look at it daily but during the race weekend and a few times during discussions with my sons i check it. Thanks a lot!

3 Likes

So I have a little bit more time now. Looking for cool new features for the card. Best ideas become reality. Shoot!

3 Likes

Hey, track layouts are back for me. :grinning:

Yeah caches expire so eventually a new version must be acquired :slight_smile:

Hi,

When I use the Lcars theme, I get an error and HA goes into a loop. If you have time, can you look at what is interfering with your code.

The following code in the theme is causing the problem.

      ha-card, ha-card > * {
        --lcars-horizontal-border: {{ states('input_number.lcars_horizontal') if has_value('input_number.lcars_horizontal') else 10 }}px !important;
        --lcars-vertical-border: {{ states('input_number.lcars_vertical') if has_value('input_number.lcars_vertical') else 35 }}px !important;
        --lcars-middle-vertical-border: {{ states('input_number.lcars_vertical') if has_value('input_number.lcars_vertical') else 35 }}px !important;
      }

Theme: