pzem016 0.1.2 → 0.1.3

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: 463a620a80caa16d7aeb4d8df1cbed92a63f8e39a08f3a92d6cc34e88519bcd9
4
- data.tar.gz: bc58a7b3096134399252ca017b5c7ec8f12f1edeb4a7c0f9a22c7f0b7e46180f
3
+ metadata.gz: 893bb8b964fcd2cc4c17f7c82bd4f838114d9d832448e40b8e3281f3b322cd43
4
+ data.tar.gz: f78d11aac4f41c84f6b2e251fbcd12e52c764bed8bd6c4c83edab3c48541a255
5
5
  SHA512:
6
- metadata.gz: 2d07c5f715f55bbc14aebe5f6b3ded9e647f3f222c73569676bcdb733c6aba835c1d9505488eec67d293e484b9150a615f406133ba9a0aaca80136398c8f7f77
7
- data.tar.gz: 450bdf862b01186b46a7269d8cbdfdb092afef2f00fe8835faf9ee5a242fcf35219eeb3b5b2f47bfe6f1c458f6c20c2713cf9b48bce0441bd063eb6f4fb95dd2
6
+ metadata.gz: 8ad416faf49bbabc006a33489702d53810407846ac43f81bd1c03731006f5ac7f9d6cbdac72125e008363e94f5ccb14f78865cbdd064180071ef04feb1f288fb
7
+ data.tar.gz: 32188e79a095f20a3c75349c534850ee1b962a4f85d173c06e84191b0c538a9962d79e1013df09e8df1bd6bd41069fe1677784411be9bc06b56749b9c5c7dd3f
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ 0.1.3 - add slave address to report hash
1
2
  0.1.2 - add progress bar, add LICENSE, more doc fixes
2
3
  0.1.1 - doc fixes
3
4
  0.1.0 - initial release
@@ -94,6 +94,7 @@ module Pzem016
94
94
  #
95
95
  def to_hash
96
96
  {
97
+ "SlaveAddr": @slave.uid,
97
98
  "DeviceName": @name,
98
99
  "Address": @raw[2],
99
100
  "AlarmWatts": @raw[1]
@@ -168,6 +169,7 @@ module Pzem016
168
169
  #
169
170
  def to_hash
170
171
  {
172
+ "SlaveAddr": @slave.uid,
171
173
  "DeviceName": @name,
172
174
  "Volts": volts,
173
175
  "Amps": amps,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pzem016
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pzem016
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Parker