0.0
No commit activity in last 3 years
No release in over 3 years
Pass a valid US ZIP code, or a city and state and the current temperate in degrees fahrenheit is returned. This requies a valid United States ZIP code as a Fixnum such as 94110 or a city in a String like "San Francisco, Ca"
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

CurrentTemperature

A simple gem. It will return the current temperature in degrees Fahrenheit using Weather Underground's API.

Requirements

A WU api key is necessary to use this. Set the api key as an environment var, WUNDERGROUND_API_KEY="you_api_key". If you omit this, the gem will fallback to the api key on WU's documentation page, which comes with unknown side effects.

Usage

CurrentTemperature.at_location(94110)

CurrentTemperature.at_location("San Francisco, Ca")