Skip to content

Roba1993/yahoo-weather-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yahoo-weather-rs

The yahoo-weather-rs create downloads the actual weather data for a given location and transforms it into rust data structures.


Usage

Add yahoo-weather-rs as a dependency in Cargo.toml:

[dependencies]
yahoo-weather = "0.2"

Use the get_weather() function to get the weather data.

extern crate yahoo_weather;

fn main() {
    // Request the data
    let weather = yahoo_weather("Berlin").unwrap();

    // print it to the console
    println!("Weather: {:?}", weather);
}

License

Copyright © 2016 Robert Schütte

Distributed under the MIT License.

About

Easy yahoo weather API access for rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages