delzear / hass-formulaoneapi

Formula One API Integration Into Home Assistant
53 stars 10 forks source link

Max verstappen carnumber still 33 #31

Closed mhoogenbosch closed 2 years ago

mhoogenbosch commented 2 years ago

The car number of max has changed to 1 this year. This isn't reflected by the list. Is this a static number?

huizebruin commented 2 years ago

Because this addon getting his information from this site. http://ergast.com/mrd/ and max his Permanent Number is 33 http://ergast.com/api/f1/2022/drivers

mhoogenbosch commented 2 years ago

Nothing to do about it then, i'll close the issue.

EvertJob commented 2 years ago

@huizebruin maybe it's possible to get the information from last year: http://ergast.com/api/f1/2021/driverStandings

@delzear

@mhoogenbosch I've changed the line: <td> {% if (driver.Driver.permanentNumber == '33')%}1{%else%}{{driver.Driver.permanentNumber}}{%endif%}</td> Just change the permanent number from the campion previous year ;)