lxp-packet 0.2.0 → 0.3.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: 297e7f26d9fc8a69bfe411de6907a672fdbd1457eb35d1dc9354f18aea62db1a
4
- data.tar.gz: 6b022bbca9e6b6a530f7b4182d18d64e5392d78617a4579c0faf86b07699da0a
3
+ metadata.gz: 64f2d92693be97e362ae4d3485fa4772bc813a9271d0fd6aa90d60dad103fe31
4
+ data.tar.gz: c55207ae772cbe564f7891d634547209d8e022e545711dbe5813138cd53de722
5
5
  SHA512:
6
- metadata.gz: f65e7eb3dc601ddd03ab19524a1c444a679c0c25b9c83022588f864e27dea46e82c3127e744e951bd9f984e9e71f2e3df973fcd8c1a436d29d1bed4fdb581d25
7
- data.tar.gz: 00bdbddaf9cbddecd27a72602d8a4d832bcc6b2d06bea8b1ec2f2d43c64c4da9e8ac54143014a3e798408b255bc275c098d8e2f277b0a76e2a1b59903db4859e
6
+ metadata.gz: 9ae5ae4c8df6d890bf75ec7280c598d2fb29c48977b7ffb256163b105566f73796b915c631388dea19c7b59aad2305720f7e0db7173bf0373d9bef0299d1b92f
7
+ data.tar.gz: d9290a541c2489825f76a259b467779dfc5b20f44b156a1f645d98b3515e3ab6ff1764ba99e3aa8733af07db0cae3f68f4d31b7f56da48cc32cfabee349a5c89
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.0] - 2020-04-02
11
+
12
+ ### Fixed
13
+
14
+ - decoding energy accumulation figures in ReadInput1 packets
15
+
10
16
 
11
17
  ## [0.2.0] - 2020-01-26
12
18
 
@@ -14,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
20
 
15
21
  - bitshifting logic when reading packets
16
22
 
23
+
17
24
  ## [0.1.2] - 2020-01-15
18
25
 
19
26
  ### Changed
@@ -22,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
29
  - add Packet#tcp_function
23
30
  - add Heartbeat packet support
24
31
 
32
+
25
33
  ## [0.1.0] - 2020-01-05
26
34
 
27
35
  ### Added
@@ -13,6 +13,8 @@ class LXP
13
13
  v_bat: Utils.int(@data[23, 2], :lsb) / 10.0, # V
14
14
  soc: @data[25], # %
15
15
 
16
+ # 26..28 ?
17
+
16
18
  p_pv: Utils.int(@data[29, 2], :lsb), # W
17
19
  p_charge: Utils.int(@data[35, 2], :lsb), # W
18
20
  p_discharge: Utils.int(@data[37, 2], :lsb), # W
@@ -22,23 +24,25 @@ class LXP
22
24
  p_inv: Utils.int(@data[47, 2], :lsb), # W
23
25
  p_rec: Utils.int(@data[49, 2], :lsb), # W
24
26
 
27
+ # 51..54 ?
28
+
25
29
  v_eps: Utils.int(@data[55, 2], :lsb) / 10.0, # V
26
30
  f_eps: Utils.int(@data[61, 2], :lsb) / 100.0, # Hz
27
31
 
28
- # peps and seps in 62..65?
32
+ # peps and seps in 63..66?
29
33
 
30
- p_to_grid: Utils.int(@data[66, 2], :msb), # W
31
- p_to_user: Utils.int(@data[68, 2], :msb), # W
34
+ p_to_grid: Utils.int(@data[67, 2], :lsb), # W
35
+ p_to_user: Utils.int(@data[69, 2], :lsb), # W
32
36
 
33
- e_pv_day: Utils.int(@data[70, 2], :msb) / 10.0, # kWh
34
- # not sure what 72..75 are
35
- e_inv_day: Utils.int(@data[76, 2], :msb) / 10.0, # kWh
36
- e_rec_day: Utils.int(@data[78, 2], :msb) / 10.0, # kWh
37
- e_chg_day: Utils.int(@data[80, 2], :msb) / 10.0, # kWh
38
- e_dischg_day: Utils.int(@data[82, 2], :msb) / 10.0, # kWh
39
- e_eps_day: Utils.int(@data[84, 2], :msb) / 10.0, # kWh
40
- e_to_grid_day: Utils.int(@data[86, 2], :msb) / 10.0, # kWh
41
- e_to_user_day: Utils.int(@data[88, 2], :msb) / 10.0, # kWh
37
+ e_pv_day: Utils.int(@data[71, 2], :lsb) / 10.0, # kWh
38
+ # 73..76 ?
39
+ e_inv_day: Utils.int(@data[77, 2], :lsb) / 10.0, # kWh
40
+ e_rec_day: Utils.int(@data[79, 2], :lsb) / 10.0, # kWh
41
+ e_chg_day: Utils.int(@data[81, 2], :lsb) / 10.0, # kWh
42
+ e_dischg_day: Utils.int(@data[83, 2], :lsb) / 10.0, # kWh
43
+ e_eps_day: Utils.int(@data[85, 2], :lsb) / 10.0, # kWh
44
+ e_to_grid_day: Utils.int(@data[87, 2], :lsb) / 10.0, # kWh
45
+ e_to_user_day: Utils.int(@data[89, 2], :lsb) / 10.0, # kWh
42
46
 
43
47
  v_bus_1: Utils.int(@data[91, 2], :lsb) / 10.0, # V
44
48
  v_bus_2: Utils.int(@data[93, 2], :lsb) / 10.0 # V
data/lib/lxp/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class LXP
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lxp-packet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Elsworth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-26 00:00:00.000000000 Z
11
+ date: 2020-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,7 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.0.6
79
+ rubyforge_project:
80
+ rubygems_version: 2.7.6.2
80
81
  signing_key:
81
82
  specification_version: 4
82
83
  summary: Library to generate and parse LuxPower inverter packets