darksky_weather 2.0.0 copy "darksky_weather: ^2.0.0" to clipboard
darksky_weather: ^2.0.0 copied to clipboard

Platformweb

A dart library for interfacing with the Dark Sky Weather API.

example/example.dart

// Copyright (c) 2017, 'rinukkusu'. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'dart:async';
import 'package:darksky_weather/darksky_weather_io.dart';

Future<Null> main() async {
  var darksky = new DarkSkyWeather("API_KEY_HERE",
      language: Language.English, units: Units.SI);
  var forecast = await darksky.getForecast(48.21, 16.363);

  print(forecast.currently?.temperature);
  print(forecast.currently?.summary);
}
6
likes
110
pub points
42%
popularity

Publisher

unverified uploader

A dart library for interfacing with the Dark Sky Weather API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

http, json_annotation

More

Packages that depend on darksky_weather