{"skill":{"slug":"swissweather","displayName":"Swiss-Weather","summary":"Get current weather and forecasts from MeteoSwiss (official Swiss weather service). Use when querying Swiss weather data, local measurements from Swiss weather stations, or Swiss-specific forecasts. Provides real-time measurements (temperature, humidity, wind, precipitation, pressure) from 100+ Swiss stations and multi-day forecasts by postal code. Ideal for Swiss locations - more accurate than generic weather services for Switzerland.","description":"---\nname: swissweather\ndescription: Get current weather and forecasts from MeteoSwiss (official Swiss weather service). Use when querying Swiss weather data, local measurements from Swiss weather stations, or Swiss-specific forecasts. Provides real-time measurements (temperature, humidity, wind, precipitation, pressure) from 100+ Swiss stations and multi-day forecasts by postal code. Ideal for Swiss locations - more accurate than generic weather services for Switzerland.\n---\n\n# SwissWeather\n\nGet current weather measurements and forecasts from MeteoSwiss, the official Swiss Federal Office of Meteorology and Climatology.\n\n## Why Use This\n\n- **Official Swiss data**: Direct from MeteoSwiss government service\n- **Real measurements**: 100+ automated weather stations across Switzerland\n- **No API key required**: Free public data\n- **Swiss-optimized**: Better coverage and accuracy for Switzerland than generic services\n- **Comprehensive**: Temperature, humidity, wind, precipitation, pressure, sunshine, radiation\n\n## Quick Start\n\n### Current Weather by Station\n\nGet real-time measurements from a specific Swiss weather station:\n\n**Option 1: Shell script (no dependencies)**\n```bash\nscripts/current_weather_curl.sh --station RAG\n```\n\n**Option 2: Python script (requires: pip3 install requests)**\n```bash\nscripts/current_weather.py --station RAG\n```\n\nExample output:\n```\nStation: RAG\nTime: 2026-01-15 11:40 UTC\nTemperature (°C)........................ 8.6\nRel. humidity (%)...................... 56.3\nWind speed (km/h)...................... 6.8\nPrecipitation (mm)..................... 0.0\n```\n\nPopular stations:\n- **RAG** - Rapperswil (Zurich region)\n- **BER** - Bern\n- **ZRH** - Zurich Airport\n- **BAS** - Basel\n- **GVE** - Geneva\n- **LUG** - Lugano\n\n### List All Stations\n\n```bash\nscripts/current_weather_curl.sh --list\n# or\nscripts/current_weather.py --list\n```\n\nReturns 100+ Swiss weather stations with codes and last update time.\n\n### Forecast by Postal Code\n\nGet multi-day weather forecast:\n\n```bash\nscripts/forecast.py 8640            # Rapperswil-Jona\nscripts/forecast.py 8001 --days 7   # Zurich, 7-day forecast\n```\n\n**Note**: The forecast API may occasionally be unstable. If it fails, fall back to current weather measurements.\n\n## Available Data\n\n### Current Weather Measurements\n\nUpdated every 10 minutes from automated stations:\n\n- **Temperature** (°C) - Air temperature at 2m height\n- **Humidity** (%) - Relative humidity\n- **Wind** - Speed (km/h), direction (°), gust peak\n- **Precipitation** (mm) - Recent rainfall\n- **Pressure** (hPa) - Station level, sea level\n- **Sunshine** (min) - Duration of sunshine\n- **Radiation** (W/m²) - Global solar radiation\n- **Dew point** (°C)\n\n### Weather Forecasts\n\nMulti-day forecasts by Swiss postal code:\n\n- Daily temperature (min/max)\n- Weather conditions with icons\n- Precipitation amount and probability\n- Hourly forecasts (when available)\n\n## Station Selection\n\nChoose the nearest station to your location:\n\n- **Major cities**: BER (Bern), ZRH (Zurich), BAS (Basel), GVE (Geneva), LUG (Lugano)\n- **Zurich region**: KLO (Kloten), RAG (Rapperswil), TAE (Tänikon)\n- **Central**: LUZ (Lucerne), ALT (Altdorf), ENG (Engelberg)\n- **Mountains**: SMA (Säntis), JUN (Jungfraujoch), PIL (Pilatus)\n\n**Tip**: Avoid mountain stations for valley locations due to altitude differences.\n\nSee `references/api_info.md` for complete station list and details.\n\n## JSON Output\n\nAll scripts support `--json` flag for programmatic use:\n\n```bash\nscripts/current_weather.py --station RAG --json\nscripts/forecast.py 8640 --json\n```\n\n## Advanced Usage\n\n### Multiple Stations\n\nShow all current measurements:\n\n```bash\nscripts/current_weather.py --all\n```\n\n### Find Nearest Station\n\n1. List all stations: `scripts/current_weather.py --list`\n2. Identify closest by name/location\n3. Use that station code\n\n### Caching\n\nData updates every 10 minutes. Cache responses appropriately:\n\n```bash\n# Cache current weather for 5-10 minutes\n# Cache forecasts for 1-2 hours\n```\n\n## API Reference\n\nSee `references/api_info.md` for:\n- Complete API documentation\n- All available data fields\n- Weather icon codes\n- Warning levels and types\n- Alternative data sources\n- Technical details\n\n## Dependencies\n\n```bash\npip3 install requests\n```\n\n## Data Source\n\n- **Provider**: MeteoSwiss (Federal Office of Meteorology and Climatology)\n- **Authority**: Official Swiss government weather service\n- **Update**: Every 10 minutes (current weather)\n- **Coverage**: 100+ automated stations across Switzerland\n- **URL**: https://data.geo.admin.ch / https://www.meteoschweiz.admin.ch\n\n## Troubleshooting\n\n**Forecast API fails**: The MeteoSwiss app API occasionally changes. If `forecast.py` fails, use current weather measurements instead, or check `references/api_info.md` for alternative methods.\n\n**Station not found**: Use `--list` to see available stations. Station codes are 3-letter abbreviations (case-insensitive).\n\n**Missing data**: Some stations don't measure all parameters. Look for `-` or `N/A` in output.\n\n## Related\n\n- **swiss-transport**: Swiss public transport schedules and connections\n- **weather**: Generic weather service (wttr.in) - use swissweather for Switzerland\n","topics":["Current Weather"],"tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":2400,"installsAllTime":90,"installsCurrent":0,"stars":4,"versions":1},"createdAt":1768479231585,"updatedAt":1778485733200},"latestVersion":{"version":"1.0.0","createdAt":1768479231585,"changelog":"Initial release of SwissWeather for current and forecasted weather in Switzerland:\n\n- Provides real-time weather measurements from 100+ official Swiss weather stations via MeteoSwiss.\n- Supports multi-day forecasts by Swiss postal code, optimized for Swiss geography.\n- Shell and Python scripts provided for retrieving current data or forecasts (no API key required).\n- Covers temperature, humidity, wind, precipitation, pressure, sunshine, radiation, and more.\n- All data can be output as JSON; includes options for listing stations, querying by station or postal code, and bulk queries.\n- Designed for accuracy and completeness specifically within Switzerland; instructions and troubleshooting included.","license":null},"metadata":null,"owner":{"handle":"xenofex7","userId":"s17e2474yecxkn45ydydcjwz09885b4w","displayName":"xenofex7","image":"https://avatars.githubusercontent.com/u/41230096?v=4"},"moderation":null}