lita-onewheel-aqi 2.0.10 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/onewheel_aqi.rb +2 -2
- data/lita-onewheel-aqi.gemspec +1 -1
- data/spec/lita/handlers/onewheel_aqi_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bb25daba37a89da7727f14156565d3f0a703619
|
4
|
+
data.tar.gz: 9f1d9c790e73bf8f8969cb2db3fbc8e44fa4fbb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62c9aaa6cefe4671a67cc30628a18431347d36752225d6a6c5acb197bccd427e8297ce96ab5f6b20a52eb71e98b9c9ccc6f1ed83e16c29e49365423c3a0ee27c
|
7
|
+
data.tar.gz: 0aa1952f3b2a42dd02587e9a791b103e9c674c63fa53311f0fda8b8fda3200d4237840e521d69a33f033ab75e210304bf6ccbb4dfe81896a4a75cce044e3f4f7
|
@@ -126,7 +126,7 @@ module Lita
|
|
126
126
|
if aqi['data']['iaqi']['pm25']
|
127
127
|
reply += 'pm25: ' + color_str(aqi['data']['iaqi']['pm25']['v'].to_s) + ' '
|
128
128
|
ugm3 = pm25_to_ugm3 aqi['data']['iaqi']['pm25']['v'].to_s
|
129
|
-
reply += "#{ugm3}
|
129
|
+
reply += "µg/m³(est): #{ugm3} "
|
130
130
|
end
|
131
131
|
if aqi['data']['iaqi']['pm10']
|
132
132
|
reply += 'pm10: ' + color_str(aqi['data']['iaqi']['pm10']['v'].to_s) + ' '
|
@@ -165,7 +165,7 @@ module Lita
|
|
165
165
|
if aqi['data']['iaqi']['pm25']
|
166
166
|
reply += 'pm25: ' + color_str(aqi['data']['iaqi']['pm25']['v'].to_s) + ' '
|
167
167
|
ugm3 = pm25_to_ugm3 aqi['data']['iaqi']['pm25']['v']
|
168
|
-
reply += "#{ugm3}
|
168
|
+
reply += "µg/m³(est): #{ugm3} "
|
169
169
|
end
|
170
170
|
if aqi['data']['iaqi']['pm10']
|
171
171
|
reply += 'pm10: ' + color_str(aqi['data']['iaqi']['pm10']['v'].to_s) + ' '
|
data/lita-onewheel-aqi.gemspec
CHANGED
@@ -34,11 +34,11 @@ describe Lita::Handlers::OnewheelAqi, lita_handler: true do
|
|
34
34
|
|
35
35
|
it 'queries the aqi' do
|
36
36
|
send_command 'aqi'
|
37
|
-
expect(replies.last).to include("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ pm25: 0876
|
37
|
+
expect(replies.last).to include("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ pm25: 0876 µg/m³(est): 23.99 pm10: 0340 updated 0860 minutes ago. 14(http://aqicn.org/city/usa/oregon/government-camp-multorpor-visibility/)")
|
38
38
|
end
|
39
39
|
|
40
40
|
it 'queries the aqideets' do
|
41
41
|
send_command 'aqideets'
|
42
|
-
expect(replies.last).to eq("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ humidity: 11% pressure: 1014mb pm25: 0876
|
42
|
+
expect(replies.last).to eq("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ humidity: 11% pressure: 1014mb pm25: 0876 µg/m³(est): 23.99 pm10: 0340 temp: 34.65C updated 0860 minutes ago. 14(http://aqicn.org/city/usa/oregon/government-camp-multorpor-visibility/)")
|
43
43
|
end
|
44
44
|
end
|