Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
C# API Wrapper for the DarkSky API
C#
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
DarkSky.MonoDroid
DarkSky.MonoTouch Added Notification.cs to the mono and windows phone projects
DarkSky.WindowsPhone Added Notification.cs to the mono and windows phone projects
DarkSky Added Notification.cs to the mono and windows phone projects
.gitignore Initial commit, MonoTouch and MonoDroid versions
DarkSky.Mono.sln rename mono solution to DarkSky.Mono ... contains both MonoTouch and …
DarkSky.Mono.suo Added desktop version of the library. Also added notification classes…
README.md Added note to point to forecast.io-sharp

README.md

darksky-chsharp

note: this library has been superceded by the Forecast.io API. You should use that one as it is more up to date.

C# API Wrapper for the DarkSky API. Currently supported platforms are: Windows Phone, iOS, and Android via MonoTouch/Mono for Android.

Usage is very simple:

using DarkSky;
...
var darksky = new DarkSky.Api(YOUR_API_KEY);
var orlando  = new Position { Latitude=28.5381d, Longitude=-81.3794d };
Task<FullForecast> response = darksky.GetForecastAsync(orlando);

response.ContinueWith(forecast => DisplayText(forecast.Result.HourSummary));
// displays something like "Rain starting in 3 Min, Stopping 30 Min Later"

Currently supported endpoints:

Please let me know if you have any feedback either by opening an issue, emailing me, commenting on my blog, or forking this project and submitting a pull request.

Something went wrong with that request. Please try again.