Karl 87a3844255 feat: implement Ollama cloud usage server
Add a lightweight Node.js server that scrapes Ollama cloud usage data
from ollama.com/settings and exposes it as a JSON API.

- Support for email/password and cookie-based authentication
- Automated polling and Home Assistant integration
- Endpoints for usage data, manual refresh, and cookie management
- Comprehensive README and environment configuration
2026-05-07 14:46:36 +01:00

18 lines
505 B
Plaintext

# Auth mode: "email" for automated login, "cookies" to use exported browser cookies
# For Google accounts without a password, use "cookies" mode
# Default: "email" if OLLAMA_PASSWORD is set, otherwise "cookies"
AUTH_MODE=email
# For email auth mode
OLLAMA_EMAIL=you@example.com
OLLAMA_PASSWORD=your-password
# Server port (default: 3214)
PORT=3214
# Polling interval in minutes (default: 10)
POLL_MINUTES=30
# Optional: Home Assistant push
HA_URL=http://homeassistant.local:8123
HA_TOKEN=eyJhbGciOi...