Get a real-time estimate on the risk level of a road. Estimates are based on weather conditions and certain road characteristics.
Note: You can skip the second step, and try this project only in Demo Mode
-
You need to have Docker
-
You need to have these API keys:
There are two modes of execution:
- Demo
- Default
In this mode, you can try the project using fake weather data, and you do not need API keys.
You just need to make sure that the contents of /pipeline/python/input_data/execution_mode.txt is Demo
-
Create a new directory called keys inside /pipeline/python/
-
Create these files inside the new directory:
- OpenWeather_key.txt
- TomTom_key.txt
-
Insert your personal API keys into these files
-
Change the contents of /pipeline/python/input_data/execution_mode.txt to Default
-
Change the contents of /pipeline/python/input_data/addresses.txt to set up the addresses you want, every address must follow this format:
- Name of the Road # other info
Inside the txt file, there are two examples: the first line is a US address and the second one is an Italian address
-
Open Docker Desktop
-
Go to /pipeline and execute the command docker-compose -f pipeline.yml up --build
-
Go to Kibana If it does not work, wait a few minutes and try again.
-
You need to do this only the first time you run this project:
Import the file /pipeline/kibana/objects.ndjson
-
To view the dashboard follow these steps:
Example with Italian roads: