Harvester for the Federal Office of Meteorology and Climatology MeteoSwiss | Read-only mirror of https://github.com/ogdch/ckanext-meteoswiss — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 93.9%
  • Shell 6.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2014-02-17 14:49:28 +01:00
ckanext Fix PEP-8 code styling 2013-12-19 17:21:32 +01:00
scripts Fixed name of meteoswiss harvester in daemon script 2013-09-09 09:31:57 +02:00
.gitignore initial commit 2013-08-12 13:36:01 +02:00
.travis.yml Added travis build. 2014-02-17 14:49:28 +01:00
build.sh Added travis build. 2014-02-17 14:49:28 +01:00
LICENSE Add LICENSE and README 2013-09-13 20:30:20 +02:00
pip-requirements.txt Added travis build. 2014-02-17 14:49:28 +01:00
pre-commit.sh Setup for PEP8 code style checks 2013-12-19 17:08:31 +01:00
README.md Setup for PEP8 code style checks 2013-12-19 17:08:31 +01:00
setup.cfg Setup for PEP8 code style checks 2013-12-19 17:08:31 +01:00
setup.py remove unused commands 2013-08-26 17:40:27 +02:00

ckanext-meteoswiss

Harvester for the Federal Office of Meteorology and Climatology MeteoSwiss

Installation

Use pip to install this plugin. This example installs it in /home/www-data

source /home/www-data/pyenv/bin/activate
pip install -e git+https://github.com/ogdch/ckanext-meteoswiss.git#egg=ckanext-meteoswiss --src /home/www-data
cd /home/www-data/ckanext-meteoswiss
pip install -r pip-requirements.txt
python setup.py develop

Make sure to add meteoswiss_harvest to ckan.plugins in your config file.

For development

  • install the pre-commit.sh script as a pre-commit hook in your local repositories: ** ln -s ../../pre-commit.sh .git/hooks/pre-commit

Run harvester

source /home/www-data/pyenv/bin/activate
paster --plugin=ckanext-meteoswiss meteoswiss_harvest gather_consumer -c development.ini &
paster --plugin=ckanext-meteoswiss meteoswiss_harvest fetch_consumer -c development.ini &
paster --plugin=ckanext-meteoswiss meteoswiss_harvest run -c development.ini