Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/birneamstiel/track-the-inspector
Visualize the position of recent ticket inspector reports in Berlin.
https://github.com/birneamstiel/track-the-inspector
flask mapbox public-transportation telegram
Last synced: 3 months ago
JSON representation
Visualize the position of recent ticket inspector reports in Berlin.
- Host: GitHub
- URL: https://github.com/birneamstiel/track-the-inspector
- Owner: birneamstiel
- Created: 2018-10-15T11:49:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:27:22.000Z (about 2 years ago)
- Last Synced: 2024-01-28T17:10:02.891Z (11 months ago)
- Topics: flask, mapbox, public-transportation, telegram
- Language: Python
- Homepage: https://mtin.de/inspector
- Size: 72.3 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Track the Inspector
## Setup
first, make sure you have pipenv isntalled (`brew install pipenv` if on MacOS) or have a look [here](https://docs.pipenv.org/install/) and clone the repo
### Running the backend locally
``` bash
cd Track-The-Inspector/
pipenv install
export FLASK_APP=server.py
pipenv run flask run
```### Installing the telegram bot locally
`cd Track-The-Inspector/bot/src`
`pipenv install`
afterwards, create a `.env` file in the `src` directory to store the telegram api key: `echo TELEGRAM_API_KEY= > .env`
run the bot using `pipenv run python bot.py`