f215-chart-fetcher

Fetches the Met Office F215 low-level area forecast chart via MAVIS as PNG images.

Updated Aug 6, 2026
One-click install
npx skills add https://github.com/vrai/ga_weather_briefing_agentic --skill f215-chart-fetcher-vrai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: f215-chart-fetcher
Source: https://github.com/vrai/ga_weather_briefing_agentic/tree/main/skills/f215-chart-fetcher
Command: npx skills add https://github.com/vrai/ga_weather_briefing_agentic --skill f215-chart-fetcher-vrai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, pymupdf, and includes scripts (resource) components.

What problem does it solve? Pilots preparing a UK general aviation weather briefing need the Met Office F215 low-level area forecast chart for synoptic context, frontal positions, and icing/turbulence information, but MAVIS offers no documented public API to retrieve it programmatically. ## Core Features & Use Cases - Automated MAVIS Login: Authenticates through the Met Office's Azure AD B2C OAuth2 flow using MAVIS_USERNAME and MAVIS_PASSWORD credentials from a local .env file. - Chart Retrieval and Rendering: Downloads the F215 PDF for the most recent valid 6-hourly issue time and renders each page to PNG at configurable DPI for visual interpretation. - Use Case: While assembling a GA weather briefing, run the script to fetch the current F215 chart for the British Isles, then view the returned PNG paths to read frontal positions and significant weather alongside METAR/TAF data. ## Quick Start Fetch the current UK F215 low-level area forecast chart and show me the rendered chart images.

Frequently Asked Questions about f215-chart-fetcher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch the Met Office F215 chart programmatically?▼

Run the get_f215.py script with uv, which logs into MAVIS and downloads the current F215 chart as a PDF rendered to PNG images. Set MAVIS_USERNAME and MAVIS_PASSWORD in the skill's .env file first, then run uv run scripts/get_f215.py.

What credentials are needed for Met Office MAVIS access?▼

You need a Met Office account with MAVIS access, supplied as MAVIS_USERNAME and MAVIS_PASSWORD in the skill's .env file. If credentials are missing, the script exits with an error rather than silently skipping the chart.

Why does the MAVIS login fail or stop working?▼

The login scrapes an Azure AD B2C OAuth2 sequence rather than a documented API, so Met Office changes to their login page can break CSRF or transaction-ID extraction. Rerun with the --debug flag to see response snippets and diagnose which step failed.

What output does the F215 chart fetcher produce?▼

It prints a JSON manifest containing the region, issue time in UTC, the saved PDF path, and a list of PNG paths, one per chart page. View the PNG files with an image-reading tool, since the chart is a visual product not meant for programmatic parsing.

What are the limitations of fetching F215 charts this way?▼

The F215 issue schedule is unconfirmed, so the script tries the last few 6-hourly UTC boundaries and takes the first available chart. A failed fetch means the chart is unavailable and should be checked on MAVIS directly, not interpreted as an absence of significant weather.