No description
.gitignore | ||
.python-version | ||
Dockerfile | ||
main.py | ||
Makefile | ||
pyproject.toml | ||
README.md | ||
template.liquid | ||
uv.lock |
trmnl weather & pollen report
a custom trmnl plugin that fetches and displays weather and pollen data.
setup
-
set up a virtual environment and install dependencies:
python -m venv .venv source .venv/bin/activate uv sync
-
set required environment variables:
export WEATHER_API_KEY="your_openweathermap_api_key" export AUTH_TOKEN="your_chosen_auth_token"
-
run the application:
fastapi run main.py --port 8887
development
install development dependencies
make dev-install
docker
build and run with docker:
docker build -t trmnl-report .
docker run -p 8887:8887 -e WEATHER_API_KEY=your_key -e AUTH_TOKEN=your_token trmnl-report
api
access the api at http://localhost:8887/?token=your_auth_token