Project

weatherpup

0.0
No release in over 3 years
Low commit activity in last 3 years
WeatherPup is a CLI application built with Ruby that will fetch current weather condtions based on a US Zip Code or a GPS Coordinate pair. This utilizes data from AggData.org and OpenWeatherMap.org
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 0.12
~> 10.0
~> 3.0

Runtime

~> 0.8
~> 0.17
 Project Readme

WeatherPup

Welcome to WeatherPup! WeatherPup is a CLI written in Ruby that fetches current weather information based on a user entered US Zip Code or a GPS Coordinate Pair (Latitude and Longitude). Previously fetched weather conditions can also be viewed.

Installation

Add this line to your application's Gemfile:

gem 'weatherpup'

And then execute:

$ bundle

Or install it yourself as:

$ gem install weatherpup

Usage

After running the weatherpup executable from the bin folder, you'll be presented with a few options. (If you used require 'weatherpup', in your program / console call WeatherPup::CLI.new.call to instantiate a new instance of the WeatherPup CLI.)

1. Fetch by Zip Code
2. Fetch by GPS Coordinates (Latitude and Longitude)
3. Fetch previously fetched conditions

Type in 1 to get the current weather conditions by US Zip Code. After doing this, you'll be asked to type in the 5 digit zip code. You'll then be shown the current weather for that zip code. From there you'll have the option to go back to the main menu.

Type in 2 to get the current weather conditions by GPS Coordinates (Latitude and Longitude pair). After doing this, you'll be asked to type in the latitude in decimal format. Example Latitude in decimal format: 40.705204

You'll then be asked to type in the longitude in decimal format. Example Longitude in decimal format: -74.013845

Then you'll be shown the current weather for that GPS Coordinate pair. From there you'll have the option to go back to the main menu.

Type in 3 to get a list of the previously fetched weather conditions. From there you'll have the option to select which previous fetch you would like to view. Type in the corresponding number then you'll view that historic fetch. From there you'll have the option to go back to the main menu.

To exit the program, if you are not already at the main menu, return to the main menu then type in exit.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jrodden1/weatherpup.

License

The gem is available as open source under the terms of the MIT License.