#weather #api #com #api-key #locality

weather-union

A package for https://www.weatherunion.com/

4 releases

0.2.0 May 23, 2024
0.1.2 May 22, 2024
0.1.1 May 22, 2024
0.1.0 May 21, 2024

#7 in #locality

Download history 51/week @ 2024-07-25 6/week @ 2024-08-01 10/week @ 2024-09-26 6/week @ 2024-10-03

127 downloads per month

MIT license

61KB
815 lines

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

Dependencies

~4–16MB
~191K SLoC