lita-onewheel-aqi 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/lita/handlers/onewheel_aqi.rb +4 -4
- data/lita-onewheel-aqi.gemspec +1 -1
- data/spec/lita/handlers/onewheel_aqi_spec.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3d16974af9476bbe6d1af9b5a8385d6548833deaa47855df9bbaac994f253875
|
4
|
+
data.tar.gz: fc4f834a37d5f3e506901af3df9471f82d6b3c0eaa198b4fa665759206126621
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3255d2c11813d594bab9a41f782050adb8713a6916a210b108b3273715d1a3b109b618bc40e020a65917f44dae2371a87a17f6e887db920a8d19905158d61020
|
7
|
+
data.tar.gz: ed1c77f611812c702cc77449df4f43f72b20440335ad22f78abc079ede5d88f78963a8d122f46549a7e7d1ed5bf449d73e00f36da6f77b5079c3d2d0f4052e4e
|
@@ -191,14 +191,14 @@ module Lita
|
|
191
191
|
end
|
192
192
|
|
193
193
|
if aqi['data']['iaqi']['co']
|
194
|
-
reply += 'co
|
194
|
+
reply += 'co²: ' + aqi['data']['iaqi']['co']['v'].to_s + ' '
|
195
195
|
end
|
196
196
|
if aqi['data']['iaqi']['h']
|
197
197
|
reply += 'humidity: ' + aqi['data']['iaqi']['h']['v'].to_s + '% '
|
198
198
|
end
|
199
|
-
if aqi['data']['iaqi']['p']
|
200
|
-
|
201
|
-
end
|
199
|
+
# if aqi['data']['iaqi']['p']
|
200
|
+
# reply += 'pressure: ' + aqi['data']['iaqi']['p']['v'].to_s + 'mb '
|
201
|
+
# end
|
202
202
|
if aqi['data']['iaqi']['pm25']
|
203
203
|
reply += 'pm25: ' + color_str(aqi['data']['iaqi']['pm25']['v'].to_s) + ' '
|
204
204
|
ugm3 = pm25_to_ugm3 aqi['data']['iaqi']['pm25']['v']
|
data/lita-onewheel-aqi.gemspec
CHANGED
@@ -60,7 +60,7 @@ describe Lita::Handlers::OnewheelAqi, lita_handler: true do
|
|
60
60
|
it 'queries the aqideets' do
|
61
61
|
mock('Output')
|
62
62
|
send_command 'aqideets'
|
63
|
-
expect(replies.last).to eq("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ humidity: 11%
|
63
|
+
expect(replies.last).to eq("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ humidity: 11% 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/)")
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'queries the aqi by location' do
|
@@ -72,12 +72,12 @@ describe Lita::Handlers::OnewheelAqi, lita_handler: true do
|
|
72
72
|
it 'queries the aqideets' do
|
73
73
|
mock('Output')
|
74
74
|
send_command 'aqideets Beaverton'
|
75
|
-
expect(replies.last).to eq("AQI for Beaverton, OR, USA, ⚠️ 08Moderate ⚠️ humidity: 11%
|
75
|
+
expect(replies.last).to eq("AQI for Beaverton, OR, USA, ⚠️ 08Moderate ⚠️ humidity: 11% 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/)")
|
76
76
|
end
|
77
77
|
|
78
78
|
it 'dehli' do
|
79
79
|
mock('dehli')
|
80
80
|
send_command 'aqi'
|
81
|
-
expect(replies.last).to eq("AQI for Portland, OR, USA, 🚫☣🚫 13Hazardous 🚫☣🚫 pm25: 13641 µg/m³(est): 615.1 pm10: 13875 updated -
|
81
|
+
expect(replies.last).to eq("AQI for Portland, OR, USA, 🚫☣🚫 13Hazardous 🚫☣🚫 pm25: 13641 µg/m³(est): 615.1 pm10: 13875 updated -127800 minutes ago. 14(http://aqicn.org/city/delhi/punjabi-bagh/)")
|
82
82
|
end
|
83
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-aqi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
190
|
version: '0'
|
191
191
|
requirements: []
|
192
192
|
rubyforge_project:
|
193
|
-
rubygems_version: 2.6
|
193
|
+
rubygems_version: 2.7.6
|
194
194
|
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: Reads the current AQI from aqicn.org and displays it.
|