Uhm yeah do you know where to find the api for that?
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
Terrible situation, needs to be fixed ASAP!!!
To bad, maybe if some more people watch WEC we get a free API
But thanks for looking.
Check out v0.1.6
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.
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 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.
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.