Update CROW Rounds - Amsterdam/schoonmonitor GitHub Wiki
- Download the project:
git clone https://github.com/Amsterdam/schoonmonitor.git
- go to crowdownloader, install requirements and run
cd crowdownloader
pip install requirements.txt
python downloadRounds.py results
-
copy new files to objectstore dataservice_extern with FileZilla and solve moved columns issue in new rounds.
-
Go to importer
-
start a docker postgres db by using:
docker-compose build database
docker-compose up database
Docker way (fastest)
- Add password for login to objectstore
export EXTERN_DATASERVICES_PASSWORD=####
6 start importer
docker-compose build importer
docker-compose up database
Or use the non docker way
Create auth.conf file with use of the example file for objectstore login credentials
- Run objectstore downloader
python download_from_objectstore.py dev data
- Run importer to PG
python load_xls_pg.py dev data
5 Run additional sql (add area codes)
python additional_sql.py dev
-
Open DBeaver and save crowscorestotaal as CSV with ; and header
-
Open Tableau dashboard and replace data source with new csv.
-
Save