Open Source application that gathers real-time data about traffic and Nitrogen Dioxide pollution around Dublin, Ireland. Results are merged and stored into a MySQL database.
In order to use the application, some previous configuration has to be done. It includes both creation and configuration of prerequisites and tuning of the main configuration file.
This application uses a MySQL database to store the data collected, and it has to be configured for that use. At the same time, data is collected from OpenSensorWeb.de and TomTom, so you also have to register in TomTom to get an API key.
Read more about database configuration in the dedicated document.
In order to gather real-time traffic from data, an API Key from TomTom has to be used. More information about it can be found in the official website.
Once you already have a valid API_KEY
, you have to modify the file src/config/tomtom.json
(before building) or dist/config/tomtom.json (if the code has already been built).
Areas can be configured manually in the src/config/areas.json file. This document includes the list of areas covered by the application, including both the coordinates used for the traffic service and the sensor identification.
As long as sensors are available (which should be at least in Europe thanks to the European Environmental Agency), this code can be exported to anywhere in the world. You can also experiment with other kind of sensors that gather other pollutants in air like O3, CO, SO3, as they use very similar APIs. Feel free to do so!
npm install
npm run test:coverage
npm run build
npm run start
Feel free to add issues or to create pull requests. Help is always welcome.
SemVer is used for versioning. For the changelog, see CHANGELOG.md.
- Marc Solé Fonte - Initial work - msolefonte
This project is licensed under the Apache License, Version 3.0 - see the LICENSE file for details.