1 KiB
1 KiB
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
Code Quality
This project uses Ruff for linting and formatting.
Available commands:
make lint
make format
make lint-fix
make check
make clean
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