41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
# Weather Alerts Configuration Example
|
|
# Copy this file to settings.yaml and customize as needed.
|
|
# Secrets (API keys, tokens) should be in .env file, not here.
|
|
|
|
app:
|
|
name: "weather-alerts"
|
|
version: "1.0.0"
|
|
log_level: "INFO" # DEBUG, INFO, WARNING, ERROR
|
|
|
|
weather:
|
|
location: "viola,tn" # City,State or ZIP code
|
|
hours_ahead: 24 # Number of forecast hours to check
|
|
unit_group: "us" # "us" for Fahrenheit/mph, "metric" for Celsius/kph
|
|
|
|
alerts:
|
|
rules:
|
|
temperature:
|
|
enabled: true
|
|
below: 32 # Alert when temp falls below this (freezing)
|
|
above: 100 # Alert when temp exceeds this (extreme heat)
|
|
precipitation:
|
|
enabled: true
|
|
probability_above: 70 # Alert when precipitation chance exceeds this %
|
|
wind:
|
|
enabled: true
|
|
speed_above: 25 # Alert when sustained wind exceeds this (mph)
|
|
gust_above: 40 # Alert when wind gusts exceed this (mph)
|
|
severe_weather:
|
|
enabled: true # Forward severe weather alerts from the API
|
|
|
|
notifications:
|
|
ntfy:
|
|
server_url: "https://ntfy.sneakygeek.net"
|
|
topic: "weather-alerts"
|
|
priority: "high" # min, low, default, high, urgent
|
|
tags: ["cloud", "warning"] # Emoji tags for notification
|
|
|
|
state:
|
|
file_path: "./data/state.json"
|
|
dedup_window_hours: 24 # Don't repeat same alert within this window
|