client-cemaden is a client application for the Cemaden Web Service to retrieve rainfall measurements and water levels from physical sensors, storing them into PostgreSQL database. Camden (National Center for Monitoring and Early Warning of Natural Disasters) is a Brazilian agency responsible for monitoring natural hazards.
- python 2.7 or greater
- libraries available in the
requirements.txt
file - PostgreSQL 9.5 or greater
- PostGIS 2.0 or greater
$ git clone https://github.com/sidgleyandrade/client-cemaden.git
-
To create a database with the extension postgis. It is not necessary to create tables, client-cemaden will create the tables from the config file parameters (
segup.cfg
). -
To configure the connections in the
setup.cfg
file, as follow:- Bounding box connection
[connection_name] connection.url=url_cemaden connection.station_type=sensor_type csv.folder=csv_folder (import csv files when available) database.host=MyHost database.schema=MySchema database.name=MyDatabase database.table=MyTableName database.user=MyUserName database.password=MyPassowrd
Note: Cemaden Web Service documentation is available here.
$ chmod +x run.sh
$ ./run.sh
See issues.
If you believe you have found a bug, or would like to ask for a feature or contribute to the project, please inform me at sidgleyandrade[at]utfpr[dot]edu[dot]br.
This software is licensed under the GPLv3.