Giter Site home page Giter Site logo

rweather's Introduction

Displays the local weather information. Mostly I'm playing with Rust.

Build

You need to have Rust (incoming branch), then just rustc rweather.rs to build it.

Usage

From the command line: rweather <code>

The code is any code that weather.noaa.gov will return a value for. Try your local ICAO airport code. In the US it's your normal airport code prefixed with a K, e.g. KLAX for Los Angeles, KSFO for San Francisco, etc. In Canada it's the airport code prefixed with a C - CYVR for Vancouver.

Example:

You type: rweather CYVR

Output:

Vancouver International Air-Port, B. C., Canada (CYVR) 49-11N 123-10W 2M
Apr 25, 2013 - 01:00 AM EDT / 2013.04.25 0500 UTC
Wind: Calm:0
Visibility: 30 mile(s):0
Sky conditions: mostly cloudy
Temperature: 55 F (13 C)
Dew Point: 41 F (5 C)
Relative Humidity: 58%
Pressure (altimeter): 30.09 in. Hg (1018 hPa)
ob: CYVR 250500Z 00000KT 30SM BKN240 13/05 A3009 RMK CI2 SLP188
cycle: 5

If you actually want something that does this for long term usage, I'd recommend weather-util, which is in Ubuntu repos.

rweather's People

Contributors

grahamking avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.