#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

#1357 in Web programming

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