Crates.io | weather-union |
lib.rs | weather-union |
version | 0.2.0 |
source | src |
created_at | 2024-05-21 17:47:48.888626 |
updated_at | 2024-05-23 11:41:51.777877 |
description | A package for https://www.weatherunion.com/ |
homepage | |
repository | https://github.com/croyla/weather-union-rs |
max_upload_size | |
id | 1247053 |
size | 108,660 |
A rust implementation lib for weatherunion api.
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