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

A free, silly, all-in-one API SDK to forecast weather, air quality, climate change, and many more by OpenMeteo with full typed support!

example/main.dart

import 'package:open_meteo/open_meteo.dart';

void main() async {
  final weather = WeatherApi(userAgent: "My-Flutter-App");
  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);
}
17
likes
150
points
175
downloads

Publisher

verified publisherneurs.space

Weekly Downloads

A free, silly, all-in-one API SDK to forecast weather, air quality, climate change, and many more by OpenMeteo with full typed support!

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flat_buffers, http

More

Packages that depend on open_meteo