lita-onewheel-forecast-io 1.9.0 → 1.9.1
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/forecasts.rb +3 -3
- data/lita-onewheel-forecast-io.gemspec +1 -1
- 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: 33e09546f949c74898eca3909bc15e4bb6356645fe3023c71d2dede103916326
|
4
|
+
data.tar.gz: 8f78e1ef1893a01f97c66d55a5f5cfa27bc614f9fddde9f63ab328c56c05a858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a7a60d3b098e5301d01e17010b995d55b5f3cf608d3f978dd7a016e82dafeaa7bd3fc6d9c12acef7e2f6d4926d459054cb02245990f7f195a27d74245e65038
|
7
|
+
data.tar.gz: b31aa8bcad56cd473c73e824b1ff85a5f1b3d2e69446cd18feacac67a54995e92b688bf480c17d6da62b39f0af95920d9f2a6f9102ed2fcc4ac7c16138032c0b
|
@@ -294,7 +294,7 @@ module ForecastIo
|
|
294
294
|
def do_the_fog_thing(forecast, chars)
|
295
295
|
key = 'visibility'
|
296
296
|
data_points = []
|
297
|
-
data = forecast['hourly']['data']
|
297
|
+
data = forecast['hourly']['data'].slice(0,23)
|
298
298
|
|
299
299
|
max = 0
|
300
300
|
min = 10
|
@@ -308,9 +308,9 @@ module ForecastIo
|
|
308
308
|
|
309
309
|
differential = data_points.max - data_points.min
|
310
310
|
|
311
|
-
str = get_dot_str(chars, data,
|
311
|
+
str = get_dot_str(chars, data, 0, 10, key)
|
312
312
|
|
313
|
-
"
|
313
|
+
"24h fog report |#{str}| visibility #{min}mi - #{max}mi"
|
314
314
|
end
|
315
315
|
|
316
316
|
def do_the_sunrise_thing(forecast)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-forecast-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|