lita-onewheel-aqi 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b22d44d98fbba710ce62bc08ae469c593310c197
4
- data.tar.gz: b3fa0c21482cc05f849953b1d86a8b13a0f15cbb
2
+ SHA256:
3
+ metadata.gz: 3d16974af9476bbe6d1af9b5a8385d6548833deaa47855df9bbaac994f253875
4
+ data.tar.gz: fc4f834a37d5f3e506901af3df9471f82d6b3c0eaa198b4fa665759206126621
5
5
  SHA512:
6
- metadata.gz: 11560e822622b2c742d077c9bd61e5ae562b29f8d379419498954eba6ee68d39caadb562be00c86b68d290c20d899c49150fbf0cab998624d6a25bfef3a53c7d
7
- data.tar.gz: 3b8167648c321bfe75bad9addeefbbebddb2e181cf4218a2dddf912a9490789f20991d6fed248599d756374ec9fb5c0bd5fdc71b5b484125c26ba7895b738a45
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: ' + aqi['data']['iaqi']['co']['v'].to_s + ' '
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
- reply += 'pressure: ' + aqi['data']['iaqi']['p']['v'].to_s + 'mb '
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']
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-aqi'
3
- spec.version = '2.2.1'
3
+ spec.version = '2.2.2'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'AQI data retrieval bot'
@@ -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% 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/)")
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% 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/)")
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 -127740 minutes ago. 14(http://aqicn.org/city/delhi/punjabi-bagh/)")
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.1
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: 2017-11-08 00:00:00.000000000 Z
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.11
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.