#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 16/week @ 2024-09-29 2/week @ 2024-12-08

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
~197K SLoC