Latenode

Automatically post National Weather Service 7-day forecasts to Slack

This template runs on a schedule, loads the 7-day forecast from the National Weather Service in JavaScript, and posts it to a Slack channel.

Set latitude and longitude for the office you want, or look the city up in the same JavaScript node. Connect Slack. Put a User-Agent and any geocoding key in that JavaScript node. Put the Slack bot token on the Slack connection.

Updated Sep 16, 2026Est. run: 13sEst. cost: $0.0008
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Posts a 7-day National Weather Service forecast to Slack on the cadence you set
  • Calls the forecast API from JavaScript
  • Keeps User-Agent and geocoding keys in that JavaScript node
  • Keeps the Slack bot token on the Slack connection

How it works

1
Trigger

Run on a schedule

The scenario starts on the cadence you set, such as every morning.

2
Logic

Fetch the 7-day forecast

JavaScript calls the National Weather Service forecast API for the coordinates you set and formats temperature, wind, and a short summary for each day. Put a User-Agent and any geocoding key in that JavaScript node.

3
Action

Post to Slack

Slack sends that message to the public channel you choose.

Setup guide

1

Set coordinates in JavaScript

Add a JavaScript node. Put a User-Agent there, and any geocoding key if you look up a city. Call the National Weather Service forecast for those coordinates and format a 7-day message.

2

Connect Slack

Add a Slack connection and pick the public channel that should receive the forecast.

3

Set the schedule

Add a schedule, for example every morning. Run once and confirm the channel sees the 7-day update.

Requirements

Latitude and longitude for the forecast, or a city lookup in JavaScript
A User-Agent, and any geocoding key, stored in the JavaScript node
A Slack channel Latenode can post to

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.