lita-onewheel-forecast-io 1.14.5 → 1.14.6
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 +4 -4
- data/lib/lita/handlers/forecasts.rb +5 -2
- data/lita-onewheel-forecast-io.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c2ab7b8963c554383e0e765370cb89cb002982ff4e6417f491ccae69aac2029
|
4
|
+
data.tar.gz: 992fb654ee5af80e21067e5b4e39462f737b23b9cbe3577b0453bf6cd63a3730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7015753f46b98c209815ca8dfc715a38d11e3aa552990c90b9fad93faa42c8b4c8e363ffd4cc4a518791b555bac2caca6c4433482bce61c5a6b2ced54c125503
|
7
|
+
data.tar.gz: 35cc68b8f892d85ca4018b1d817e7a40c6839d20cbdf9d160f5cbfd0ae450e1b513b4262eef5acfe308a62016bdc0ce8679100f7018132b48d5c076b48ae3cce
|
@@ -143,7 +143,7 @@ module ForecastIo
|
|
143
143
|
def ansi_temp_forecast(forecast, hours = 24)
|
144
144
|
str, temperature_data = do_the_temp_thing(forecast, 'temperature', ansi_chars, hours)
|
145
145
|
resp = "#{hours} hr temps: #{get_temperature temperature_data.first.round(1)} "
|
146
|
-
resp += "(feels like #{get_current_apparent_temp(forecast)}) |#{str}| "
|
146
|
+
resp += "(feels like #{get_temperature get_current_apparent_temp(forecast)}) |#{str}| "
|
147
147
|
resp += "#{get_temperature temperature_data.last.round(1)} Range: "
|
148
148
|
resp += "#{get_temperature temperature_data.min.round(1)} - #{get_temperature temperature_data.max.round(1)}"
|
149
149
|
end
|
@@ -160,7 +160,10 @@ module ForecastIo
|
|
160
160
|
|
161
161
|
def ascii_temp_forecast(forecast, hours = 24)
|
162
162
|
str, temperature_data = do_the_temp_thing(forecast, 'temperature', ascii_chars, hours)
|
163
|
-
"#{hours} hr temps: #{get_temperature temperature_data.first.round(1)}
|
163
|
+
resp = "#{hours} hr temps: #{get_temperature temperature_data.first.round(1)} "
|
164
|
+
resp += "(feels like #{get_temperature get_current_apparent_temp(forecast)}) "
|
165
|
+
resp += "|#{str}| #{get_temperature temperature_data.last.round(1)} Range: "
|
166
|
+
resp += "#{get_temperature temperature_data.min.round(1)} - #{get_temperature temperature_data.max.round(1)}"
|
164
167
|
end
|
165
168
|
|
166
169
|
def do_the_temp_thing(forecast, key, chars, hours)
|