Tutorial

Weather API Automation: Fetch Real-Time Conditions for Your Workflows

Weather data is essential everywhere — logistics, agriculture, outdoor automation, HVAC control, safety workflows, and smart decision systems. The Weather API Connector makes it incredibly easy to fetch real-time weather conditions inside your workflows, enabling automation based on temperature, rain, wind, or general weather status.

With the Weather API Connector, you can retrieve current weather from multiple providers, normalize the data, and expose structured fields for downstream logic and conditional branching.

Step 1: Choose Your Location

The Weather API node accepts either a city name or geographic coordinates. You can specify:

  • City Name — e.g., London, Berlin, Cluj-Napoca
  • Coordinates — e.g., 51.5,-0.1

The connector resolves the location automatically using geocoding when needed.

Step 2: Select a Weather Provider

The connector supports multiple providers:

  • Open-Meteo — free, no API key
  • OpenWeatherMap — requires API key
  • WeatherAPI.com — requires API key

You can configure:

  • provider — choose the API source
  • apiKey — required only for paid providers
  • units — Celsius or Fahrenheit
  • timeoutMs — request timeout

The connector handles HTTP calls, parsing, normalization, and fallback behavior.

Step 3: Fetch Current Weather

Use the Get Current Weather node to retrieve real-time conditions. The connector returns a structured envelope containing:

  • temperature — °C or °F
  • humidity — percentage
  • windSpeed — km/h
  • precipitationAmount — mm
  • isRaining — boolean
  • condition — rain, snow, clear, cloudy, unknown
  • status — ok, partial, unavailable

This normalized structure makes it easy to build weather-aware workflows.

Step 4: Handle Failures Gracefully

If the API fails — network issues, invalid location, provider downtime — the connector still returns a valid envelope:

  • status = "unavailable"
  • All numeric fields set to null
  • condition = "unknown"

This ensures downstream conditions never crash and can react deterministically.

Step 5: Build Weather-Based Automations

Once weather data enters your workflow, you can combine it with any other connector:

  • Trigger alerts when isRaining = true
  • Adjust HVAC systems based on temperature
  • Pause outdoor robots during windSpeed > threshold
  • Log weather telemetry to Google Sheets or databases
  • Run conditional logic based on weather.condition

Weather becomes a powerful input for automation and decision-making.

What's Next?

Experiment with multi-step workflows, combine weather data with scheduling, or build dashboards showing real-time environmental conditions. The Weather API Connector gives you the tools to automate any weather-driven process.

Nodlyn Assistant
Ask me anything about Nodlyn
Hi! 👋 I'm the Nodlyn assistant. Ask me about the product, workflow components, connectors, agent runtime, agent capabilities, deployment, and more. If I don't know an answer, I'll point you to our contact form.
Nodlyn Assistant
Ask me anything about Nodlyn
Hi! 👋 I'm the Nodlyn assistant. Ask me about the product, workflow components, connectors, agent runtime, agent capabilities, deployment, and more. If I don't know an answer, I'll point you to our contact form.