blokdata/README.md

39 lines
633 B
Markdown
Raw Permalink Normal View History

2020-05-13 00:22:29 +00:00
# Blokdata
Create [blokmap](https://github.com/zeuswpi/blokmap) data from a Google sheet.
## Installation
1. Setup python
```bash
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
```
2. Setup `config.ini` as follows
```
[Google]
SHEET_ID = #FILLMEIN
RANGE_NAME = #METOO
2020-05-13 16:20:20 +00:00
[Cache]
TIMEOUT = 10
2020-05-13 00:22:29 +00:00
```
3. [Request a Google service account](https://console.cloud.google.com/iam-admin/serviceaccounts)
4. Store the service account's key as `service_account.json`
5. Give the service account's email (read) access to the sheet
2020-05-13 15:43:56 +00:00
6. `./run_dev.py`
2020-05-13 00:51:34 +00:00
## TODO
- Error handling: it shouldn't ever crash on user input