Quick overview
Youtube Video: https://youtu.be/xqxrjfDAN7w
This workflow runs monthly and compiles recent whale sighting data for a configured region by querying OBIS, GBIF, and iNaturalist, then adds current sea conditions from Open-Meteo, generates a PDF report with a satellite map, and sends it via Gmail with a Slack alert.
How it works
- Runs on a monthly schedule at 7:00 AM (or manually for testing) and loads the region center point, radius, lookback window, and recipient email.
- Calculates a bounding box and date range for the search window.
- Fetches cetacean occurrence records from OBIS and GBIF and recent geotagged observations from iNaturalist for the same area and dates.
- Retrieves current wave height, wave period, and sea surface temperature from the Open-Meteo Marine API for the region center.
- Normalizes, de-duplicates, and clusters sightings, summarizes species counts, selects a hotspot and top-reported species, and prepares map overlay geometry.
- If no sightings are found, the workflow ends; otherwise it pulls a Wikipedia summary for the top species and downloads Esri World Imagery satellite tiles for the report map.
- Builds an HTML report, converts it to a PDF using PDFEndpoint, downloads the PDF, emails it via Gmail, and posts a summary alert to a Slack channel.
Setup
- Add a Gmail OAuth2 credential and set the recipient email and subject/content settings as needed.
- Add a Slack API credential and choose the target channel for the alert message.
- Add a PDFEndpoint bearer token credential for the HTML-to-PDF conversion API.
- Update the region configuration values (latitude/longitude, radius, and lookback days) to match your target whale-watching area.