{"id":48367346,"url":"https://github.com/im0rtality/pollen-alert","last_synced_at":"2026-04-05T15:04:03.494Z","repository":{"id":349290793,"uuid":"1201773965","full_name":"Im0rtality/pollen-alert","owner":"Im0rtality","description":"Daily pollen alert via SILAM forecast + Pushover notifications, deployed on Kubernetes","archived":false,"fork":false,"pushed_at":"2026-04-05T08:11:01.000Z","size":24,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T08:22:46.004Z","etag":null,"topics":["allergy","helm","homelab","kubernetes","notifications","pollen","pushover","python","self-hosted","silam"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Im0rtality.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-05T06:14:52.000Z","updated_at":"2026-04-05T08:14:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Im0rtality/pollen-alert","commit_stats":null,"previous_names":["im0rtality/pollen-alert"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/Im0rtality/pollen-alert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Im0rtality%2Fpollen-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Im0rtality%2Fpollen-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Im0rtality%2Fpollen-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Im0rtality%2Fpollen-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Im0rtality","download_url":"https://codeload.github.com/Im0rtality/pollen-alert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Im0rtality%2Fpollen-alert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31439444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T13:13:19.330Z","status":"ssl_error","status_checked_at":"2026-04-05T13:13:17.778Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["allergy","helm","homelab","kubernetes","notifications","pollen","pushover","python","self-hosted","silam"],"created_at":"2026-04-05T15:03:30.488Z","updated_at":"2026-04-05T15:04:03.481Z","avatar_url":"https://github.com/Im0rtality.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pollen-alert\n\nPollen forecast notification via [SILAM](https://silam.fmi.fi/) and [Pushover](https://pushover.net/).\n\nQueries the SILAM THREDDS API for pollen concentration at a given location, classifies the risk level using EAN thresholds, and sends a push notification to iPhone/Apple Watch.\n\n## How it works\n\n1. Fetches the pollen forecast for each configured allergen from SILAM (regional northern Europe dataset, ~2.5 km resolution; falls back to pan-Europe dataset, ~10 km)\n2. Finds the peak concentration in grains/m³ within the lookahead window\n3. Sends a Pushover notification if the peak exceeds the configured threshold\n\nFor BIRCH, risk is classified using [EAN](https://www.ean-net.org/) (European Aeroallergen Network) symptom-onset thresholds ([doi:10.1007/s40629-025-00357-5](https://doi.org/10.1007/s40629-025-00357-5)):\n\n| Level | Grains/m³ | Pushover priority |\n|---|---|---|\n| Very High | ≥ 200 | High (1) |\n| High | ≥ 69 | High (1) |\n| Moderate | ≥ 23 | Normal (0) |\n| Low | ≥ 7 | Low (-1) |\n| Very Low | ≥ 2 | Low (-1) |\n\nDataset resolution is cached so each run makes exactly one HTTP request after the first.\n\n## Configuration\n\nUser config is in `pollen-alert.toml`. Specify location either by city name (geocoded via [Nominatim](https://nominatim.openstreetmap.org)) or by explicit coordinates — if both are present, coordinates take precedence:\n\n```toml\n# Option A: city name (geocoded on first run, result cached)\ncity = \"Your City\"\n\n# Option B: explicit coordinates (geocoding skipped)\n# latitude = \"YOUR_LATITUDE\"\n# longitude = \"YOUR_LONGITUDE\"\n\nlookahead_hours = 24\nfetch_interval_hours = 1\nnotify_hours = [5]\n\n[[allergens]]\nname = \"BIRCH\"\nthreshold = 81\n```\n\nSecrets and deployment env vars:\n\n| Variable | Default | Description |\n|---|---|---|\n| `PUSHOVER_TOKEN` | — | Pushover app API token (required) |\n| `PUSHOVER_USER_KEY` | — | Pushover user key (required) |\n| `CACHE_FILE` | `/cache/dataset.json` | Path for dataset resolution cache |\n| `READINGS_FILE` | `/cache/readings.json` | Path for readings cache |\n| `GEOCODE_CACHE_FILE` | `/cache/geocode.json` | Path for geocoding cache |\n| `METRICS_PORT` | — | Port for Prometheus metrics (enables server mode) |\n| `CONFIG_FILE` | `/config/pollen-alert.toml` | Path to config file |\n\n### Allergens\n\nThe SILAM dataset currently provides forecasts for: **ALDER**, **BIRCH**, **HAZEL**, **GRASS**, **RAGWEED**, **MUGWORT**\n\nConfigure multiple allergens via `POLLEN_ALLERGENS`:\n```\nPOLLEN_ALLERGENS=BIRCH:81,ALDER:50\n```\n\nTo list available allergens directly from the SILAM API:\n```bash\ndocker run --rm -e PUSHOVER_TOKEN=x -e PUSHOVER_USER_KEY=y ghcr.io/im0rtality/pollen-alert \\\n  python pollen_alert.py --list-allergens\n```\n\n## Local testing\n\n```bash\ncp .env.example .env\n# fill in PUSHOVER_TOKEN and PUSHOVER_USER_KEY\n\nmake run\n```\n\nCache persists in `./cache/` between runs.\n\n## Deployment (homelab Kubernetes)\n\nDocker images are published to `ghcr.io/im0rtality/pollen-alert` on every tagged release. Images are tagged with the full semver version (`1.2.3`), minor (`1.2`), and `latest` (most recent tag).\n\nThe Helm chart is published as an OCI artifact to `oci://ghcr.io/im0rtality/charts/pollen-alert` on every tagged release.\n\n```bash\nhelm install pollen-alert oci://ghcr.io/im0rtality/charts/pollen-alert \\\n  --set secrets.pushoverToken=xxx \\\n  --set secrets.pushoverUserKey=yyy \\\n  --set config.city=\"Your City\"\n```\n\nOr with a local copy of the chart:\n\n```bash\nhelm install pollen-alert ./helm \\\n  --set secrets.pushoverToken=xxx \\\n  --set secrets.pushoverUserKey=yyy \\\n  --set config.city=\"Your City\"\n```\n\nTo use explicit coordinates instead of a city name:\n```bash\nhelm install pollen-alert ./helm \\\n  --set secrets.pushoverToken=xxx \\\n  --set secrets.pushoverUserKey=yyy \\\n  --set config.latitude=YOUR_LATITUDE \\\n  --set config.longitude=YOUR_LONGITUDE\n```\n\nTo monitor multiple allergens:\n```bash\nhelm install pollen-alert ./helm \\\n  --set secrets.pushoverToken=xxx \\\n  --set secrets.pushoverUserKey=yyy \\\n  --set config.city=\"Your City\" \\\n  --set 'config.allergens[0].name=BIRCH' --set 'config.allergens[0].threshold=81' \\\n  --set 'config.allergens[1].name=ALDER' --set 'config.allergens[1].threshold=50'\n```\n\nA PersistentVolumeClaim (`1Mi`) is created automatically to hold the dataset cache across CronJob runs. The job runs daily at 05:00 UTC (08:00 EEST / 07:00 EET).\n\nTo trigger a manual run:\n```bash\nkubectl create job --from=cronjob/pollen-alert pollen-alert-test\nkubectl logs -f job/pollen-alert-test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim0rtality%2Fpollen-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fim0rtality%2Fpollen-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim0rtality%2Fpollen-alert/lists"}