weather where you need it...on the command line
- ruby
- rvm
- gem
git clone [email protected]:dasmoose/tundra.git
cd tundra
bundle install
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"
}
- 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