toon_api 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69082bc51f619df6ec80160364ffcee89c20c900
4
- data.tar.gz: 9647700ab0bcaf1991d5acb9ae41d9431b5c31d6
3
+ metadata.gz: 154550d7ff5880fa6fc76944b45f609e9d9d9fda
4
+ data.tar.gz: 4bc7ea02bb4c03c3261e1368d130cd9aa2d6050c
5
5
  SHA512:
6
- metadata.gz: e606154c40390ec6708881aa5b7cfab20c95ccbb746533e1e3f779b5d02aebcaffa9aa58ddd8c86dffc042f3f3a61df5fdc53b8411392f359abd7c899ffff624
7
- data.tar.gz: 280b99490697ee69fecf54150572551175e969c0098c2394999025829d47e2494eb8af8e10f4dbe8d0ae9be65f81e0752e0efce1388add4a2b4c78efd59a957c
6
+ metadata.gz: 753b69fe41785f73fb2a093cd17449b081c39ec313ef78371de2ec0a7bb80cfab85773ad849b6953d4199ab9116e92cbb4f339d4ee026a28c2a73a9881828898
7
+ data.tar.gz: 1ee0577a9a70f4905d2e94a57c6a509e6832b3e83c0a9641cd5942a640986fa673308ccab2074c82febb7c49619476d54364efada42067b5f3bba9ef9cfcb0ae
data/README.md CHANGED
@@ -1,7 +1,24 @@
1
- # ToonApi (WIP)
1
+ # ToonApi [![Build Status](https://travis-ci.org/maartenvanvliet/toon_api.svg?branch=master)](https://travis-ci.org/maartenvanvliet/toon_api)
2
2
 
3
3
  Ruby gem to interface with Eneco Toon intelligent thermostat. Port of https://github.com/rvdm/toon
4
4
 
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'toon_api'
11
+
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle install
17
+
18
+ Or install using
19
+
20
+ $ gem install toon_api
21
+
5
22
  ## Usage
6
23
 
7
24
  ```
@@ -9,8 +26,11 @@ require 'toon_api'
9
26
 
10
27
  toon = ToonApi.new(username, password)
11
28
  toon.login
29
+ toon.logout
12
30
 
13
31
  toon.get_thermostat_info
32
+ toon.get_gas_usage
33
+ toon.get_power_usage
14
34
 
15
35
  ```
16
36
 
@@ -74,7 +74,7 @@ class ToonApi
74
74
  return toon_state unless toon_state.empty?
75
75
 
76
76
  self.toon_state = begin
77
- response = get("/toonMobileBackendWeb/client/auth/retrieveToon_State", client_params)
77
+ response = get("/toonMobileBackendWeb/client/auth/retrieveToonState", client_params)
78
78
  JSON.parse(response.body)
79
79
  end
80
80
  end
@@ -1,3 +1,3 @@
1
1
  class ToonApi
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toon_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maarten van Vliet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-10 00:00:00.000000000 Z
11
+ date: 2016-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec