Closed JulianNorton closed 7 years ago
What parameters are used to determine if two hours are identical and should be condensed?
Also, can you give an example of how you want them condensed (Text only is fine).
Here are three ways, I prefer 1—2pm
1–2pm
After further inspection, checking the weather summary (ie. "Mostly Cloudy with a 5 mph breeze") to condense hours is a little tricky, since that content is calculated in summary.ejs and we don't want to duplicate that logic in the conditional statement that decides whether or not to merge hours.
I think the best approach would be to calculate that summary first, then make the comparison, then pass it to summary.ejs (or just display it directly in daily.ejs).
Need to think about it more, feedback welcome if anyone has any.
hooray! Pushed live. Thank you :)
https://github.com/JulianNorton/weather-10kb/pull/132#pullrequestreview-38477977