Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/maartenvanvliet/toon_api


https://github.com/maartenvanvliet/toon_api

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

# ToonApi [![Build Status](https://travis-ci.org/maartenvanvliet/toon_api.svg?branch=master)](https://travis-ci.org/maartenvanvliet/toon_api) [![Gem Version](https://badge.fury.io/rb/toon_api.svg)](https://badge.fury.io/rb/toon_api)

Ruby gem to interface with Eneco Toon intelligent thermostat. Port of https://github.com/rvdm/toon

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'toon_api'

```

And then execute:

$ bundle install

Or install using

$ gem install toon_api

## Usage

```
require 'toon_api'

toon = ToonApi.new(username, password)
toon.login
toon.logout

toon.get_thermostat_info
toon.get_gas_usage
toon.get_power_usage

```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/maartenvanvliet/toon_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).