d-weather-forecast 2.0.0

Get weather forecast with the D programming language


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

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/2.0.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:
2.0.0 2020-Jun-08
1.3.0 2017-Dec-28
1.2.0 2017-Sep-17
1.1.0 2017-Sep-08
~master 2020-Jun-08
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 21 downloads total

Score:
0.7
Short URL:
d-weather-forecast.dub.pm