Skip to content
Back to skills

Yr No Weather

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
developmentpythonbashgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add johnalbertini14-glitch/openclaw-skills --skill yr-no-weather --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Yr No Weather?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Yr No Weather
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/johnalbertini14-glitch-yr-no-weather/badge)](https://www.skillsdirectory.com/skills/johnalbertini14-glitch-yr-no-weather)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: yr-weather
description: 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.
---

# Yr.no Weather

Get weather forecasts from the Norwegian Meteorological Institute (MET Norway) via the free yr.no API.

## Overview

This skill provides weather data using MET Norway's Locationforecast API — a free, reliable weather service with global coverage. No API key required.

**Features:**
- Current weather conditions
- Hourly forecasts (up to 9 days)
- Temperature, wind, humidity, precipitation
- Weather symbols with emoji display

## Quick Start

```bash
# Get current weather for Cape Town (default)
python3 {baseDir}/scripts/weather.py

# Get weather for specific coordinates
python3 {baseDir}/scripts/weather.py -33.9288 18.4174

# Get weather with altitude
python3 {baseDir}/scripts/weather.py 59.9139 10.7522 100

# Get tomorrow's forecast
python3 {baseDir}/scripts/tomorrow.py

# Get tomorrow's forecast for specific location
python3 {baseDir}/scripts/tomorrow.py -33.9288 18.4174
```

## API Details

**Endpoint:** `https://api.met.no/weatherapi/locationforecast/2.0/compact`

**Parameters:**
- `lat`: Latitude (-90 to 90)
- `lon`: Longitude (-180 to 180)
- `altitude`: Altitude in meters (optional)

**Response:** JSON with timeseries data containing:
- `instant.details.air_temperature` - Temperature in °C
- `instant.details.wind_speed` - Wind speed in m/s
- `instant.details.relative_humidity` - Humidity in %
- `next_1_hours.summary.symbol_code` - Weather condition symbol
- `next_1_hours.details.precipitation_amount` - Rain/snow in mm

## Weather Symbols

| Symbol | Description |
|--------|-------------|
| clearsky | Clear sky |
| fair | Fair weather |
| partlycloudy | Partly cloudy |
| cloudy | Cloudy |
| rain | Rain |
| lightrain | Light rain |
| heavyrain | Heavy rain |
| rainshowers | Rain showers |
| sleet | Sleet |
| snow | Snow |
| lightsnow | Light snow |
| heavysnow | Heavy snow |
| snowshowers | Snow showers |
| fog | Fog |

Symbols may have suffixes like `_day`, `_night`, `_polartwilight` for time-of-day variants.

## Common Locations

| City | Latitude | Longitude |
|------|----------|-----------|
| Cape Town | -33.9288 | 18.4174 |
| Johannesburg | -26.2041 | 28.0473 |
| Durban | -29.8587 | 31.0218 |
| London | 51.5074 | -0.1278 |
| New York | 40.7128 | -74.0060 |
| Tokyo | 35.6762 | 139.6503 |
| Sydney | -33.8688 | 151.2093 |

## Usage Terms

**Required by MET Norway:**
- Include User-Agent header with contact info
- Cache responses (don't request more than once per 10 minutes for same location)
- Attribute data to "MET Norway" when displaying

This script complies with all terms of use.

Files in this skill

  • SKILL.md2.9 KB
  • _meta.json310 B
  • scripts/tomorrow.py5.5 KB
  • scripts/weather.py5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.