lita-onewheel-forecast-io 1.6.4 → 1.6.5
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 +2 -0
- data/lita-onewheel-forecast-io.gemspec +1 -1
- 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: dd4ac54281b5e8db22121fc19d40df2a2f8c171c
|
4
|
+
data.tar.gz: b9794e2b5b4816427745329abd16a0085b93176f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ababca6f15fb1875f354acc352bfab32082b634ae1e7b8e9ad8b79550fda24cd782fd913a6f76e49c04c6663065801ddef9794b4b1d98b599d14e1876add48d6
|
7
|
+
data.tar.gz: c0e39cdda54a706b1d800f0f6d587c2fcb59425dc312b3666674bf5b0c94be487a7c8ee122e29d2682015877dba511e772568b888d8ae6c6972276d72946fd91
|
@@ -443,11 +443,13 @@ module ForecastIo
|
|
443
443
|
end
|
444
444
|
|
445
445
|
def do_the_today_thing(forecast, yesterday)
|
446
|
+
Lita.logger.info "Basing today on today - yesterday: #{forecast['daily']['data'][0]['temperatureMax']} - #{yesterday['daily']['data'][0]['temperatureMax']}"
|
446
447
|
temp_diff = forecast['daily']['data'][0]['temperatureMax'] - yesterday['daily']['data'][0]['temperatureMax']
|
447
448
|
get_daily_comparison_text(temp_diff, forecast['daily']['data'][0]['temperatureMax'])
|
448
449
|
end
|
449
450
|
|
450
451
|
def do_the_tomorrow_thing(forecast)
|
452
|
+
Lita.logger.info "Basing tomorrow on today - tomorrow: #{forecast['daily']['data'][0]['temperatureMax']} - #{forecast['daily']['data'][1]['temperatureMax']}"
|
451
453
|
temp_diff = forecast['daily']['data'][0]['temperatureMax'] - forecast['daily']['data'][1]['temperatureMax']
|
452
454
|
get_daily_comparison_text(temp_diff, forecast['daily']['data'][0]['temperatureMax'])
|
453
455
|
end
|