d-weather-forecast 1.2.0

Get weather forecast with the D programming language


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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.2.0/

Generate documentation

dub --build=docs

Run unit tests

dub test

Dub version Dub downloads License

Authors:
Matthew Brennan Jones <matthew.brennan.jones@gmail.com>
Dependencies:
none
Versions:
1.2.0 2017-Sep-17
1.1.0 2017-Sep-08
~master 2017-Sep-24
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 2 downloads this month

  • 2 downloads total