weather-union

Crates.ioweather-union
lib.rsweather-union
version0.2.0
sourcesrc
created_at2024-05-21 17:47:48.888626
updated_at2024-05-23 11:41:51.777877
descriptionA package for https://www.weatherunion.com/
homepage
repositoryhttps://github.com/croyla/weather-union-rs
max_upload_size
id1247053
size108,660
Aayush Rai (croyla)

documentation

README

weather-union rust implementation

A rust implementation lib for weatherunion api.

Quickstart

let instance = WeatherUnion::from_key("api_key".to_string());
let weather_info = instance.locality(LocalityId::ZWL#).await.unwrap();
println!("Live temperature for {}", LocalityId::ZWL#.locality_name());
println!("{}", weather_info.temperature);

Where "api_key" is your WeatherUnion api key and ZWL# is a locality id from here

Commit count: 11

cargo fmt