KNMI-FA is a function app which contains the following functions:
- GetActualTenMinSynopticData: Queries the KNMI API every 10 minutes to get the latest synoptic data files, list through them and store them locally
- KNWToSQL: Triggers when KNW CSF files land in a storage account and stores the KNW data in a postgres database. For info on the dataset see the API docs
Create a virtual environment for the project with e.g. pyenv.
pyenv virtualenv knmi-fa
pyenv activate knmi-fa
Afterwards install dependencies with
make install
If you add, remove or update dependencies, make sure setup.py
is updated and run
make requirements
to regenerate the requirements file.
Tests for this project use pytest and can be run with
make test
after installing the requisite dependencies.
This repository uses various methods to maintain a consistent level of code quality. When adding a new feature or upgrading an existing one make sure to check the flake8 and mypy reports with
make lint