Commit Graph
22 Commits
Author SHA1 Message Date
franzz 5b82a24ac4 fix music navs
Deploy HEOS panel / deploy (push) Successful in 25s
2026-09-15 23:19:11 +02:00
franzz 7c19ff9096 Add spotify integration
Deploy HEOS panel / deploy (push) Successful in 25s
2026-09-15 22:07:43 +02:00
franzz 6a0f1fa5e8 fix AVR input swap
Deploy HEOS panel / deploy (push) Successful in 25s
2026-09-15 17:20:24 +02:00
franzz dc7f09052d play/pause
Deploy HEOS panel / deploy (push) Successful in 24s
2026-09-15 01:03:25 +02:00
franzz d2d7677519 Changing port
Deploy HEOS panel / deploy (push) Successful in 24s
2026-09-15 00:46:41 +02:00
franzz ce8596945e Fix service restarter test
Deploy HEOS panel / deploy (push) Failing after 44s
2026-09-15 00:08:00 +02:00
franzz 9a5f2ac639 Swaping back to nodejs dependent checkout
Deploy HEOS panel / deploy (push) Failing after 36s
2026-09-14 23:58:53 +02:00
franzz a7a8ab6f4e Simplify deployment
Deploy HEOS panel / deploy (push) Failing after 0s
2026-09-14 23:48:51 +02:00
franzzandClaude Opus 5 4cff820070 Check out with git rather than actions/checkout
Deploy HEOS panel / deploy (push) Failing after 0s
actions/checkout is a JavaScript action, so a host-mode runner needs node
on its PATH to run it and fails with "Cannot find: node in PATH" without
one. Every step is plain shell now, which needs nothing of the runner
beyond git, python3, rsync and curl.

The clone is shallow and takes its URL from the live checkout's remote, so
there is no URL or token in the workflow. It works because the runner
already has to run as the user that owns that checkout.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 23:35:29 +02:00
franzzandClaude Opus 5 ffb1447209 Restore .gitignore, and ignore the CI virtualenv
Deploy HEOS panel / deploy (push) Failing after 0s
The file had been deleted in the working tree, which is why __pycache__
started showing up as untracked. .venv-ci is the throwaway environment
the deploy workflow builds inside the runner's checkout.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 23:02:00 +02:00
franzzandClaude Opus 5 467cae4dd5 Add a Gitea deploy workflow and the systemd unit it restarts
Shaped after the Livetrail workflow: one job on a project-labelled host
runner, preflight checks, rsync from the runner's checkout. rsync rather
than a pull in the live directory, so the deploy needs no credentials of
its own for git:.

The tests run first and gate the rest, .venv and members.json are excluded
so the runtime and the learned stereo pair survive, and the last step
waits for the panel to answer -- the home page renders from config alone,
so it says the app came back up without waiting on the speakers.

The unit carries the real paths and user, which the README's sketch of it
never did.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 22:56:21 +02:00
franzzandClaude Opus 5 f6c98abe90 Add an nginx version of the /heos proxy
Same contract as the Apache one -- strip the prefix off the request, tell
the app about it with X-Forwarded-Prefix, keep it to the local network --
with the two things nginx needs that Apache did not: a redirect for the
bare /heos, which would otherwise miss the location and fall through to
the filesystem, and the trailing slash on proxy_pass that does the
stripping.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 22:16:30 +02:00
franzzandClaude Opus 5 6d132f53ff Serve the panel from a sub-path, and an Apache conf for /heos
The app assumed it lived at the server root: its links were /static/...
and its fetches /api/..., which behind a proxy at /heos resolve to the
wrong place, so the page would load and nothing on it would work.

It now takes the prefix from X-Forwarded-Prefix, and everything it
generates -- stylesheet, icons, the manifest's start_url, every fetch --
follows. Nothing changes when it is served from its own port.

