senec 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/senec/request.rb +2 -2
- data/lib/senec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30ce4b689a7e76c8c2a3c9a1f8657d24aadbcaa981c2e4d6892b5d65c490bd32
|
4
|
+
data.tar.gz: 5d353f3b783dd597fa0481efbcd117461f15bd2ffe174005c00e161b39aee458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6621fc5b71d198e428a6b51db406c1e3c5e0e75248d4767c5f9d91fa77235fa2d8866b3cc978adc5fce63c166ca01257b3f904af4d684c0f170bc210011c537b
|
7
|
+
data.tar.gz: 93f57a2a8c265c07670e0c99a8a0b492defa4d3e201c13dd9928d1abbfbb3860fc9d91602b0447b5c6025174a14bfd200fe841ab6e8d687b924a57e4e3bf7ef8
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ puts "\n"
|
|
39
39
|
puts "Wallbox charge power: [ #{request.wallbox_charge_power.join(',')} ] W"
|
40
40
|
puts "\n"
|
41
41
|
puts "Grid power: #{request.grid_power} W"
|
42
|
-
puts "Current state of the system: #{request.
|
42
|
+
puts "Current state of the system: #{request.current_state_code}"
|
43
43
|
puts "Measure time: #{Time.at request.measure_time}"
|
44
44
|
|
45
45
|
# Example result:
|
data/lib/senec/request.rb
CHANGED
@@ -54,14 +54,14 @@ module Senec
|
|
54
54
|
get('WIZARD', 'APPLICATION_VERSION')
|
55
55
|
end
|
56
56
|
|
57
|
-
def
|
57
|
+
def current_state_code
|
58
58
|
get('ENERGY', 'STAT_STATE')
|
59
59
|
end
|
60
60
|
|
61
61
|
def current_state_name
|
62
62
|
throw RuntimeError, 'No state names provided!' unless state_names
|
63
63
|
|
64
|
-
state_names[
|
64
|
+
state_names[current_state_code]
|
65
65
|
end
|
66
66
|
|
67
67
|
def measure_time
|
data/lib/senec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: senec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|