Vehicle MOT Data Visualiser 🚗 #993
samwilson1198
started this conversation in
2025 Plotnine Contest
Replies: 1 comment
-
|
Updated to include a Streamlit app so you can use this for any UK vehicle, without applying for your own API credentials! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Plot
Authors
Sam Wilson
Links
LinkedIn, GitHub
Full description
This code takes any UK vehicle registration number and generates a visualisation of its MOT history data using Plotnine.
The example above is my car (yikes, I know), and the attached repository contains the data to recreate four additional examples, showcasing the flexibility of the code.
For using the code to visualise MOT data for other vehicles, you'll need API credentials (available for free at: https://documentation.history.mot.api.gov.uk/).
I made this because I wanted to try out Plotnine (frequent R user), I like cars, and the UK GOV MOT history checker isn't very easy to read (long list of text, drop-down boxes, etc.). The code is fairly straightforward; the most challenging part was making it flexible enough to adapt to different vehicle information, ensuring the resulting static visualisation makes the best use of space.
Code repository
https://github.com/samwilson1198/vehicle_mot_visualiser
Update [10 OCT 2025]
I created a simple Streamlit app so that this tool can be used quickly and easily, without having to apply for API credentials. The app is build on the exact same code shared in the project repository, and uses Plotnine to construct the visualisation, which can be downloaded as a PNG file.
https://motvisualiser.streamlit.app/
Beta Was this translation helpful? Give feedback.
All reactions