Formula One Card

Uhm yeah do you know where to find the api for that?

I have found this Motorsport Stats Business - Products

But I’m not sure if it is a paid only API.

Scrape this?
https://fiaresultsandstatistics.motorsportstats.com/results/2022-8-hours-of-bahrain/classification/500e44ba-c472-459b-b493-2be66aa76fa4

Scraping is unreliable. So thats not an option. API would be the best but I cant find a free API for it

dont want to be an ass, but after last race, the card for next race is in error :slight_smile:

Terrible situation, needs to be fixed ASAP!!! :smiley:

1 Like

To bad, maybe if some more people watch WEC we get a free API :smiley:

But thanks for looking.

1 Like

Check out v0.1.6

1 Like

Nicely done sir

1 Like

I know the season is over but when i came across this i thought what the heck i need to have this for next season!

I have the markdown cards working perfectly but for some reason i cannot seem to get the formulaone-cards working. When i try i get: Custom element doesn’t exist: formulaone-card

I installed the api via HACS created the “formulaone-card.js” in the config/www/ folder and added the following to my config.yaml

##FORMULA ONE CUSTOM CARD
lovelace:
resources:
- url: /local/formulaone-card.js
type: module

What am i doing wrong here?

You need to refresh your cache

nope not that simple unfortunately error still persists

You have to install both Formula One API and Formula One Card, they are different HACS repositories.

When you do that HACS will handle registering the card as a custom component, so you don’t need to edit any files.

I’d remove anything you’ve done manually first to avoid conflicts.

2 Likes

Hi. Thanks for Formula One Api
This is my F1 page.
Using mushroom cards





2 Likes

What did you use from mushrooms cards ? Have a config yaml to share ? ( I’m trying te get nice mushrooms boards too for most of my dahses)

This is the topic for the card, not the API :stuck_out_tongue: Looks great tho

Hi. Sure. It is a lot of code. I can not paste it here. I am getting error. Send me priv message with your email. I will send you code and necessary pictures and fonts. If anyone else is interested priv message.

hi @marcokreeft87

I’ve installed the API and the the card but I still get an error.

What I have done so far:

  • my HA Version “2022.12.7”
  • installed your repo “delzear/hass-formulaoneapi” (V 0.1.9) with HACS
  • restart HA
  • add this line to the configuration.yaml
sensor:
  - platform: formulaone_api
  • restart HA again
  • installed the frontend card “FormulaOne Card” (V 0.1.6) with HACS
  • also checked the resource if it is available “/hacsfiles/formulaone-card/formulaone-card.js” in my dashboard

I’ve done everything like you described it, but when I add the cards for example like this, I’m getting an error:

type: custom:formulaone-card
card_type: next_race
sensor: sensor.formula_one_sensor_races
title: Next Race
date_locale: nl
image_clickable: false

the error is this one:

I’ve also tried to install it manually, but I get the same error.
Also clearing cache, did not solve the problem.

do you probably know what I can do to make it work?

thanks for your answer.

Do the api sensors show up in HA? sensor.formula_one_sensor_[…]
If not, something is wrong with the api configuration.