An open API service indexing awesome lists of open source software.

https://github.com/csmb/current_temp

A simple gem for fetching the current temperature at a location
https://github.com/csmb/current_temp

Last synced: about 1 year ago
JSON representation

A simple gem for fetching the current temperature at a location

Awesome Lists containing this 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](https://www.wunderground.com/weather/api), which comes with unknown side effects.

## Usage
`CurrentTemperature.at_location(94110)`

`CurrentTemperature.at_location("San Francisco, Ca")`