From 238e9fd0e82cf740aa7e182ce068d828c778552e Mon Sep 17 00:00:00 2001 From: puterboy Date: Mon, 13 Apr 2026 14:41:01 -0400 Subject: [PATCH 1/2] - Fixes to Dockerfile - Edits to README --- README.md | 12 ++++++------ haoskiosk/Dockerfile | 6 +++--- haoskiosk/README.md | 12 ++++++------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 1e33e67..ff14aab 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,7 @@ Returns boolean depending on whether display is on or off. Usage: -`curl -X GET http://localhost:8080/is_display_on` +`curl -X GET http://localhost:/is_display_on` ### display_on {"timeout": "\"} @@ -345,7 +345,7 @@ Usage: ``` curl -X POST http://localhost:/display_on -curl -X POST http://localhost:8080/display_on -H "Content-Type: application/json" -d '{"timeout": }' +curl -X POST http://localhost:/display_on -H "Content-Type: application/json" -d '{"timeout": }' ``` ### display_off @@ -426,8 +426,8 @@ Screenshots are saved to `/media/screenshots`. Usage: ``` -curl -X POST http://localhost:8080/screenshot -curl -X POST http://localhost:8080/screenshot -H "Content-Type: application/json" +curl -X POST http://localhost:/screenshot +curl -X POST http://localhost:/screenshot -H "Content-Type: application/json" -d '{"filename": "", "quality": <1-100>, "delay: }' ``` @@ -435,7 +435,7 @@ curl -X POST http://localhost:8080/screenshot -H "Content-Type: application/json Return number of currently running concurrent processes out of max allowed. -Usage: `curl -X GET http://localhost:8080/current_processes` +Usage: `curl -X GET http://localhost:/current_processes` ### disable_inputs @@ -472,7 +472,7 @@ Usage: ``` curl -X POST http://localhost:/unmute_audio -curl -X POST http://localhost:8080/unmute_audio -H "Content-Type: application/json" -d '{"volume": }' +curl -X POST http://localhost:/unmute_audio -H "Content-Type: application/json" -d '{"volume": }' ``` ### toggle_audio diff --git a/haoskiosk/Dockerfile b/haoskiosk/Dockerfile index d401705..e65dd10 100644 --- a/haoskiosk/Dockerfile +++ b/haoskiosk/Dockerfile @@ -6,7 +6,7 @@ # Date: April 2026 ################################################################################ -ARG BUILD_FROM +ARG BUILD_FROM=ghcr.io/home-assistant/base:latest FROM $BUILD_FROM ARG BUILD_VERSION @@ -51,7 +51,8 @@ RUN apk update && apk add --no-cache \ ### Full Timezone info icu-data-full \ ### Python libraries - py3-pip \ +# py3-pip \ + py3-aiohttp \ py3-xlib \ ### Sound pulseaudio-utils \ @@ -81,7 +82,6 @@ RUN chmod a+x /run.sh COPY mouse_touch_inputs.py gesture_commands.json / COPY rest_server.py / -RUN pip install --no-cache-dir --break-system-packages aiohttp #Required for rest_server.py #### Patches # Need to patch 'unique_instance.lua' so that new instance urls overwrite active url rather than add new tab diff --git a/haoskiosk/README.md b/haoskiosk/README.md index 1e33e67..ff14aab 100644 --- a/haoskiosk/README.md +++ b/haoskiosk/README.md @@ -333,7 +333,7 @@ Returns boolean depending on whether display is on or off. Usage: -`curl -X GET http://localhost:8080/is_display_on` +`curl -X GET http://localhost:/is_display_on` ### display_on {"timeout": "\"} @@ -345,7 +345,7 @@ Usage: ``` curl -X POST http://localhost:/display_on -curl -X POST http://localhost:8080/display_on -H "Content-Type: application/json" -d '{"timeout": }' +curl -X POST http://localhost:/display_on -H "Content-Type: application/json" -d '{"timeout": }' ``` ### display_off @@ -426,8 +426,8 @@ Screenshots are saved to `/media/screenshots`. Usage: ``` -curl -X POST http://localhost:8080/screenshot -curl -X POST http://localhost:8080/screenshot -H "Content-Type: application/json" +curl -X POST http://localhost:/screenshot +curl -X POST http://localhost:/screenshot -H "Content-Type: application/json" -d '{"filename": "", "quality": <1-100>, "delay: }' ``` @@ -435,7 +435,7 @@ curl -X POST http://localhost:8080/screenshot -H "Content-Type: application/json Return number of currently running concurrent processes out of max allowed. -Usage: `curl -X GET http://localhost:8080/current_processes` +Usage: `curl -X GET http://localhost:/current_processes` ### disable_inputs @@ -472,7 +472,7 @@ Usage: ``` curl -X POST http://localhost:/unmute_audio -curl -X POST http://localhost:8080/unmute_audio -H "Content-Type: application/json" -d '{"volume": }' +curl -X POST http://localhost:/unmute_audio -H "Content-Type: application/json" -d '{"volume": }' ``` ### toggle_audio From 8c991a953f0245dd2752f9aeb1ffa42264c7ac69 Mon Sep 17 00:00:00 2001 From: puterboy Date: Wed, 6 May 2026 22:31:15 -0400 Subject: [PATCH 2/2] Prepped for release of 1.3.2 --- README.md | 2 +- haoskiosk/CHANGELOG.md | 4 ++++ haoskiosk/README.md | 2 +- haoskiosk/config.yaml | 2 +- haoskiosk/gesture_commands.json | 2 +- haoskiosk/mouse_touch_inputs.py | 4 ++-- haoskiosk/rest_server.py | 4 ++-- haoskiosk/run.sh | 2 +- haoskiosk/userconf.lua | 2 +- haoskiosk/xorg.conf.default | 2 +- 10 files changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ff14aab..810dc98 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Display HA dashboards in kiosk mode directly on your HAOS server. -## Author: Jeff Kosowsky (version: 1.3.1, April 2026) +## Author: Jeff Kosowsky (version: 1.3.2, April 2026) ## Description diff --git a/haoskiosk/CHANGELOG.md b/haoskiosk/CHANGELOG.md index e292fc6..019308f 100644 --- a/haoskiosk/CHANGELOG.md +++ b/haoskiosk/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.3.2 - April 2026 + +- Added explicit BUILD_FROM location to Dockerfile for ha core 202i6.04+ + ## v1.3.1 - April 2026 - Updated auto-login JS injection in 'userconf.lua' for 2026.4+ diff --git a/haoskiosk/README.md b/haoskiosk/README.md index ff14aab..810dc98 100644 --- a/haoskiosk/README.md +++ b/haoskiosk/README.md @@ -2,7 +2,7 @@ Display HA dashboards in kiosk mode directly on your HAOS server. -## Author: Jeff Kosowsky (version: 1.3.1, April 2026) +## Author: Jeff Kosowsky (version: 1.3.2, April 2026) ## Description diff --git a/haoskiosk/config.yaml b/haoskiosk/config.yaml index 257daab..30d1262 100644 --- a/haoskiosk/config.yaml +++ b/haoskiosk/config.yaml @@ -3,7 +3,7 @@ name: "HAOS Kiosk Display" description: | Start X server and browser on local HAOS server and display dashboards in kiosk mode (Jeff Kosowsky) -version: "1.3.1" +version: "1.3.2" slug: "haoskiosk" url: https://github.com/puterboy/HAOS-kiosk/tree/main/haoskiosk diff --git a/haoskiosk/gesture_commands.json b/haoskiosk/gesture_commands.json index 9944aa4..1118835 100644 --- a/haoskiosk/gesture_commands.json +++ b/haoskiosk/gesture_commands.json @@ -1,7 +1,7 @@ # ============================================================================== # HAOS Kiosk Display — Mouse & Touch Input Engine # File: gesture_commands.json -# Version: 1.3.1 +# Version: 1.3.2 # Copyright Jeff Kosowsky # Date: April 2026 # ------------------------------------------------------------------------------ diff --git a/haoskiosk/mouse_touch_inputs.py b/haoskiosk/mouse_touch_inputs.py index b68688d..02cbfd2 100644 --- a/haoskiosk/mouse_touch_inputs.py +++ b/haoskiosk/mouse_touch_inputs.py @@ -12,7 +12,7 @@ """------------------------------------------------------------------------------- # HAOS Kiosk Display — Mouse & Touch Input Engine # File: MouseTouchInputs -# Version: 1.3.1 +# Version: 1.3.2 # Copyright Jeff Kosowsky # Date: April 2026 # @@ -369,7 +369,7 @@ from Xlib import display #type: ignore[import-untyped] #pylint: disable=import-error from Xlib.xobject.drawable import Window #type: ignore[import-untyped] #pylint: disable=import-error #------------------------------------------------------------------------------- -__version__ = "1.3.1" +__version__ = "1.3.2" __author__ = "Jeff Kosowsky" __copyright__ = "Copyright 2025-2026 Jeff Kosowsky" #------------------------------------------------------------------------------- diff --git a/haoskiosk/rest_server.py b/haoskiosk/rest_server.py index 5cfdfeb..91ac329 100644 --- a/haoskiosk/rest_server.py +++ b/haoskiosk/rest_server.py @@ -1,7 +1,7 @@ """------------------------------------------------------------------------------- # Add-on: HAOS Kiosk Display (haoskiosk) # File: services.py -# Version: 1.3.1 +# Version: 1.3.2 # Copyright Jeff Kosowsky # Date: April 2026 @@ -70,7 +70,7 @@ from aiohttp import web #type: ignore[import-not-found] #pylint: disable=import-error #------------------------------------------------------------------------------- -__version__ = "1.3.1" +__version__ = "1.3.2" __author__ = "Jeff Kosowsky" __copyright__ = "Copyright 2025-2026 Jeff Kosowsky" diff --git a/haoskiosk/run.sh b/haoskiosk/run.sh index 25d2813..da38135 100755 --- a/haoskiosk/run.sh +++ b/haoskiosk/run.sh @@ -3,7 +3,7 @@ ################################################################################ # Add-on: HAOS Kiosk Display (haoskiosk) # File: run.sh -# Version: 1.3.1 +# Version: 1.3.2 # Copyright Jeff Kosowsky # Date: April 2026 # diff --git a/haoskiosk/userconf.lua b/haoskiosk/userconf.lua index e0a4c61..9865d53 100644 --- a/haoskiosk/userconf.lua +++ b/haoskiosk/userconf.lua @@ -1,7 +1,7 @@ --[=[ Add-on: HAOS Kiosk Display (haoskiosk) File: userconf.lua for HA minimal browser run on server -Version: 1.3.1 +Version: 1.3.2 Copyright Jeff Kosowsky Date: April 2026 diff --git a/haoskiosk/xorg.conf.default b/haoskiosk/xorg.conf.default index 102345f..4fd927e 100644 --- a/haoskiosk/xorg.conf.default +++ b/haoskiosk/xorg.conf.default @@ -1,7 +1,7 @@ ################################################################################ # Add-on: HAOS Kiosk Display (haoskiosk) # File: xorg.conf -# Version: 1.3.1 +# Version: 1.3.2 # Copyright Jeff Kosowsky # Date: April 2026 #