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 +4 -4
- data/CHANGELOG +1 -0
- data/lib/pzem016/pzem016.rb +2 -0
- data/lib/pzem016/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 893bb8b964fcd2cc4c17f7c82bd4f838114d9d832448e40b8e3281f3b322cd43
|
4
|
+
data.tar.gz: f78d11aac4f41c84f6b2e251fbcd12e52c764bed8bd6c4c83edab3c48541a255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ad416faf49bbabc006a33489702d53810407846ac43f81bd1c03731006f5ac7f9d6cbdac72125e008363e94f5ccb14f78865cbdd064180071ef04feb1f288fb
|
7
|
+
data.tar.gz: 32188e79a095f20a3c75349c534850ee1b962a4f85d173c06e84191b0c538a9962d79e1013df09e8df1bd6bd41069fe1677784411be9bc06b56749b9c5c7dd3f
|
data/CHANGELOG
CHANGED
data/lib/pzem016/pzem016.rb
CHANGED
@@ -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,
|
data/lib/pzem016/version.rb
CHANGED