accuweather

Crates.ioaccuweather
lib.rsaccuweather
version0.1.1
sourcesrc
created_at2019-09-03 20:10:00.208928
updated_at2020-03-08 09:15:52.650337
descriptionA library to fetch data from accuweather api
homepage
repositoryhttps://github.com/gaetronik/accuweather
max_upload_size
id161897
size59,818
Gaƫtan Duchaussois (gaetronik)

documentation

README

Accuweather crate

Build Status Crates.io

This crate provides a client to accuweather forecast and current condition api. At the moment there is only three functions to interact with the api.

Example

extern crate accuweather;

let api_key = "abcdefg".to_string();
let client = accuweather::Accuweather::new(api_key, Some(12345), None);
// get next 12 hours of hourly forecasts
let hourly_forecasts = client.get_hourly_forecasts(12);

let daily_forecasts = client.get_daily_forecasts(5);
let conditions = client.get_current_conditions();
Commit count: 7

cargo fmt