No description
Find a file
2025-06-23 06:22:37 -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 caching 2025-06-23 06:22:37 -04:00
pyproject.toml caching 2025-06-23 06:22:37 -04:00
README.md caching 2025-06-23 06:22:37 -04:00
template.liquid initial template 2025-05-26 20:03:48 -04:00
uv.lock caching 2025-06-23 06:22:37 -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
    

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