Skip to content

dasmoose/tundra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tundra

weather where you need it...on the command line

dependencies

  • ruby
  • rvm
  • gem

setup

  • git clone git@github.com:dasmoose/tundra.git
  • cd tundra
  • bundle install

dotfile

You can create a dotfile in your home directory (~/.tundra) specifying the following:

  • Weather Underground api_key Sign Up Here
  • location (e.g. Oakland, San Francisco, Seattle)
  • temp_unit (e.g. F or C)

Here's an example:

{                                                                                
  "location": "Oakland",                                                         
  "api_key": "1234567890abcdef",                                                 
  "temp_unit": "F"                                                                  
}  

usage

  • For the current weather in a particular city:
    • ruby weather.rb --location=oakland
  • Or if you have a dotfile with location specified, you only have to run:
    • ruby weather.rb
  • For a 5 day forecast (assumes location is in dotfile):
    • ruby weather.rb --forecast=5
  • For the current moon cycle (assumes location is in dotfile):
    • ruby weather.rb --moon

About

weather where you need it...on the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages