No description
Find a file
2025-08-30 21:50:08 -04:00
.gitignore initial pass at pollen and weather data 2025-05-26 17:23:20 -04:00
.python-version initial pass at pollen and weather data 2025-05-26 17:23:20 -04:00
Dockerfile add docker config 2025-05-26 17:49:21 -04:00
main.py misc linting 2025-08-30 11:41:14 -04:00
Makefile WIP: linter setup 2025-08-30 21:50:08 -04:00
pyproject.toml WIP: linter setup 2025-08-30 21:50:08 -04:00
README.md WIP: linter setup 2025-08-30 21:50:08 -04:00
template.liquid tweaking layout 2025-07-20 07:45:20 -04:00
uv.lock WIP: linter setup 2025-08-30 21:50:08 -04:00

trmnl weather & pollen report

a custom trmnl plugin that fetches and displays weather and pollen data.

setup

  1. set up a virtual environment and install dependencies:

    python -m venv .venv
    source .venv/bin/activate
    uv sync
    
  2. set required environment variables:

    export WEATHER_API_KEY="your_openweathermap_api_key"
    export AUTH_TOKEN="your_chosen_auth_token"
    
  3. 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