lxp-packet 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +8 -0
 - data/lib/lxp/packet/read_input1.rb +16 -12
 - data/lib/lxp/version.rb +1 -1
 - metadata +4 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 64f2d92693be97e362ae4d3485fa4772bc813a9271d0fd6aa90d60dad103fe31
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c55207ae772cbe564f7891d634547209d8e022e545711dbe5813138cd53de722
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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  
     | 
| 
      
 32 
     | 
    
         
            +
                      # peps and seps in 63..66?
         
     | 
| 
       29 
33 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
                      p_to_grid: Utils.int(@data[ 
     | 
| 
       31 
     | 
    
         
            -
                      p_to_user: Utils.int(@data[ 
     | 
| 
      
 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[ 
     | 
| 
       34 
     | 
    
         
            -
                      #  
     | 
| 
       35 
     | 
    
         
            -
                      e_inv_day: Utils.int(@data[ 
     | 
| 
       36 
     | 
    
         
            -
                      e_rec_day: Utils.int(@data[ 
     | 
| 
       37 
     | 
    
         
            -
                      e_chg_day: Utils.int(@data[ 
     | 
| 
       38 
     | 
    
         
            -
                      e_dischg_day: Utils.int(@data[ 
     | 
| 
       39 
     | 
    
         
            -
                      e_eps_day: Utils.int(@data[ 
     | 
| 
       40 
     | 
    
         
            -
                      e_to_grid_day: Utils.int(@data[ 
     | 
| 
       41 
     | 
    
         
            -
                      e_to_user_day: Utils.int(@data[ 
     | 
| 
      
 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
    
    
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 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
         
     |