From 3667cbfe37c48adea46e9206aaf7eddb0c05c5e3 Mon Sep 17 00:00:00 2001 From: "Michael P. Geraci" Date: Sat, 7 Nov 2015 12:11:46 -0500 Subject: [PATCH] kill seconds from the time, add percent precipitation, kill second weather icon --- static/css/app.css | 2 +- static/css/app.sass | 2 +- static/js/AutoHUDController.coffee | 1 + static/js/build.js | 3 ++- templates/index.html | 7 ++----- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/static/css/app.css b/static/css/app.css index 2e94da0..5b8b702 100644 --- a/static/css/app.css +++ b/static/css/app.css @@ -2986,7 +2986,7 @@ body { .hud-section-time h2 { margin-top: 10px; color: #aaa; - font-size: 40px; } + font-size: 30px; } .hud-section-weather .degree-symbol { margin-left: -0.2em; } diff --git a/static/css/app.sass b/static/css/app.sass index de3306a..2a943f1 100644 --- a/static/css/app.sass +++ b/static/css/app.sass @@ -91,7 +91,7 @@ body h2 margin-top: $gutter / 5 color: $text-color-secondary - font-size: $text-size-tertiary + font-size: $text-size-quartiary .hud-section-weather .degree-symbol diff --git a/static/js/AutoHUDController.coffee b/static/js/AutoHUDController.coffee index e8641ed..66f85be 100644 --- a/static/js/AutoHUDController.coffee +++ b/static/js/AutoHUDController.coffee @@ -136,6 +136,7 @@ window.AutoHUDController = { summary: day.summary.replace(/\.$/, "") icon: day.icon tomorrow: tomorrow + precip: day.precipProbability * 100 } diff --git a/static/js/build.js b/static/js/build.js index d0af159..c0149f6 100644 --- a/static/js/build.js +++ b/static/js/build.js @@ -186,7 +186,8 @@ window.AutoHUDController = { high: this.formatTemperature(day.temperatureMax), summary: day.summary.replace(/\.$/, ""), icon: day.icon, - tomorrow: tomorrow + tomorrow: tomorrow, + precip: day.precipProbability * 100 }; }, subwayGetter: function() { diff --git a/templates/index.html b/templates/index.html index e71ae56..87e5b8c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,8 +21,6 @@

<%= d.time.hours %> : <%= d.time.minutes %> - : - <%= d.time.seconds %>

<% } %> <% if (d.date) { %> @@ -54,9 +52,8 @@


<% } %> <%= d.weather.preview.summary %> - <% if (d.weather.preview.icon) { %> - - <% } %> +
+ <%= d.weather.preview.precip %>% chance of rain <% } %>