Formula One Card

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.

Hi F1-fans

I just found this integration and got the same error like justbaj. the sensors show up, but it seems that they dont get updates. maybe its just a temporary problem that they dont get data from the server.

UPDATE: seems to be working again, very nice :wink:


all the best

Andrew

yes it’s working again.
probably it was a problem with the API behind the integration and frontend card.

I’ve just tried to get this setup for the first time and I’m getting the following. Looks like this has happened before and was an issue with the backend database. Can anyone confirm if this is working for them?

image

http://ergast.com/mrd/

Error establishing a database connection

this is indeed 3rd party issue… we’ll need to wait to this gets resovled

1 Like

Thanks for the response. It was entirely possible I didn’t set something up right.

what is the font you use? It looks great!

1 Like