Repository navigation
Web dashboard: gauges, weather Sky, units, tilt, and a faster ecobot-mcp start - #66
Merged
Merged
Conversation
The gateway reports about once a minute, so a 5-second poll mostly found nothing new. A reading now reaches the gauges, "weather now" and the rain alert within 30 s of Home Assistant having it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…e zone, reset; fewer grow to fill; see-through tiles
The page's tiles can be arranged in the browser, kept in localStorage under one versioned key ("ecobot.dashboard.v1": order and
hidden, by the tiles' titles; missing, corrupt or blocked storage: the defaults, nothing saved; keys it doesn't know kept):
- dragged from anywhere on the gauge but its title, reading and table (those stay selectable), with Pointer Events: a mouse or pen
press that moves, or a touch long press (450 ms, a 15 ms buzz where navigator.vibrate exists); the others make room with transforms,
and the dropped tile glides into place; a short tap and every click but the one ending a drag are left alone;
- a small grip and x on mouseover (or after a long press let go in place); the x hides the tile, as does a drop on the "remove"
zone sliding down from the top while dragging; "reset preferences" beside the time while any is hidden puts every tile back in
the default order;
- a tile new to the saved order takes its usual place (after the tile before it by default);
- fewer tiles grow evenly to fill the window, a single one filling it, never smaller than the full dashboard's (a phone's scrolling
tiles keep their size);
- each tile's own background clear, its foreground opaque, a thin opaque inset frame keeping the tiles distinct.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…; a click soon after a drop arrives; the x from the keyboard keeps focus - Edge scrolling stops at the end the page had when the tile was picked up. The lifted tile no longer stretches the page without end. Scroll snapping is off during a drag, so the page doesn't bounce between rows. - The click swallowed after a drop is only the drop's own: any new press clears the wait. Chromium sends no click for a drop on another tile, so before this the user's next real click was the one eaten. - Hiding a tile with its x from the keyboard moves the focus to the next tile's x (the previous one if it was last), or to the reset link when none is left, rather than dropping it to the page's start. - Tests for each: a touch drag held at the bottom edge, a click 150 ms after a drop, and the focus after Enter on the x. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…a gallery through the others; Esc or a click goes back - With more than one tile shown, the gauge's cursor is a magnifier with +, and a click or tap on it (not its text) zooms the whole tile, its proportions kept, to fill the window beside the status strip: a 200 ms FLIP (the tile grows from its place by its transform, the others fade where they were), the same back on a click or tap without moving (a mouse's not on the text; the cursor a magnifier with -) or Esc, the page scrolled where it was. A single tile: no zoom cursor, no zoom. - Zoomed, the visible tiles stand side by side in the saved order, one window apart, and the strip slides (transform only) between them: left/right arrows, Space forward, Backspace back (never the browser's back), in 200 ms; a touch swipe from anywhere, a mouse drag on the gauge and a trackpad's two-finger sideways swipe (wheel deltaX, kept from the browser, overscroll-behavior-x contained) follow the input, then settle on the nearest tile, a flick going on. It stops at the first and the last: a drag or swipe on gives like a rubber band and springs back, a key past it nudges and back. The tiles are the grid's own, so every one stays live. - A mouse drag from the title, reading or table still selects the text; a touch held on the text selects it; dragging never reorders while zoomed, and the grip and x are hidden there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…le-click zooms once; tiles reachable by the keyboard - The nudge past the first or last tile is kept and cancelled by whatever moves the strip next (a step, a drag, a swipe, Esc), from where it had got to: Esc mid-bounce no longer leaves the dashboard off the screen, and a step mid-bounce slides. - The second click of a double-click (or tap of a double tap) is ignored, however slow, rather than zooming straight back out. - Each tile takes the keyboard's focus (Tab); Enter or Space zooms it. Zoomed, the tiles not shown are inert and the keyboard's focus goes along as it pages; Esc returns with the focus on the tile shown last. A press on a gauge doesn't take the focus, and the × shows for the keyboard's focus only, so mouse users see no new clutter. - The touch test now checks that a tap straight back restores the scroll, and that a tap after paging leaves the tile shown on screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…as; their tiles framed in red; "stop animations"; temporary test links Rain (the station's rain rate above 0, now in /dashboard/data as rain_rate: the rain gauge's, or the piezo's), smog (the US AQI from Moderate, a band thicker each), radiation (UV 11), drips (humidity 95 %), leaves (wind above 50 km/h), heat (40 °C) and ice (below 0 °C, further in the colder, melting back) drawn at a third of the window's resolution and scaled up crisply, behind everything; one loop at 30 frames a second at most, a shared particle budget and strength cap, none while nothing is called for, paused when hidden, a still faint frame with reduced motion. "stop animations" in the strip while any holds, kept, put back by the reset. A removable "test:" row and ?fx= simulate each condition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… test row clear of the strip on phones; tests for the canvas behind and the combined brightness - Ice drawn at 0.4 (its glints brighter), reaching 6 % of the window's shorter side at -5 °C (9 % at -10), the corners about 1.8 times that: the tables at the window's edges stay readable. - The red frame's rules come before the drag's: a framed tile lifted shows the lifted grey, over the remove zone the remove red. - The temporary test row fits the room the strip leaves, or sits just above it where that's too little; role="group", aria-pressed. - Tests: the canvas behind a tile with hit-testing on; every effect at once no brighter than Hazardous smog alone; the drag frames on a framed tile; the test row and the strip apart on a phone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… left; uv just its beams; the wind's leaves caught in eddies and gusts; the test links renamed (wind, uv, humidity), no "all" link - The bottom strip reads "reset preferences · stop animations · updated 18:42": the links first, the time (or "reconnecting…") last, at the far bottom right. - uv (was radiation): the shimmering motes and their sprites gone; each shaft drawn as a wide faint halo and a narrow core breathing out of step, sliding slowly, the glow along the top as before. No particles. - wind (was leaves): the leaves follow the air: a steady wind to the right pulsing with gusts, turbulence from the curl of two drifting waves, and a few eddies that spring up, draw nearby leaves onto a ring round their eye, sweep them round, and fling them off as they die away; a leaf eases toward the air's speed and turns over faster where the air turns; the wind's wisps trace the same air. Still within the shared particle budget. - humidity (was drips), and the test links and ?fx= values: wind, uv, humidity. The "all" link is gone; ?fx=all still works. - Sky.state() reports each effect's particles and the budget, for the tests: uv none, the wind alone and everything together within it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… kept on narrow art, at least four, the wind slower there); the effects' old ?fx= names (leaves, radiation, drips) still work; count()'s contract noted Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…l shown picked up, focused, or red for its weather) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…ct off for now (its class still set; the rules kept, commented) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…g the window (its Daily/Monthly/Yearly table hidden, back on leaving) The tile's contents are placed by its width (cqw), so the zoomed box is only its top (to TABLE_TOP) and grows to fit the window beside the strip, centred. The table is gone at once as it zooms in and while it shrinks back, then fades in, in its place. Tests: the zoomed look at every screenshot size (in the existing sizes session), the table through both animations, the title moving with the tile; the table's text-selection check dropped (nothing to select zoomed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…ts table hidden until it's in place); the others keep their tables as they fade out flip() cancels a tile's running zoom animation before measuring, so a new one starts where the tile is drawn (no jump to the full size), and only a tile's newest animation ends its `zooming` (a cancelled one's `finished` rejects): the table never fades in on a tile still drawn large. Zooming in, the other tiles are marked `fading` (whole, their table kept) while they fade out in their grid places, so the grid's tables no longer blink off on the first frame. Test: Esc 100 ms into a zoom-in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…k kept) - The browser tests' availability (a node launch) asked once per worker as a test runs, not by every worker as it collects: collection 6.7 s down to 1.5 s a worker. - The weather test split into six (marks, several, stop, links, all, opened), the mouse zoom test into four (in, pager, last, out): each its own page and process, run side by side; sizes' pages opened side by side. - Fixed waits for animations replaced by waiting on the page at rest (calm: no DOM change for 50 ms and no animation running; capped at the old wait where that was a margin); the weather's data waits on its fetch, the ice on its reach; waits for timers (long press, double tap, a swipe's end) kept. - conftest: -n auto is 1.5 workers a CPU; the browser tests dealt out first, at most one per CPU at a time; a worker past its browser tests runs the rest at nice 10, so pages timing their animations get a CPU when they ask. - slow_tests.txt: the new test names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Tests: the strip's text, and the pages' wait for the data drawn, by the new words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… (was 95 %) Test: the mark at 90 % and just short of it (89.9 %). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…was 50; still the speed, not the gust) Test: the mark just above 15 km/h and at it (15: none). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Test: the mark at 35 °C and just short of it (34.9). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…urbulence and eddies all go right to left
The wind's air is still worked out downwind along +x and drawn mirrored (screen x = W - x, the leaf sprites mirrored too), so
the whole field is reversed exactly: the leaves and wisps come in at the right edge, the eddies' loops as before. Sky.state()
gives the leaves' on-screen speed (wind: {vx, against}).
Tests: with the wind alone, at 1024x768 and on a phone (which now shows the wind rather than rain beside its strip), the leaves
move leftward overall, as drawn on the canvas frame to frame too, and some loop rightward a moment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…aces instead of panning right forever Each beam centred on its slot, swaying 2.5-5 art px each way over 20-35 s, still brightening and dimming as before. Test: uv alone over 40 s of the page's time (its frames run on fast, on a page of its own beside the rest): each beam within 3-11 art px of travel, apart from the others, still breathing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…e test row's "clear"; the strip is "reset preferences · last reading HH:MM" The link is the page's own, in a bottom-left corner (#corner, #motion) beside the strip, or just above it where there's too little room beside it (placeCorner(), on resize, the strip's size and the link's changes). It still shows only while an effect is called for and keeps the keyboard's focus when pressed. The TEMPORARY test row puts itself into that corner before the link (its own placing code gone); too narrow for all of it (a phone), the row is scrolled to its end so its "clear" stays just left of the link. With the TEMPORARY block removed, the link stays at the bottom left on its own. Tests: the link just right of "clear" on its line at 1024x768 (beside the strip) and on a phone (above it), clear of the strip; the page without the temporary block at 1024x768 and on a phone: the link at the bottom left alone; Enter on the link from the keyboard, the focus kept; the strip's text without the link. The several-effects frame rate counted in the page by its own clock (no round trip's delay in the second counted; the same bounds). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… bounces) With one tile shown, the magnifier shows over its gauge and a click, a tap, or Enter/Space on it zooms it to its title and gauge alone, filling the window; a click or Esc goes back. The keys, a swipe or drag and a trackpad's swipe give the end-of-gallery bounce. (The "many" class gone; the zoom ends by itself only when no tile is left.) README to match. Test (a small one of its own, beside the other zoom parts): one tile (Humidity): the cursor, the zoom filling the window with no table, the keys', drags' (both ways) and a swipe's bounce, back by a click (in its place) and by Esc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…ther drawn behind the gauges, for every viewer) An on/off setting read as the other MCP_ ones (another value: a warning, the default). ecobot-mcp hands it to the page in the page itself: http_app(dashboard_animations=) -> WebDashboard(animations=) serves <html data-animations="off">, so the page knows before its script runs: #sky and the bottom-left corner (the link and the test links) are display: none, Sky is never started (no loop, nothing drawn) and no "stop animations" link is made; the tiles, the strip, zoom and arranging are as ever. Its startup line says so. docs/configuration.md (beside MCP_DASHBOARD) and README's Web dashboard section (the weather behind the gauges, and the setting). Tests: the setting read (unset, on, off, any case, empty) and a typo keeping it on with a warning; the page served with data-animations on or off and otherwise the same; in a browser with it off, every effect asked for and called for: no loop, no frame, no ink, no link, no test row, the tiles and the strip as ever (a tile hidden too); test_settings: an MCP_ setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…existing browser runs (the last-tile zoom, the test links), uv's beams on a small page; the suite back under 60 s Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Each beam 0.85-1.65 art px each way (was 2.5-5), a sway in 80-125 s (was 20-35 s), still brightening and dimming as before. Test: over 40 s of the page's time each beam within 4 art px of travel and turning back at most once (the old sway turned back several times), some moving all the same, still apart and breathing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…urtains and thinning into gaps With rain and the wind both on, each drop is blown leftward by the wind's air (a steady push, harder after a gust) and by gust bands rolling right to left (two waves, carried along with each layer's drops, so a drop stays in its band and the drops bunch where the bands squeeze them); the streak's slant follows the drop's sideways speed (sprites at a few slants, the nearest drawn), leaning harder in a band, nearly straight in a lull. The gusts are the leaves' own (the leaves feel the bands a little too); the push and the bands scale with the wind effect's presence and its gusts. Rain alone draws as before; no extra particles. Test: heavy rain alone and in the wind, each watched for 3 s beside the rest: in the wind the drops move further leftward, and their density across the window's lower half (32 px columns: variance over mean) is over 2 and far more than the rain alone's (about 1), across and over time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…rtains on a phone too - One band offset for everything: the leaves' gust bands and the rain's are the same waves, carried along as fast as the middle rain layer's drops go across while it rains (the near drops outrun them, the far ones are overtaken, and every layer bunches), at the leaves' old pace otherwise. The leaves feel the bands with or without rain, on purpose: one air. - On narrow art (a phone's) the bands are shorter, in proportion (down to 1/2.6), so a curtain and a gap still fit across, and they are not weakened by the narrow-art calm (only the steady push is). - Drops spawn only as far right as their own fall speed carries them in the wind. - Test: heavy rain in the wind on a 390x844 phone, beside the other rain pages in the "opened" run: its drops leftward and their spread across and over time above 1.3 (about 1.6-3; alone 0.8). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
With the rain and the wind both on, a drop that hits a leaf as far off as itself (its head's path this frame crossing the leaf's drawn box) knocks it: a push along the drop's slant, down and on; a burst of spin; and a little extra sink. All three add up hit after hit, so a leaf struck again and again tumbles and is battered down, then recovers as they die away. The drop ends there in a tiny splash riding on the leaf (a bead, two droplets thrown up off it). How hard: light rain barely nudges (about 5 px/s a hit), heavy rain bashes (about 45 px/s). The check is a few dozen comparisons a drop, only in the wind; frame cost unchanged in practice. Also, cheaper page loads: the leaves' few hundred sprites are made when the wind first blows, and each effect is sized to the window when it's next on, not every one at every load (together about 90 ms of script a load, about a third of a page's CPU). Test: heavy rain in the wind, the leaves hit many times (about 50-65 in 3 s at 1024x768; on a phone too), each push over 25 px/s, spin still on them; the same page first in light rain, as it fades in: its hits push under 10 px/s; the rain alone and the wind alone, no hits. (The light rain rides the heavy page's fade-in: no page of its own, no longer run.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…p that didn't fall; the browser tests split side by side - wind.knock() records each hit leaf's own velocity change (Sky.state().wind.kick); the tests check it matches the push and that heavy rain's knocks are far harder than light rain's. - A drop that didn't fall this frame (a still frame redrawn) hits no leaf. - The longest browser tests run their parts as separate browsers side by side (arranging, touch, zoom last/single and out/keys, zoom on a phone); the page-opening weather pages open side by side. - The tests that drive the tiles are served with the weather off (MCP_DASHBOARD_ANIMATIONS off), so the machine's time goes to the moves they time; the weather tests still drive the tiles over it. - Esc mid-zoom is timed in the page from the click rather than by waits around round trips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…ck that dries A bead swells at the wet top edge till it's heavy, then runs down the window as on glass: plump (rounded below and heaviest there, its top a little narrower and round too; no point, no thread above it), stop-start (pausing, running on, now and then quicker), wandering a little (a kink here, a slant there, kept a while; at most 7 art px either side of where it began), now and then catching an earlier bead's still-wet track and following it, faster and pausing less there. It leaves a faint, broken, glassy track behind it (a few pixels catching a glint) that dries over 30 s, its pixels dropping out as it dries; it shrinks as it goes and fades out somewhere in the window's lower half. The wind doesn't move it. The tracks: a wetness grid and a small canvas, rewritten five times a second. The beads at the top and those running share the particle budget. Tested (beside the rest, on small pages run fast): alone and with the wind, the beads only go down, wander within their bound without drifting either way, never reach the bottom, end in the lower half, have their track behind them, the tracks dry, and they run faster on an earlier track. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…ed from the screen's clientWidth/Height, not innerWidth that a zoomed-out stale frame skews; columns minmax(0, w) so none overflows; a relayout on visualViewport resize and 300 ms after); the weather's canvas and the corner and gallery too; a rotation round-trip browser test Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… 20 px) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… a run Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…budget at heavy) Grown beads cost a whole particle against a tiny one's quarter, so heavy's glass held fewer still beads than light's. Humidity's own budget now rises with its level (HEAVIER 0.38 at heavy). No new spawning path: nothing condenses in a run, none at the cap. Rain's budget and the bead rules are untouched. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…n downhill (devicemotion, corrected for the screen's rotation, smoothed, flat dead zone; iOS asks from a "tilt" link); tests and README Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
One of the largest sprite-size beads (r 3.9 up to the largest size) taking in a tiny bead swells ~10% (whole px, lower edge kept) for a few tenths of a second, easing back. Water added exactly as before; drawn by a swelled() sprite beside squashed()/elongated(); the bead's own clock, no draws. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…y down Once a bead has steered into another bead's run and reached it, it keeps to the run's middle row by row, wherever it wanders (a break in the run, or the bead ahead on it, held straight across), until it merges, runs off the bottom, or the run ends. Test: locked beads stay on the run's middle and none lets go with the run still ahead. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…no pauses Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…hange, pageshow, visualViewport resize/scroll, screen.orientation, timed retries until the size is stable), grid never overflows its box (safe centre), a sideways-shifted page put back; iPad Pro 13 and late-size tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…irst principles, tests for all angles and both signs (iPad landscape cases as regressions), ?tiltdebug=1 readout of the raw numbers for a real iPad Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…blobs, slight pull between neighbours), steepness sin(theta) scales running speed (0 under 5 deg, smoothstep to 1 at 40, symmetric about 90, flat again face down), hysteresis, tests, README Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…rientation type), never screen.orientation.angle (iPadOS reports 0 for landscape); ?tiltdebug=1 shows the angle's source; the user's three real iPad readings and all four orientations x four edges as tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…ottom (two mirrored margin canvases), so a hiding address bar shows no bare strip; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…it runs again (after pooling, a turn or at first showing), not only after it has moved half its length; test of repeated flat/tilted restarts in every direction Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…coverage moves to per-effect tests (haze alone, heavy humidity's trails, ice grown in, rain+wind+haze budget); ?fx=all stays in the page Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…ame head, body, arms and legs kicking under the water, fingers and four-toed webbed feet; five strokes at 3.5/s, head dipping on alternate strokes; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…of the unit toggles (reset | toggles | strip), so the toggles never move when it appears or goes; wraps above on a narrow window; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…, spindly one-pixel limbs with sharp elbows and knees, oversized hands and big webbed feet, flailing out of step one limb at a time on uneven stroke timing (0.2-0.35 s); brighter underwater; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… and every limb segment twice as long (sprite 65 x 52), same head, hands and feet; deeper flood needed (0.9 of full), clipped at the flood's floor; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…same head, a long soft pale teardrop belly (22 rows, wide under the head, narrow at the hips), short stubby tapering arms with three finger-whiskers, thin curving legs ending in four long splayed toes; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… x 7) and swims a symmetrical breast stroke: glide, pull, recover, kick in a steady 1.7 s cycle, every frame an exact mirror image, ripples at the pull and kick, a mild surge with the kick; deep enough at 0.7 of full; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…r, knees-up) with the feet drawn in by the hips, and has long thin splayed toes (sprite 47 x 40); tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…bbed: a lighter green web joins neighbouring toes out to about three quarters of their length, the tips free, wide in the kick, narrow as the legs close, also on the tucked feet; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…e kick) from a smaller, scalloped web (about half their length) and each ends in a round 2 x 2 light pad; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…nkle, foot): stretched out they are straight and about 1.3x as long as head and body together, tucked up they fold in a Z (thigh up and out, shin down and in, ankle back out); sprite 47 x 50, frog appears at >= 0.85 depth; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…oe and web change (651f4a9) stays Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…tips, webbed), with subtly less webbing: the web reaches only about 60 % of the toe length, about 3 px of each tip free; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
The web dashboard (
lib/web_dashboard.html, served at/dashboard) is rebuilt around the gauges, a weather canvas ("Sky"), unit switches and device tilt, and ecobot-mcp starts and answers sooner.Dashboard
localStorageonly (ecobot.dashboard.v1), nothing is sent to the server.°C|°F,km/h|mph,hPa|inHg,mm|in, converted in the browser. The server always sends metric.MCP_DASHBOARD_ANIMATIONSon, low (gauges sweep, no weather) or off. Reduced motion behaves like off.Weather Sky (canvas)
Tilt
window.orientation(itsscreen.orientation.angleis relative to landscape).?tiltdebug=1shows the raw sensor numbers.Layout
ecobot-mcp start
Checks
python -m pytest -q -m "": 1941 passed (a few load-sensitive timing tests can fail when the machine is busy and pass on rerun).python scripts/eval_prompts.py: 101 of 101.Not verified on real hardware: iOS orientations other than landscape-primary, the Android Firefox toolbar margin width, and phone sensor noise near flat.
Generated by Claude Code