Adjust morning alarms based on weather and train delays using Google Gemini

Go to Workflow
0 views
Built by NODA shuichi NODA shuichi
Created on January 06, 2026

Description

Description: An intelligent alarm system that wakes you up early only when necessary. 🛡️🤖

This workflow monitors your local weather and train status every morning at 5:00 AM. It uses Google Gemini to analyze the situation. If there is heavy rain or a train delay, it sends an emergency alert immediately (and can trigger smart home devices). If everything is normal, it waits until your usual wake-up time to send a calm briefing.

Key Features:

AI Context Awareness: Uses Gemini to intelligently judge "Emergency" situations based on weather descriptions and news headlines.

Dynamic Notification:

Emergency Mode: Immediate Email alert + Optional SwitchBot trigger (e.g., turn on lights).

Normal Mode: Delays notification until your scheduled wake-up time (90 mins later).

Targeted Monitoring: Searches specific train lines via Google News RSS.

How it works:

Trigger: Runs daily at 5:00 AM.

Fetch: Gets weather from OpenWeatherMap and train news from Google News RSS.

Judge: Gemini analyzes the data.

Action: Routes the notification based on the status (Emergency/Normal).

Setup Requirements:

Credentials: OpenWeatherMap API, Google Gemini API, Gmail.

Config: Open the "1. Configuration" node to set your Location, Train Line, and Email.

This workflow was created by NODA shuichi and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (4)

Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
HTTP Request
n8n-nodes-base.httpRequest