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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d619a385d96958f3d69b8486977b64ec6c0d758dff3179138714ba22f7915d5
4
- data.tar.gz: 52991e9de034ebeda649ebf48f138d9f3dc71d69d005e25d8e45bcac2bd79804
3
+ metadata.gz: 30ce4b689a7e76c8c2a3c9a1f8657d24aadbcaa981c2e4d6892b5d65c490bd32
4
+ data.tar.gz: 5d353f3b783dd597fa0481efbcd117461f15bd2ffe174005c00e161b39aee458
5
5
  SHA512:
6
- metadata.gz: af0afea0cbee005eb14a502cc065c8218b5e61ad466c30c32ce9cc912fea3de7471b1c39ae8feef66b29d64af5b63015ae4833e40065157e3fdc67ac141431ad
7
- data.tar.gz: 60ecf0d725aa18fa9f80e94cfce90ae164d0118b468b128ec2a8ac5f312cdc578d22d2a8e0f7c12ce9d7b5a08c6dd37aca4de917018fc5806ef0d12c75c9d5e8
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.current_state}"
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 current_state
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[current_state]
64
+ state_names[current_state_code]
65
65
  end
66
66
 
67
67
  def measure_time
data/lib/senec/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Senec
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
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.11.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-08 00:00:00.000000000 Z
11
+ date: 2023-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday