purpleair 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/purpleair_mqtt_bridge +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b9e42984ee91df25030728bbe8afd7b4181f212a51408625cf20422b10d8bf3
|
4
|
+
data.tar.gz: 1b1ff17dd8ca0ead8b40b910bebbfe9d7954f5966c24217b2c5eacf2416c6d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8730b6073ee00126cf5f93c87d62a6e90f009e5762201a0d22ffc5f71189b52ea001d54d488ee1320cedd76763808d040e7ef5d8d2bc4d598f367eb466f0d67
|
7
|
+
data.tar.gz: 9614f9b96468cf4698b415c4de8a1bf3946fc998f3001aaabce1c1469dca58d7608e5fa0371bd175b996d6e5cc0c0f82ef5b9ce7fd0d8cb6a4935a6f3e4f2d55
|
data/exe/purpleair_mqtt_bridge
CHANGED
@@ -37,10 +37,10 @@ data = purple.get.body
|
|
37
37
|
|
38
38
|
homie = MQTT::Homie::Device.new(MQTT::Homie.escape_id(data["Geo"]), "PurpleAir Sensor", mqtt: ARGV[1])
|
39
39
|
device = homie.node("device", "Device", "Device")
|
40
|
-
device.property("temperature", "Current Temperature", :integer, data["current_temp_f"], unit: "
|
40
|
+
device.property("temperature", "Current Temperature", :integer, data["current_temp_f"], unit: "°F")
|
41
41
|
device.property("relative-humidity", "Current Relative Humidity", :integer, data["current_humidity"],
|
42
42
|
format: 0..100, unit: "%")
|
43
|
-
device.property("dewpoint", "Current Dew Point", :integer, data["current_dewpoint_f"], unit: "
|
43
|
+
device.property("dewpoint", "Current Dew Point", :integer, data["current_dewpoint_f"], unit: "°F")
|
44
44
|
device.property("pressure", "Barometric Pressure", :integer, data["pressure"], unit: "hPA")
|
45
45
|
device.property("rssi", "WiFi RSSI", :integer, data["rssi"], unit: "dB")
|
46
46
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: purpleair
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday_middleware
|