The application allows to collect and process weather data in order to calculate Fire hazard index for forests in Gomel region (Belarus)
-
Clone repository with the following command
git clone https://github.com/ADv0rnik/weather_collector.git
-
Run
pip install -r requirements.txt
in your virtual environment -
Run
python manage.py runserver
command to run server on the local machine -
The weather-collector is using Celery together with RabbitMQ to manage async tasks. Run the following commands:
docker run -d -p 6379:6379 redis
celery -A config worker -l info
celery -A config beat -l info
- To trigger the worker go to https://127.0.0.1:8000/. You are going to see "Loading data..." message