open_meteo 2.0.3 copy "open_meteo: ^2.0.3" to clipboard
open_meteo: ^2.0.3 copied to clipboard

A simple, fast, asynchronous Dart/Flutter package for accessing the Open-Meteo API.

example/main.dart

import 'package:open_meteo/open_meteo.dart';

void main() async {
  final weather = WeatherApi();
  final response = await weather.request(
    latitude: 52.52,
    longitude: 13.41,
    hourly: {WeatherHourly.temperature_2m},
  );
  final data = response.hourlyData[WeatherHourly.temperature_2m]!;
  final currentTemperature = data.values;

  print(currentTemperature);
}
copied to clipboard
13
likes
160
points
190
downloads

Publisher

verified publisherneurs.space

Weekly Downloads

2024.09.26 - 2025.04.10

A simple, fast, asynchronous Dart/Flutter package for accessing the Open-Meteo API.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flat_buffers, http

More

Packages that depend on open_meteo