A simple telegram bot that describes current weather (currently for Otaniemi, Espoo) and predicts the "beautifulness" of the day using previously learnt data.
Currently only works on x86 only because of Prisma binaries (tested on Linux)
For development you need:
- pipenv
- Python 3.11 is required in the Pipfile, highly recommended
- A free API key from OpenWeatherMap
- A Postgres database (local/remote)
- A TG bot API key
-
Install dependencies:
pipenv install --dev
-
setup environment variables inside
.env
-
generate Prisma binaries:
pipenv run generate
-
setup database:
pipenv run db push
-
to start dev environment run:
pipenv run dev
For production you need (or is recommended at least):
- Docker
- A free API key from OpenWeatherMap
- A Postgres database (local/remote)
- A TG bot API key
-
Build the image:
docker build -t paivabot .
-
setup environment variables inside
.env
-
Run the image with
.env
as the env-file:docker run -d --env-file .env paivabot