mirror of
https://github.com/ogdch/ckanext-meteoswiss.git
synced 2026-08-25 21:54:26 +00:00
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%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| ckanext | ||
| scripts | ||
| .gitignore | ||
| .travis.yml | ||
| build.sh | ||
| LICENSE | ||
| pip-requirements.txt | ||
| pre-commit.sh | ||
| README.md | ||
| setup.cfg | ||
| setup.py | ||
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.shscript 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