Skip to content
Get weather forecast with the D programming language
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples
source
test
tools
.gitignore
ChangeLog
LICENSE
README.md
TODO.md
dub.json

README.md

D Weather Forecast

Get weather forecast from http://forecast.weather.gov with the D programming language

Example

import weather_forecast : getForecast, WeatherData;
import std.stdio : stdout;

getForecast(delegate(WeatherData weather_data, Exception err) {
  if (! err) {
    stdout.writefln("%s, %s", weather_data.city, weather_data.region);
    stdout.writefln("%s", weather_data.summary);
    stdout.writefln("%s F", weather_data.temperature);
  }
});

/*
San Francisco, California
Mostly Sunny
76 F
*/

Documentation

https://workhorsy.github.io/d-weather-forecast/1.3.0/

Generate documentation

dub --build=docs

Run unit tests

dub test

Dub version Dub downloads License

You can’t perform that action at this time.