Comments (4)
Hi both. I haven't delved into the API for a while but if it's true that they aren't surfacing the car on a by week basis, this one is going to be very tricky to resolve! My first instinct is to create an override for this fringe case, but I also believe I didn't write the data architecture with this case in mind:- to show a different car for a given series.
A quick fix would be to override the car for this series with a message like "Week by week" and a modal, which when you press, it explains that the car changes each week and to check iRacing for more detail. Unfortunately this won't be very useful for a user of the IWP, but I think it's better to be honest than wrong.
I've just got back from holiday so I'll spend some time over the next couple of days exploring the API and my own data architecture to see if I can come up with a decent way of dealing with this.
from iracing-week-planner.
This is now done with a manual override, and I've added a car column onto the series view. Moving forward will have to manually update the car list but this isn't super onerous, and if I forget then it'll revert back to it's week 1 behaviour until I get around to it
![Screenshot 2023-12-12 at 17 23 38](https://private-user-images.githubusercontent.com/985557/289950162-03987b05-0f0b-45de-a821-fe08991f4869.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NzcxMTcsIm5iZiI6MTcxODk3NjgxNywicGF0aCI6Ii85ODU1NTcvMjg5OTUwMTYyLTAzOTg3YjA1LTBmMGItNDVkZS1hODIxLWZlMDg5OTFmNDg2OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMVQxMzMzMzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mOGVkMzJhZDQ2YWE1MDI5Y2NjMzIyZTRiN2RjMDY0ZGE3M2Q2ZTBjNTdjNTk2MDRhNTA2ZTcwNzVmZDI4ODM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.jh0DDtFwyk_o-9TrKHrmeCLfKLapzP0SrKaJk-aWgjY)
from iracing-week-planner.
The problem here is, that iRacing is not providing this information in there API upfront. And they haven't designed there System to provide different cars each week, so they manually change that car for the serie. That means the data needs to be pulled every week.
And I'm not sure but the last time I had a look in the code of iRacing-week-planner there were no possibility to show cars in the specific order.
Just a explanation from my side why it is like that 😅
from iracing-week-planner.
@Firewolf1337 Thank you for your explanation.
I feared that. But showing the current car would certainly be better than showing the car from week 1 in week 11 ;-)
Maybe the added value would justify the additional reading, right? At least until iRacing is able to provide the right car for each week 😅
from iracing-week-planner.
Related Issues (20)
- Alphabetise owned tracks/cars list to match iRacing UI
- Create Week Plan view
- Wrong track for LMP2 Prototype HOT 1
- Integrate Sign-In with Google HOT 1
- Add a way of updating owned lists when new free items are added HOT 3
- The count isn't working as expected for the purchase guide
- DraftMasters Car List HOT 2
- Update Design
- IMSA Sportscar Championship schedule change HOT 1
- npm start = errors HOT 1
- Purchase Guide not working on the website HOT 1
- Missing translations
- scrapeData script is not working since iRacing added a recaptcha on login page HOT 4
- Feature idea : Get a view of choosen races session to prepare a week or add to calendar button.
- Add: seasonfilter HOT 1
- Races for VRS Global Endurance Series are not available HOT 3
- Add translation: Catalan
- Updated data for 2022S1, help needed? HOT 1
- Migrate to new iRacing data API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iracing-week-planner.