purpleair 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/exe/purpleair_mqtt_bridge +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a46f10e9ea92f5cf51ca2fbdcede2555d82e9f63a8deab6aa2d2367e34c3744
4
- data.tar.gz: f33f4dc111d719da869533ddbde9f8cc3084600d3d38a993c3b7ccd81c112405
3
+ metadata.gz: 4b9e42984ee91df25030728bbe8afd7b4181f212a51408625cf20422b10d8bf3
4
+ data.tar.gz: 1b1ff17dd8ca0ead8b40b910bebbfe9d7954f5966c24217b2c5eacf2416c6d13
5
5
  SHA512:
6
- metadata.gz: 603ba3dae50a9e3f132df6d959cdad330dcac6fc69be1287ec009a383125e3c3c110be7283bf561d20c0a37f628be9c2b9981e48635cc2e6b52386519f2109e8
7
- data.tar.gz: d92dad0ba46e4c44901fc6386546f09b6f69574a2e1b5a10ac3e84b12e5c04b10e60ea0ea51a42d4e1d1ba0c348f53b921db007cf6f8a246cc81779869ce6722
6
+ metadata.gz: d8730b6073ee00126cf5f93c87d62a6e90f009e5762201a0d22ffc5f71189b52ea001d54d488ee1320cedd76763808d040e7ef5d8d2bc4d598f367eb466f0d67
7
+ data.tar.gz: 9614f9b96468cf4698b415c4de8a1bf3946fc998f3001aaabce1c1469dca58d7608e5fa0371bd175b996d6e5cc0c0f82ef5b9ce7fd0d8cb6a4935a6f3e4f2d55
@@ -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: "ºF")
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: "ºF")
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.1
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-09-03 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday_middleware