Volvo API playground
- 5 Devlogs
- 11 Total hours
Recreation of Volvo apis made to simplify developing and testing apps that isn’t static
Recreation of Volvo apis made to simplify developing and testing apps that isn’t static
centralLock is called carLocked in the docs. The docs seem to be outdated. I think the OpenAPI specification is more accurate and contains fewer errors.datetime function from pythonI had a 2 days off because I was on school trip but I back. Next thing on my list is an updated dashboard
Devlog
You can edit data through the dashboard now. It’s not the best solution, and I want to change how it works (probably start from scratch), but not now.
Diagnostics endpoints.
I had a very good time with them today. Why? Because of the “/diagnostics” docs. I attached a screenshot showing an example from the official website and data from a real car (left: real API, right: docs).
If you look at them, you can see two errors and one very small issue that you would only notice if you read the whole documentation:
In serviceWarning, you can see the value is NORMAL, but NORMAL is not a valid value for it. It should be NO_WARNING. This is the small one.
In engineHoursToService, the API response contains a unit, but the docs don’t mention it at all.
And the worst one (and the only real error): there is no information about washerFluidLevelWarning in the docs, but it appears in the data from the car.
What do you think I should do? Should I write to them about it? I think you can comment on the post, so let me know what you think.
Devlog
Funny thing is that Volvo sends in what unit the data is, but the docs say that only metric units are valid, so it really sends always the same unit. Most likely they wanted to add imperial later, or they left it like this for simplicity.
For now, it’s using polling every 5 seconds (I have planned to change it to WebSocket). It only displays some information and can’t edit anything.
Also, I wrote some HTML and JavaScript. I never liked web development, so I don’t know a lot (I’m learning while I code 😅). It could be that it will look very rough till the end because I don’t have any patience for HTML and CSS.
I “will” do it when I have a very good day, or AI will do it? I would like not to use AI in this way, but I will see.
Edit: Forgot to push the updated version to GitHub I will do it tomorrow because it’s late (it’s tomorrow )
Devlog
It was also a frustrating day because I repeatedly forgot to save my code before testing (my bad).
A photo of the error that cost me way too much time today. (I changed it to “/vehicles/{VIN}/engine-status”, but I didn’t save the file.)
I setup my codespace and started working on first few endpoints. Additionally I looked how most of Volvos apis looks that gave me direction to go. That was all time I had today. Also I could add screenshot here because of macOS :(