WUnderground.Net
WUnderground .Net Library (Also Weather.com)
Install / Use
/learn @dknoodle/WUnderground.NetREADME
Weather Underground .Net API Wrapper (Also Weather.com)
This library implements most features of the Wunderground.com Weather API.
http://www.wunderground.com/weather/api/d/docs
NuGet Package:
https://nuget.org/packages/WUnderground.Net
Currently Supported Features:
- Alerts
- Almanac
- Astronomy
- Conditions
- Forecast
- Forecast10day
- GeoLookup
- Hourly
- CurrentHurricane (in progress)
Usage:
string key = "{Your API Key Here}";
WeatherClient client = new WeatherClient(key);
//Gets data by Airport Code
client.GetForecast(QueryType.AirportCode, new QueryOptions() { AirportCode = "DFW" });
//Gets data by the detected IP address of the calling client
client.GetForecast(QueryType.AutoIp);
//Gets data by country and city
client.GetForecast(QueryType.GlobalCity, new QueryOptions() { Country = "France", City = "Paris" });
//Gets data by GPS coordinates
client.GetForecast(QueryType.GPS, new QueryOptions() { Latitude = "37.776289", Longitude = "-122.395234" });
//Gets data by Weather Underground Link ID
client.GetForecast(QueryType.LinkId, new QueryOptions() { LinkId = "00000.1.16172" });
//Gets data from a personal weather station by ID
client.GetForecast(QueryType.PWSId, new QueryOptions() { PWSId = "KMNCHASK10" });
//Gets data for a US City
client.GetForecast(QueryType.USCity, new QueryOptions() { City = "Los Angeles", State = "CA" });
//Gets data by US Zip Code
client.GetForecast(QueryType.ZipCode, new QueryOptions() { ZipCode = "90210" });
//Gets Alerts by US City Asynchronously
await client.GetAlertsAsync(QueryType.USCity, new QueryOptions() { City = "Los Angeles", State = "CA" });
All methods have both Synchronous and Asynchronous versions
Optional Settings:
Optional settings can be used on any method call and multiple settings can be used together
//Gets a forecast in the specifid language
client.GetForecast(QueryType.AutoIp, new QueryOptions() { Language = "FR" };
//Gets a forecast setting the Use Personal Weather Stations for conditions setting (default is true)
client.GetForecast(QueryType.AutoIp, new QueryOptions() { UsePWS = false };
//Gets a forecast setting the Use Weather Underground Best Forecast for forecast
client.GetForecast(QueryType.AutoIp, new QueryOptions() { UseBestFct = false };
WUnderground Optional Settings Documentation
This library is distributed under an MIT license.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
