A live bird collage card for your Home Assistant dashboard.
Clock/weather live inside the collage; Home Assistant weather source (#6)
Adam Oberleyee86112a3ef1
diff --git a/README.md b/README.mdindex 2bafd2c3..84342db9 100644--- a/README.md+++ b/README.md@@ -176,11 +176,13 @@ window.AV_CONFIG = {// Wall-mounted display extras - see the next section.wall: {- clock: false, // time + date, top right- weather: false, // current conditions + sunrise/sunset from BirdNET-Go- fahrenheit: false, // convert BirdNET-Go's Celsius for display- cycleSeconds: 0, // auto-rotate collage -> stats -> atlas (0 = off)- hideCursor: false, // hide the mouse cursor after 8s idle+ clock: false, // time + date, in a corner of the collage+ weather: false, // current conditions + sunrise/sunset+ corner: 'bottom-right', // which corner the block lives in+ hideCursor: false, // hide the mouse cursor after 8s idle+ haToken: '', // set to use Home Assistant's weather (see below)+ weatherEntity: '', // e.g. 'weather.forecast_home'; empty = auto+ fahrenheit: false, // BirdNET-Go source only; HA uses your HA units},};```@@ -197,22 +199,31 @@ TV. For a display that's *only* a bird dashboard, there are a few extras,styled to match the page (serif numerals over small letterspaced captions,following the light/dark theme):-- **Clock** - time and date, top right.-- **Weather** - current temperature, conditions, and sunrise/sunset, pulled- from BirdNET-Go's own weather support (yr.no by default, no API key, no- setup). If you've disabled weather in BirdNET-Go the widget just stays- hidden.-- **View cycling** - rotate collage → stats → atlas every N seconds; any- touch pauses the rotation so passers-by can poke around.+- **Clock + weather, inside the collage** - time, date, current+ temperature, conditions, and sunrise/sunset sit quietly in a corner of+ the collage itself. The bird-packing treats the block as one of the+ flock: when enough birds show up to reach that corner, they nest around+ the numerals with the same silhouette-mask spacing they use against each+ other. Pick the corner with `wall.corner`.- **Cursor hiding** - the pointer disappears after 8 seconds idle.-Turn them on for everyone in `config.js` (above), or - nicer - per display-**from the URL**, so the same install serves your laptop plainly and the-wall tablet fully dressed:+**Weather sources.** By default conditions come from BirdNET-Go's built-in+weather support (yr.no - no API key, no setup; if you've disabled it the+widget stays hidden). To use **Home Assistant's weather instead** - your+configured weather integration, in your HA units, with sunrise/sunset from+HA's own `sun.sun` - set `wall.haToken` to a long-lived access token+(HA profile → Security → Long-lived access tokens) and optionally+`wall.weatherEntity`. One caution: files under `/config/www` are served+without authentication, so anyone on your LAN could read that token - use+a dedicated, non-administrator HA user for it.++Turn it all on for everyone in `config.js` (above), or - nicer - per+display **from the URL**, so the same install serves your laptop plainly+and the wall tablet fully dressed:```-/local/habird/index.html?wall clock + weather + cursor hiding-/local/habird/index.html?wall&cycle=45 ...plus rotate views every 45s+/local/habird/index.html?wall clock + weather + cursor hiding+/local/habird/index.html?wall&corner=top-left ...in a different corner```Point your wall setup (a Webpage dashboard in kiosk mode, Fully Kioskdiff --git a/homeassistant/www/apt.js b/homeassistant/www/apt.jsindex 4b1c5b82..2c075fb9 100644--- a/homeassistant/www/apt.js+++ b/homeassistant/www/apt.js@@ -614,10 +614,24 @@// Mask-aware nester. tiles: { fullW, fullH, mask, data }. Returns the// same tiles with .x, .y assigned (top-left in viewport coords).- function maskPack(tiles, W, H, xBias, yBias, pad) {+ // `obstacle` (optional, {x,y,w,h} in the same coords) is stamped into+ // the occupancy grid before any bird is placed, so the flock packs+ // around it exactly as it packs around another bird - used for the+ // wall-display clock/weather block sitting inside the collage.+ function maskPack(tiles, W, H, xBias, yBias, pad, obstacle) {var GW = Math.ceil(W / GRID_STRIDE) + 2;var GH = Math.ceil(H / GRID_STRIDE) + 2;var grid = new Uint8Array(GW * GH);+ if (obstacle) {+ var ox0 = Math.max(0, obstacle.x / GRID_STRIDE | 0);+ var oy0 = Math.max(0, obstacle.y / GRID_STRIDE | 0);+ var ox1 = Math.min(GW - 1, (obstacle.x + obstacle.w) / GRID_STRIDE | 0);+ var oy1 = Math.min(GH - 1, (obstacle.y + obstacle.h) / GRID_STRIDE | 0);+ for (var ogy = oy0; ogy <= oy1; ogy++) {+ var ooff = ogy * GW;+ for (var ogx = ox0; ogx <= ox1; ogx++) grid[ooff + ogx] = 1;+ }+ }function cellRange(tile, tx, ty, c) {// For mask cell (c[0], c[1]), return [gx0, gy0, gx1, gy1] (inclusive)@@ -678,7 +692,10 @@for (var i = 0; i < tiles.length; i++) {var t = tiles[i];var tx, ty;- if (i === 0) {+ // Anchor bird goes dead-centre - unless an obstacle (the wall+ // clock on a small screen) reaches that far, in which case it+ // falls through to the spiral search like everyone else.+ if (i === 0 && !(obstacle && collides(t, cx - t.fullW / 2, cy - t.fullH / 2))) {tx = cx - t.fullW / 2;ty = cy - t.fullH / 2;t.x = tx; t.y = ty;@@ -698,7 +715,10 @@comY += (p.y + p.fullH / 2) * a;comW += a;});- comX /= comW; comY /= comW;+ // Nothing placed yet (anchor was displaced by an obstacle):+ // grow from the viewport centre instead of a 0/0 NaN.+ if (comW > 0) { comX /= comW; comY /= comW; }+ else { comX = cx; comY = cy; }var best = null, bestCost = Infinity;var step = Math.max(GRID_STRIDE, Math.min(t.fullW, t.fullH) * 0.05);@@ -810,7 +830,20 @@var yBias = narrow ? 1.7 : 1; // gentler than the desktop bias so the// portrait cluster stays a bit wider / less tallvar pad = narrow ? Math.max(1, COLLAGE_PAD - 1) : COLLAGE_PAD;- var placed = maskPack(tiles, W, H, xBias, yBias, pad);+ // Wall-display clock/weather block: when visible, its box (plus a+ // little air so birds don't kiss the numerals) becomes a pre-stamped+ // obstacle in the packing grid - the flock flows around it.+ var obstacle = (function () {+ var wEl = document.getElementById('wallWidgets');+ if (!wEl || wEl.hidden) return null;+ var wb = wEl.getBoundingClientRect();+ if (!wb.width || !wb.height) return null;+ var cb = collage.getBoundingClientRect();+ var M = 12;+ return { x: wb.left - cb.left - M, y: wb.top - cb.top - M,+ w: wb.width + 2 * M, h: wb.height + 2 * M };+ })();+ var placed = maskPack(tiles, W, H, xBias, yBias, pad, obstacle);// Scale-to-fit: iterate shrink + repack until every tile lands on// screen. The old single-pass version dropped birds when one pass@@ -843,16 +876,20 @@scale = Math.min(scale, sx, sy);}tiles.forEach(function (t) { t.fullW *= scale; t.fullH *= scale; });- placed = maskPack(tiles, W, H, xBias, yBias, pad);+ placed = maskPack(tiles, W, H, xBias, yBias, pad, obstacle);b = clusterBounds(placed);}// Re-centre the cluster in the viewport so a small cluster doesn't- // drift to one side from the spiral's center-of-mass bias.- var dx = W / 2 - (b.L + b.R) / 2;- var dy = H / 2 - (b.T + b.B) / 2;- if (Math.abs(dx) > 1 || Math.abs(dy) > 1) {- placed.forEach(function (t) { if (t.x > -1000) { t.x += dx; t.y += dy; } });+ // drift to one side from the spiral's center-of-mass bias. Skipped+ // when an obstacle is stamped - a blind translation could shove a+ // bird back over the clock the packer just avoided.+ if (!obstacle) {+ var dx = W / 2 - (b.L + b.R) / 2;+ var dy = H / 2 - (b.T + b.B) / 2;+ if (Math.abs(dx) > 1 || Math.abs(dy) > 1) {+ placed.forEach(function (t) { if (t.x > -1000) { t.x += dx; t.y += dy; } });+ }}placed.forEach(function (r) {@@ -3410,34 +3447,60 @@// ===========================================================================// Wall-display extras (HA build)// ===========================================================================- // Opt-in widgets for wall-mounted dashboards: a clock, current weather- // (from BirdNET-Go's own weather endpoint, so no extra provider or key),- // automatic view cycling, and idle cursor hiding. Enabled per-install via+ // Opt-in widgets for wall-mounted dashboards: a clock + current weather+ // living in a corner of the collage itself (renderCollage stamps their+ // box into the packing grid so the birds nest around the numerals), and+ // idle cursor hiding for kiosk browsers. Enabled per-install via// config.js `wall: {...}`, or per-display via the URL - `?wall` turns on- // clock + weather + cursor hiding, `?cycle=45` rotates the views - so one- // install can serve both a desk browser and a kiosk.+ // clock + weather + cursor hiding, `?corner=top-left` repositions - so+ // one install can serve both a desk browser and a kiosk.+ //+ // Weather sources, in order of preference:+ // 1. Home Assistant itself (wall.haToken set): the page is served by+ // HA, so /api/* is same-origin - we read the weather entity (HA's+ // configured integration, in HA's configured units) and sun.sun+ // for sunrise/sunset.+ // 2. BirdNET-Go's /api/v2/weather/latest (no token needed; yr.no by+ // default). wall.fahrenheit converts its Celsius for display.(function wallDisplay() {var WALL = AV_CFG.wall || {};function urlFlag(name) {return new RegExp('[?&]' + name + '(=|&|$)').test(location.search);}- function urlNum(name) {- var m = location.search.match(new RegExp('[?&]' + name + '=(\\d+)'));- return m ? +m[1] : 0;+ function urlStr(name) {+ var m = location.search.match(new RegExp('[?&]' + name + '=([\\w-]+)'));+ return m ? m[1] : '';}var wallOn = urlFlag('wall');var showClock = !!WALL.clock || wallOn;var showWeather = !!WALL.weather || wallOn;- var cycleSec = urlNum('cycle') || +WALL.cycleSeconds || 0;var hideCursor = !!WALL.hideCursor || wallOn;var wrap = document.getElementById('wallWidgets');- if (wrap && (showClock || showWeather)) wrap.hidden = false;+ if (!wrap) return;+ var corner = urlStr('corner') || WALL.corner || 'bottom-right';+ if (['top-left', 'top-right', 'bottom-left', 'bottom-right'].indexOf(corner) >= 0) {+ wrap.setAttribute('data-corner', corner);+ }+ if (showClock || showWeather) wrap.hidden = false;++ // The widget box is a packing obstacle, so whenever its size settles+ // or changes (first weather paint, mostly) the collage re-packs+ // around the new footprint. The 30s data poll re-packs anyway; this+ // just avoids a visibly-overlapped first half-minute.+ var lastW = 0, lastH = 0;+ function repackIfGrown() {+ var r = wrap.getBoundingClientRect();+ if (Math.abs(r.width - lastW) > 6 || Math.abs(r.height - lastH) > 6) {+ lastW = r.width; lastH = r.height;+ renderCollageFromData();+ }+ }// ---- Clock ----// Minute precision; re-renders on the minute boundary so it never// drifts visibly. Locale decides 12/24h and date wording.- if (showClock && wrap) {+ if (showClock) {var clockEl = document.getElementById('wwClock');var timeEl = document.getElementById('wwTime');var dateEl = document.getElementById('wwDate');@@ -3452,11 +3515,7 @@}// ---- Weather ----- // BirdNET-Go records conditions alongside detections (yr.no by- // default). If its weather support is disabled the fetch fails and- // the block simply never shows. Values are metric at the source;- // wall.fahrenheit converts for display.- if (showWeather && wrap) {+ if (showWeather) {var wxEl = document.getElementById('wwWeather');var tempEl = document.getElementById('wwTemp');var condEl = document.getElementById('wwCond');@@ -3465,43 +3524,84 @@var d = new Date(iso);return isNaN(d) ? '' : d.toLocaleTimeString([], { hour: 'numeric', minute: '2-digit' });};- var drawWeather = function () {- bgJson('/weather/latest').then(function (j) {+ var paintWeather = function (temp, cond, rise, set) {+ if (typeof temp !== 'number' || isNaN(temp)) return;+ tempEl.textContent = Math.round(temp) + '\u00b0';+ condEl.textContent = (cond || '').toLowerCase();+ sunEl.textContent = (rise && set) ? ('sun ' + rise + ' \u2013 ' + set) : '';+ wxEl.hidden = false;+ var rule = document.getElementById('wwRule');+ if (rule && showClock) rule.hidden = false;+ repackIfGrown();+ };++ // -- Source 1: Home Assistant (same-origin /api with a long-lived+ // token). Weather entity comes from wall.weatherEntity, or is+ // auto-discovered as the first available weather.* entity.+ var haEntity = WALL.weatherEntity || '';+ var haJson = function (path) {+ return fetch('/api' + path, {+ cache: 'no-store',+ headers: { 'Authorization': 'Bearer ' + WALL.haToken },+ }).then(function (r) { return r.ok ? r.json() : Promise.reject(r.status); });+ };+ // HA condition slugs -> printable words.+ var haCond = function (s) {+ if (s === 'partlycloudy') return 'partly cloudy';+ if (s === 'windy-variant') return 'windy';+ return String(s || '').replace(/-/g, ' ');+ };+ var drawWeatherHA = function () {+ var entityP = haEntity+ ? Promise.resolve(haEntity)+ : haJson('/states').then(function (all) {+ var hit = (all || []).filter(function (e) {+ return /^weather\./.test(e.entity_id) && e.state !== 'unavailable';+ })[0];+ if (!hit) throw new Error('no weather entity');+ haEntity = hit.entity_id;+ return haEntity;+ });+ return entityP.then(function (ent) {+ return Promise.all([+ haJson('/states/' + ent),+ haJson('/states/sun.sun').catch(function () { return null; }),+ ]);+ }).then(function (parts) {+ var w = parts[0] || {}, attrs = w.attributes || {};+ var sun = (parts[1] || {}).attributes || {};+ paintWeather(+ attrs.temperature,+ haCond(w.state),+ sun.next_rising ? hhmm(sun.next_rising) : '',+ sun.next_setting ? hhmm(sun.next_setting) : ''+ );+ });+ };++ // -- Source 2: BirdNET-Go. Metric at the source; wall.fahrenheit+ // converts for display. HA values come already in HA's units.+ var drawWeatherBG = function () {+ return bgJson('/weather/latest').then(function (j) {var h = (j && j.hourly) || {};if (typeof h.temperature !== 'number') return;var t = WALL.fahrenheit ? (h.temperature * 9 / 5 + 32) : h.temperature;- tempEl.textContent = Math.round(t) + '°';- condEl.textContent = (h.weather_desc || h.weather_main || '').toLowerCase();var daily = j.daily || {};- var rise = daily.sunrise ? hhmm(daily.sunrise) : '';- var set = daily.sunset ? hhmm(daily.sunset) : '';- sunEl.textContent = (rise && set) ? ('sun ' + rise + ' – ' + set) : '';- wxEl.hidden = false;- var rule = document.getElementById('wwRule');- if (rule && showClock) rule.hidden = false;- }).catch(function () { /* weather disabled in BirdNET-Go - stay hidden */ });+ paintWeather(+ t,+ h.weather_desc || h.weather_main || '',+ daily.sunrise ? hhmm(daily.sunrise) : '',+ daily.sunset ? hhmm(daily.sunset) : ''+ );+ });};- drawWeather();- setInterval(drawWeather, 10 * 60 * 1000);- }- // ---- View cycling ----- // Rotates collage -> stats -> atlas every cycleSec seconds. Any- // touch/click/keypress postpones the next hop so a passerby can- // poke around without the screen yanking away mid-look.- if (cycleSec > 0) {- var cycleT = null;- var armCycle = function () {- clearTimeout(cycleT);- cycleT = setTimeout(function () {- go((currentView + 1) % 3);- armCycle();- }, cycleSec * 1000);+ var drawWeather = function () {+ (WALL.haToken ? drawWeatherHA() : drawWeatherBG())+ .catch(function () { /* source unavailable - widget stays hidden */ });};- ['pointerdown', 'keydown', 'touchstart'].forEach(function (ev) {- document.addEventListener(ev, armCycle, { passive: true });- });- armCycle();+ drawWeather();+ setInterval(drawWeather, 10 * 60 * 1000);}// ---- Idle cursor hiding ----diff --git a/homeassistant/www/config.js b/homeassistant/www/config.jsindex a8f771ee..95ac6901 100644--- a/homeassistant/www/config.js+++ b/homeassistant/www/config.js@@ -23,19 +23,37 @@ window.AV_CONFIG = {// Wall-mounted display extras. All off by default for desk browsing.//+ // The clock/weather block lives in a corner of the collage itself, and+ // the bird-packing treats it as one of the flock: if enough birds show+ // up to reach that corner, they nest around the numerals the same way+ // they nest around each other.+ //// Tip: instead of (or in addition to) these, you can switch them on// per-display from the URL, so one install serves both your laptop// and the hallway tablet:- // /local/habird/index.html?wall clock + weather + cursor hiding- // /local/habird/index.html?wall&cycle=45 ...plus rotate views every 45s+ // /local/habird/index.html?wall clock + weather + cursor hiding+ // /local/habird/index.html?wall&corner=top-left ...in a different cornerwall: {- clock: false, // time + date, top right, matching the page style- weather: false, // current conditions + sunrise/sunset, straight from- // BirdNET-Go's weather support (yr.no by default -- // no API key; hides itself if you've disabled it)- fahrenheit: false, // BirdNET-Go reports Celsius; true converts for display- cycleSeconds: 0, // auto-rotate collage -> stats -> atlas every N- // seconds (0 = off); any touch postpones the hop- hideCursor: false, // hide the mouse cursor after 8s idle (kiosks)+ clock: false, // time + date+ weather: false, // current conditions + sunrise/sunset+ corner: 'bottom-right', // 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'+ hideCursor: false, // hide the mouse cursor after 8s idle (kiosks)++ // Weather source. With haToken set, conditions come from Home+ // Assistant itself - your configured weather integration, in HA's+ // units, plus sunrise/sunset from sun.sun. Create the token under+ // your HA profile -> Security -> Long-lived access tokens.+ //+ // SECURITY NOTE: /config/www files are served without authentication,+ // so this token is readable by anyone who can reach your HA on the+ // LAN. Use a token from a dedicated, non-administrator HA user.+ //+ // Left empty, weather falls back to BirdNET-Go's built-in support+ // (yr.no by default - zero setup; hides itself if you disabled it).+ haToken: '',+ weatherEntity: '', // e.g. 'weather.forecast_home'; empty = first+ // weather.* entity found in HA+ fahrenheit: false, // BirdNET-Go source only (it reports Celsius);+ // the HA source already uses your HA units},};diff --git a/homeassistant/www/index.html b/homeassistant/www/index.htmlindex e1bf643c..df87077b 100644--- a/homeassistant/www/index.html+++ b/homeassistant/www/index.html@@ -39,21 +39,6 @@<button data-h="168" type="button">7D</button><button data-h="1000000" type="button">ALL</button></div>- <!-- Wall-display widgets (clock / weather). Hidden unless enabled via- config.js (wall: {...}) or a ?wall query param - apt.js unhides and- populates them. Sits where the menu button was in the Pi build. -->- <div class="wall-widgets" id="wallWidgets" hidden>- <div class="ww-block" id="wwClock" hidden>- <span class="ww-big" id="wwTime">--:--</span>- <span class="ww-cap" id="wwDate"></span>- </div>- <i class="ww-rule" id="wwRule" hidden aria-hidden="true"></i>- <div class="ww-block" id="wwWeather" hidden>- <span class="ww-big" id="wwTemp"></span>- <span class="ww-cap" id="wwCond"></span>- <span class="ww-cap" id="wwSun"></span>- </div>- </div><button class="menu-btn" id="menuBtn">menu</button></header>@@ -79,6 +64,24 @@<!-- ========== View 1 - Collage ========== --><section class="view" id="v0" aria-label="Bird collage"><div class="gcollage" id="collage"></div>+ <!-- Wall-display widgets (clock / weather), hidden unless enabled in+ config.js (wall: {...}) or via ?wall. Lives in a corner of the+ collage view itself; renderCollage() stamps its box into the+ packing grid so birds nest around the numerals like they do+ around each other. Sibling of #collage (not inside it) because+ renderCollage clears the collage's innerHTML on every pass. -->+ <div class="wall-widgets" id="wallWidgets" data-corner="bottom-right" hidden>+ <div class="ww-block" id="wwClock" hidden>+ <span class="ww-big" id="wwTime">--:--</span>+ <span class="ww-cap" id="wwDate"></span>+ </div>+ <i class="ww-rule" id="wwRule" hidden aria-hidden="true"></i>+ <div class="ww-block" id="wwWeather" hidden>+ <span class="ww-big" id="wwTemp"></span>+ <span class="ww-cap" id="wwCond"></span>+ <span class="ww-cap" id="wwSun"></span>+ </div>+ </div></section><!-- ========== View 2 - Stats ========== -->diff --git a/homeassistant/www/styles.css b/homeassistant/www/styles.cssindex 0b176586..85a2d6db 100644--- a/homeassistant/www/styles.css+++ b/homeassistant/www/styles.css@@ -1586,37 +1586,50 @@ body.av-local #dd-locked { display: none; }body.av-local #dd-items { display: block; }/* ============ Wall-display widgets (HA build) ============- Clock + weather in the top-right slot the Pi build's menu button- occupied. Same editorial recipe as the rest of the page: a serif- display line over a monospace, letterspaced micro-caption, all on- the paper/ink variables so the dark theme inverts for free. */+ Clock + weather as a quiet corner block INSIDE the collage view.+ renderCollage() stamps this element's box into the silhouette-packing+ grid, so when the flock grows the birds nest around the numerals the+ same way they nest around each other. Same editorial recipe as the+ rest of the page: a serif display line over a monospace, letterspaced+ micro-caption, on the paper/ink variables so dark theme inverts free.+ pointer-events:none keeps hover/click hit-testing on the birds. */.wall-widgets {- display: flex; align-items: center; gap: 18px;- text-align: right;+ position: absolute; z-index: 6;+ display: flex; flex-direction: column; gap: 10px;+ pointer-events: none;}.wall-widgets[hidden] { display: none; }-.ww-block { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }+.wall-widgets[data-corner="bottom-right"] { right: 36px; bottom: 96px; align-items: flex-end; text-align: right; }+.wall-widgets[data-corner="bottom-left"] { left: 36px; bottom: 96px; align-items: flex-start; text-align: left; }+.wall-widgets[data-corner="top-right"] { right: 36px; top: 14px; align-items: flex-end; text-align: right; }+.wall-widgets[data-corner="top-left"] { left: 36px; top: 14px; align-items: flex-start; text-align: left; }+.ww-block { display: flex; flex-direction: column; gap: 3px; }+.wall-widgets[data-corner$="right"] .ww-block { align-items: flex-end; }+.wall-widgets[data-corner$="left"] .ww-block { align-items: flex-start; }.ww-block[hidden] { display: none; }.ww-big {- font: 600 clamp(20px, 2.3vw, 30px)/1 ui-serif, "Iowan Old Style", "Bookman Old Style", Georgia, serif;+ font: 600 clamp(26px, 3vw, 40px)/1 ui-serif, "Iowan Old Style", "Bookman Old Style", Georgia, serif;color: var(--ink);font-variant-numeric: tabular-nums;letter-spacing: 0.01em;}.ww-cap {- font: 9.5px/1.35 ui-monospace, Menlo, monospace;+ font: 9.5px/1.45 ui-monospace, Menlo, monospace;letter-spacing: 0.16em; text-transform: uppercase;color: var(--ink-soft);}.ww-cap:empty { display: none; }.ww-rule {- width: 1px; align-self: stretch;+ width: 44px; height: 1px;background: var(--hairline);}.ww-rule[hidden] { display: none; }@media (max-width: 700px) {- .wall-widgets { gap: 12px; }- .ww-big { font-size: 17px; }+ .wall-widgets { gap: 8px; }+ .wall-widgets[data-corner$="right"] { right: 18px; }+ .wall-widgets[data-corner$="left"] { left: 18px; }+ .wall-widgets[data-corner^="bottom"] { bottom: 92px; }+ .ww-big { font-size: 20px; }.ww-cap { font-size: 8px; letter-spacing: 0.1em; }/* The sunrise/sunset caption is the first thing to go on a phone. */#wwSun { display: none; }