F1 Live Timing Map
The Web Dev Zone is brought to you in partnership with Mendix. Discover how IT departments looking for ways to keep up with demand for business apps has caused a new breed of developers to surface - the Rapid Application Developer.
It’s interactive, you can press over a driver to track him or press into an empty map zone to untrack and have a general view.
It has also been made with a responsive design to adapt it to mobile browsers using jquerymobile framework.
How it works:
- The client side:
Until the race start date a countdown and a demo race is showed.
When the countdown finishes it will connect to server (using ajax) to get the live timing data from server (every five seconds) and the interface will be updated using this data.
- The server side:
It uses a Django app for the web page and the static race data (circuit, laps, drivers) is put into the html using the django template system.
For the dynamic data (live timing) I have modified the source of a C program for the linux terminal called live-f1 to generate a json with the data that the client requires instead of printing it on terminal screen.
Enjoy the race!