Skip to content

About

Display any web page on Apple HomeView via a virtual HomeKit camera

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

homeview-canvas

Warning

Work in progress. The built-in feed shows demo data.

Show web pages on a HomeView "Home Camera" face by publishing them as a HomeKit camera.

The built-in feed as a Home Camera face

Chromium renders a page at the HomeView screen size (1088 x 1088), ffmpeg encodes it to H.264, and a patched go2rtc serves it as a HomeKit IP camera. A web console (Tular UI, English and Simplified Chinese) manages it. The device in the picture is an illustration. Not affiliated with Apple.

Pages

  • A page is a URL or an HTML document. The root page is shown when nothing else is.
  • Other pages are shown by hand, on a schedule or through the HTTP API, stay for their duration and enter with a PowerPoint-style transition.
  • Higher priority wins; a hidden page keeps counting down, and pages of equal priority queue.
  • Each page picks a bottom mask that keeps it clear of HomeView's overlay (name, Live, time).
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"html":"<h1>Hello</h1>","priority":90,"duration":20}' http://<host>:8080/api/v1/show

Tokens and the endpoint reference are in the console under API.

Quick start

On a Linux host in the same LAN as the Apple devices (host network, for mDNS and SRTP):

docker compose up -d --build
docker compose exec canvas cat /data/initial-admin-password

Open http://<host>:8080, sign in, and add the camera in the Home app with the code shown under HomeKit. A core without LAN presence (e.g. Docker Desktop with an NVIDIA GPU, compose.core.yml) can push to a relay on the LAN (compose.relay.yml).

Limitations

  • HomeView shows the centre square of the stream at 1280x720@30.
  • A camera picture is display-only: touches do not reach the page.
  • The camera name is HomeView's title; changing it makes HomeView reconnect for a few seconds.
  • To show any URL, the renderer turns off site isolation for its own browser.

Licence

GPL-3.0 (see LICENSE). The image bundles go2rtc (MIT, patched in third_party/go2rtc/), ffmpeg with libx264 (GPL) and Chromium.

About

Display any web page on Apple HomeView via a virtual HomeKit camera

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages