Skip to content

rinukkusu/darksky-weather-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

darksky_weather Pub Dart CI

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

Usage

A simple usage example:

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);
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Development

Generating JSON Serializers

Run flutter pub run build_runner build to generate JSON serializers via json_serializable.

Run flutter pub run build_runner watch to continuously rebuild serializers in the background when files are updated.

Running tests

Run flutter pub run test to run all of the tests in test/darksky_weather_test.dart.

Running example code

Run flutter pub run example/example to run the example code. You'll need to modify example/example.dart to use your Dark Sky ApiKey.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages