Project

SnowNasa

0.0
No commit activity in last 3 years
No release in over 3 years
A gem to interact with Nasa's api to retrieve the following-- "The Astronomy Picture of the Day", "Earth Images", "Mars Rover Pics ^_^", and "Near Earth Objects(Asteroids)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
>= 0.7.7
>= 1.0.7
~> 10.0
>= 1.8.0
~> 3.0
 Project Readme

SnowNasa

SnowNasa is a ruby gem to interface with Nasa's Api

##Gem Status Gem Version

Travis CI Build Status

How to obtain a Nasa Api Key

https://api.nasa.gov/index.html#apply-for-an-api-key #Apply for an api key, and it will be sent to your email. #Once you recieve your api key you are good to go.

Installation

Add this line to your application's Gemfile:

gem 'SnowNasa'

And then execute:

$ bundle

Or install it yourself as:

$ gem install SnowNasa

Install the initializer

  rails g snow_nasa:config
  #this is optional and it makes it easy to set the nasa_api_key only once, otherwise you will need to set the nasa_api_key global each time you make a request.  

Get the Astronomy Picture of the Day

   SnowNasa::Apod.getAstroPic

Get Earth Images

  SnowNasa::Earthimg.getEarthImages(:lat => "1.5", :lon => "100.75", :date => "2014-02-01", :cloud_code => "True")
  #cloud_code is optional. 

Get Mars Rover Pics

Get a list of cameras attached to the rovers

    SnowNasa::Marsroverphotos.cameras

Get pictures from the rover

  SnowNasa::Marsroverphotos.getMarsPics(:sol => "1000", :camera => "fhaz", :page => "1", :rover => "curiosity")

Get Near Earth Objects (Asteroids)

  SnowNasa::Neobjects.getNeo(:start_date => "2016-05-27", :end_date => "2016-05-31")