Modules@robinpath/weather

@robinpath/weather

0.1.0Public

Weather module for RobinPath.

@robinpath/weather

Weather module for RobinPath.

Category Functions Auth License

Why use this module?

The weather module lets you:

  • getCurrentWeather
  • getForecast
  • get5DayForecast
  • getHourlyForecast
  • getAirQuality

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/weather

Quick Start

1. Set up credentials

weather.setCredentials "your-credentials"

2. getCurrentWeather

weather.getCurrentWeather

Available Functions

FunctionDescription
weather.setCredentialsConfigure weather credentials.
weather.getCurrentWeathergetCurrentWeather
weather.getForecastgetForecast
weather.get5DayForecastget5DayForecast
weather.getHourlyForecastgetHourlyForecast
weather.getAirQualitygetAirQuality
weather.getUVIndexgetUVIndex
weather.getWeatherByZipgetWeatherByZip
weather.getHistoricalWeathergetHistoricalWeather
weather.getWeatherAlertsgetWeatherAlerts
weather.geocodeCitygeocodeCity
weather.reverseGeocodereverseGeocode
weather.getWeatherMapgetWeatherMap

Examples

getCurrentWeather

weather.getCurrentWeather

getForecast

weather.getForecast

get5DayForecast

weather.get5DayForecast

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/weather";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  weather.setCredentials "your-credentials"
  weather.getCurrentWeather
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/weather
Version0.1.0
LicenseMIT
Unpacked Size3.9 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

utilities