No commit activity in last 3 years
No release in over 3 years
A barometer adapter for WeatherBug
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.9.5
 Project Readme

Barometer::WeatherBug (deprecated)

It appears WeatherBug has shut down their API service. This code will not be useful for getting the weather.

Build Status Gem Version Code Climate

A wrapper for the WeatherBug weather API. This wrapper is barometer compatiable and can be used with or without barometer.

Usage

This wrapper was designed to be used via Barometer, or on its own.

Directly

By using this wrapper directly, you lose any Barometer aggregation and failover capabilities. Barometer is still dependency to provide a framework for query conversion, weather service integration and data processing.

query = Barometer::Query.new('42.7243,-73.6927')
keys = {client_id: 'client_id', client_secret: 'client_secret'}

result = Barometer::WeatherBug.call(query, keys: keys)
puts result.current.temperature.c

via Barometer

Barometer is a weather service framework, providing aggregation and failover capabilities. To make WeatherBug available to Barometer, you must register it as an available weather service.

Barometer::WeatherService.register(:weather_bug, Barometer::WeatherBug)

Then follow the instructions provided by Barometer.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Links

Copyright

Copyright (c) 2009-2014 Mark Gangl. See LICENSE for details.