deploy/heos.conf is the Apache side, restricted to the local network by
default, since this controls the speakers and the vhost it hangs off has
a public certificate.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:57:16 +02:00
franzzandClaude Opus 5 6213bcf23f Show merged rooms inside the host's card
Two cards side by side said nothing about whether the rooms were playing
together; now a room that joins the AVR moves into its card, under the
input it is playing, and leaving puts the card back in its own slot. The
button changes with it: Join Home Cinema when it stands alone, Leave when
it is in the group, since the card's position already says which it is.

Also fixes Separate everything, which sent a GET to a POST-only route and
so failed with a 405 and snapped the rooms straight back.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:50:02 +02:00
franzzandClaude Opus 5 aa1b734b3a Use the HEOS mark, in white, for the header and the icon
The word HEOS at the top of the panel becomes the mark itself, and the
home-screen icons are rendered from the same file so there is one place
to change it. All white on transparent: the panel is dark, and iOS lays
a transparent apple-touch-icon over black.

make_icons.py no longer draws its own glyph -- it rasterises logo.svg
with headless Chromium, which is heavier than the old arithmetic but the
only way to render real paths without a system SVG library. The PNGs are
committed, so it only has to run when the logo changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:45:33 +02:00
franzzandClaude Opus 5 1a1fcc84d6 Snap volume to whole steps, and hide deleted AVR sources
A tap now moves to the next multiple of VOLUME_STEP rather than adding
it, so 23 goes to 25 and 25 goes to 30 and the levels stay round. The
panel counts taps and lets the speakers do the rounding from whatever
level they are actually at, since the phone's copy can be seconds old;
the same rule is mirrored in JS so the optimistic number never has to
correct itself when the reply lands.

The input picker also asks the AVR which sources are still switched on
(SSSOD ?) and leaves out the ones deleted in its setup menu. Sources it
does not mention are kept, so a model that ignores the command shows its
whole list rather than nothing; deleted sources also keep their names, in
case the AVR is sitting on one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:39:31 +02:00
franzzandClaude Opus 5 4affd18b3b Move volume in steps of 5
Two was too fine to be useful on a remote you tap rather than drag.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:34:37 +02:00
franzzandClaude Opus 5 a1fb7a318a Stop the input sheet covering the whole panel
`hidden` is only a UA stylesheet rule, so .sheet-wrap's display:flex beat
it and the sheet was never hidden: a full-screen scrim sat over the app
from the moment it loaded, blurring it and swallowing every tap, with an
empty option list because openSheet() had never run to fill it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:30:41 +02:00
franzzandClaude Opus 5 e3b2804aa0 Install into a virtual environment
Raspberry Pi OS refuses pip install into the system Python, so the venv
step is the difference between the README working and not. The systemd
unit points at that interpreter for the same reason.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:18:13 +02:00
franzzandClaude Opus 5 375bcfdd76 Merge the bridge and a home-screen interface into one app
The HEOS app is unpleasant to use for the four things that actually get
done in this house, so this is those four things on one screen: volume
for the Home 400 and the Living Room pair, joining either to the AVR,
splitting them off again, and picking the AVR's input.

The bridge's logic moves in mostly intact, split into a HEOS client, an
AVR client and a controller, with two grouping bugs fixed on the way:

  * Merging a room into the AVR sent only the pair's leader pid, which
    left the second Home 200 behind. Group targets now expand to every
    member pid, and unmerging re-forms the pair rather than leaving two
    lone speakers. The members are learned while the pair is visible and
    remembered in members.json so a restart can still rebuild it.

  * Volume for the pair used its gid, which stops existing the moment it
    joins the AVR's group. It now falls back to the member players.

Both sockets are kept open rather than reconnecting per command, which
is what made every button press feel slow; the AVR connection doubles as
a listener, so input changes made with the physical remote show up too.

The original query-string endpoints still answer, so anything already
pointed at the bridge keeps working.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:15:43 +02:00
franzz 86fdf9a4d3 Add the original heos_bridge.py before merging it into the panel
Recording the bridge as it stood so the rewrite that follows has
something to be a diff against, rather than appearing from nowhere.
2026-09-14 21:14:21 +02:00
franzz d9cadb7e64 Initial commit 2026-09-14 20:52:23 +02:00