Skip to main content

eBird smart home integration, free and open source

eBird integration for Gladys Assistant

Birds reported around your home on eBird: rare species, watched species, scenes.

Overview​

This integration brings eBird into Gladys. eBird, run by the Cornell Lab of Ornithology, gathers the bird observations of birdwatchers around the world. The integration reads what was reported around one of your houses: the species seen lately, the notable reports (rare species, or birds out of season) and the species you watch, such as the first swallows of spring or a hoopoe back in the area.

It offers devices on the Discovery screen, two scene triggers (a rare bird nearby, a watched species nearby), a scene action (where was a species seen lately?) and three dashboard widgets. It works everywhere in the world.

Prerequisites​

  • Gladys Assistant 5.3.0 or later.
  • A house with a position in Gladys (Settings → Houses): the observations are searched around it.
  • A free eBird account and an API key.

Get an API key​

  1. Create a free account on ebird.org (or sign in).
  2. Open ebird.org/api/keygen, accept the terms of use and copy the key.
  3. The key is personal and for non-commercial use: never share it.

Configuration​

FieldDefaultMeaning
eBird API key—Required. Never shown again, never logged
Housefirst house with a positionThe center of the search
Radius (km)101 to 50 km
Days back71 to 30 days
Watched species—Up to 10, separated by commas: common name (English, French, German, Spanish), scientific name or eBird code
Reading every1 hour30 minutes, 1 hour or 3 hours
LanguageAutomaticDevice names and scene texts; automatic follows the language of the last widget shown
Read eBird now—Checks the key, reads now and sums up each watched species

The eBird code of a species is in the address of its page on ebird.org: ebird.org/species/eurhoo is the Eurasian Hoopoe. The status of the configuration screen names the species it could not find.

Usage​

Devices​

On the Discovery screen:

  • Birds around <house>: species reported, notable reports, the last notable report ("Wallcreeper · 3 km · FourviĂšre").
  • <species> (eBird), one per watched species: reported nearby (within the radius over the days), nearest recent report in km (up to 50 km), days since that report.

"Species" counts the true species only: eBird also lists groups such as "gull sp." and hybrids.

Dashboard widgets​

  • Birds nearby: species and notable counts, the most recent species with place, distance, date and how many.
  • Rare birds: one card per notable species, reviewed by eBird or not, with links to the checklist and the species page.
  • Watched species: the nearest recent report of each one and when.

The names follow the language of the dashboard. The widgets credit eBird, as its terms ask.

The three widgets: birds nearby with their place, distance and date, rare birds reviewed or not, and the watched species with their nearest report (generated illustration, not a screenshot)

Scenes​

  • Trigger "eBird: rare bird nearby": a new notable report within the radius, once per checklist and species (at most 10 per reading). Variables: species, scientific name, code, how many, place, distance, date, time, reviewed, checklist link, summary, house.
  • Trigger "eBird: watched species nearby": a watched species is reported within the radius again; you can filter on one species.
  • Action "eBird: where was a species seen?": the nearest report of a species within 50 km over up to 30 days, with a ready-made summary for a message or a spoken answer.

The first reading after a change of house, radius, days or watched species is a baseline: what eBird already lists fires nothing. A restart never fires twice.

Examples: when a rare bird is reported nearby, send the summary and the checklist link by Telegram; when the Barn Swallow is back, say "The swallows are back!" in the kitchen.

Transport​

Cloud only: eBird receives the position of the house rounded to about 1 km, the radius and the codes of the watched species. The key travels in a header, never in a web address.

Troubleshooting​

  • "eBird refused the API key": copy it again from ebird.org/api/keygen.
  • "No house of Gladys has a position": set the position of the house in Settings → Houses.
  • "Not found in the eBird taxonomy": check the spelling, or type the scientific name or the eBird code.
  • Few or no reports: widen the radius or the days; eBird depends on the observers of your area.
  • A notable report "Unreviewed": a regional reviewer of eBird has not checked it yet.
  • Logs: Settings → Supervision, the logs of the integration. Never share your API key.

Configuration settings​

These are the settings eBird asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
eBird API keysectionNoeBird, run by the Cornell Lab of Ornithology, gathers the bird observations of birdwatchers around the world. Its API needs a free, personal key: sign in on ebird.org (free account), open the key page below, accept the terms (non-commercial use) and copy the key. The integration sends only the rounded position of the house (about 1 km) and the species you watch.
eBird API keysecretYesPersonal: never share it. It stays in Gladys and is never shown again nor logged.
Around the housesectionNoThe observations are searched around the position of a house of Gladys (Settings, Houses).
HouseselectNoEmpty: the first house with a position.
Radius (km)numberNoFrom 1 to 50 km (the eBird maximum).
Days backnumberNoThe reports of the last 1 to 30 days.
Watched speciesstringNoUp to 10, separated by commas: common names (English, French, German or Spanish), scientific names or the eBird codes shown in the address of a species page. Each one becomes a device and a scene trigger.
OptionssectionNo
Reading everyselectNoeBird is read on this timer: about 3 requests, plus one per watched species.
Language of the textsselectNoDevice names and the texts given to scenes. Automatic: the language of the last widget shown.

How to install eBird in Gladys​

  1. In Gladys, open Integrations: eBird appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/william-de71/gladys-ebird:0.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/William-De71/gladys-ebird.

eBird requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

eBird is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by William-De71, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