Skip to content

Azure Function App to be used to connect to KNMI APIs and acquire data at regular intervals

License

Notifications You must be signed in to change notification settings

qdegraaf/KNMI-FunctionApp

Repository files navigation

Tests & Coverage codecov

Introduction

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

Dependencies

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

Tests for this project use pytest and can be run with

make test

after installing the requisite dependencies.

Code Style & Strength

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

About

Azure Function App to be used to connect to KNMI APIs and acquire data at regular intervals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages