yr-weather

Fetch weather forecasts from the Norwegian Meteorological Institute (MET) using the yr.no API. Use when the user asks for weather information, forecasts, temperature, precipitation, wind conditions, or any weather-related queries for specific locations. Supports coordinates-based lookups and returns current conditions plus forecasts. REQUIRES latitude/longitude - no defaults. See common locations table.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "yr-weather" with this command: npx skills add brandon2255p/yr-weather

Yr.no Weather

Get weather forecasts from MET Norway via yr.no API (free, no key).

Quick Start

# Current weather + forecast (requires lat/lon)
python3 {baseDir}/scripts/weather.py <lat> <lon> [altitude]

# Examples from common locations:
python3 {baseDir}/scripts/weather.py -33.9288 18.4174   # Cape Town
python3 {baseDir}/scripts/weather.py -33.8688 151.2093  # Sydney
python3 {baseDir}/scripts/weather.py 51.5074 -0.1278    # London

# Tomorrow's summary (requires lat/lon)
python3 {baseDir}/scripts/tomorrow.py <lat> <lon>

# Run tests
python3 -m unittest discover {baseDir}/tests

Tests

  • Unit tests mock API calls (no network).
  • Sample data in scripts/tests/data/.
  • Run: cd {baseDir}/scripts && python3 ../tests/test_*.py

Common Locations

CityLatLon
Cape Town-33.928818.4174
Johannesburg-26.204128.0473
Durban-29.858731.0218
Sydney-33.8688151.2093
London51.5074-0.1278
New York40.7128-74.0060
Tokyo35.6762139.6503

Structure

scripts/
├── yr_service.py    # API calls (tested/mocked)
├── utils.py         # Emoji/symbol helpers
├── weather.py       # Current + forecast CLI
├── tomorrow.py      # Tomorrow summary CLI
└── tests/data/      # Sample JSON
tests/
├── test_weather.py
└── test_service.py

Standalone Repo

Install via pip: pip install git+https://github.com/brandoncrabpi/yr-weather.git

  • yr-weather -33.9288 18.4174
  • Tagged: v1.0.0

Usage Terms

  • User-Agent required (included).
  • Cache 10min+ per location.
  • Credit: "Data from MET Norway".

Refactored for production: no defaults, tests, modular service.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated