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
- Host: GitHub
- URL: https://github.com/csmb/current_temp
- Owner: csmb
- Created: 2016-03-26T04:01:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-26T04:01:55.000Z (about 10 years ago)
- Last Synced: 2025-01-26T15:15:27.439Z (over 1 year ago)
- Language: Ruby
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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")`