WundergroundStationForwarder
🌦️ Google Apps Script code to send your weather station data to Wunderground, Windy, PWSWeather, Weathercloud, OpenWeatherMap, WindGuru, Met (UK) WOW, and/or CWOP
AI Summary
Station Forwarder
Periodically forwards weather-station data from various sources to multiple destinations using Google Apps Script.
Target Users
Personal weather-station owners with intermediate GAS skills who need to automatically relay their sensor data to several online services.
Problems Solved
Forwarding weather data to several platforms normally requires manual uploads or maintaining custom servers.
Tags
Main Features
Serverless execution on free GAS
Uses time-based triggers in Google Apps Script so scheduled forwarding runs without any self-hosted servers.
Supports many sources and destinations
Enables selection of 8 sources and 8 targets (e.g., Wunderground, Davis, Windy) through simple boolean/constant settings.
Configuration via constants
On-top-of-file constants hold API keys and IDs; no build step or extra libraries needed.
Custom RTL_433 JSON input
Accepts HTTP POST of RTL_433-formatted JSON, enabling any custom sensor to join the forwarding flow.
Straightforward updates
Update by overwriting code.gs and re-running the Schedule function—no migration scripts needed.
Usage Examples
Create an hourly trigger for automatic forwarding
/**
* Set up an hourly trigger that calls the Station Forwarder `Schedule` function.
*/
function installHourlyTrigger() {
// Remove existing triggers to avoid duplicates
ScriptApp.getProjectTriggers().forEach(t => ScriptApp.deleteTrigger(t));
// Run Schedule() every hour
ScriptApp.newTrigger('Schedule')
.timeBased()
.everyHours(1)
.create();
}
Add the snippet below the original code.gs
, run installHourlyTrigger()
once, and Google Apps Script will call Schedule()
every hour to fetch your weather-station data and push it to the configured services.