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 +4 -4
- data/README.md +21 -1
- data/lib/toon_api.rb +1 -1
- data/lib/toon_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 154550d7ff5880fa6fc76944b45f609e9d9d9fda
|
4
|
+
data.tar.gz: 4bc7ea02bb4c03c3261e1368d130cd9aa2d6050c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753b69fe41785f73fb2a093cd17449b081c39ec313ef78371de2ec0a7bb80cfab85773ad849b6953d4199ab9116e92cbb4f339d4ee026a28c2a73a9881828898
|
7
|
+
data.tar.gz: 1ee0577a9a70f4905d2e94a57c6a509e6832b3e83c0a9641cd5942a640986fa673308ccab2074c82febb7c49619476d54364efada42067b5f3bba9ef9cfcb0ae
|
data/README.md
CHANGED
@@ -1,7 +1,24 @@
|
|
1
|
-
# ToonApi (
|
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
|
|
data/lib/toon_api.rb
CHANGED
@@ -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/
|
77
|
+
response = get("/toonMobileBackendWeb/client/auth/retrieveToonState", client_params)
|
78
78
|
JSON.parse(response.body)
|
79
79
|
end
|
80
80
|
end
|
data/lib/toon_api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|