mirror of
https://github.com/debloper/xiosk.git
synced 2026-04-27 05:45:54 +03:00
[PR #91] [CLOSED] Add parameterized controls and standalone binary build #100
Labels
No labels
bug
bug
documentation
enhancement
enhancement
feature request
good first issue
good first issue
help wanted
invalid
priority: high
priority: low
priority: medium
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/xiosk#100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/debloper/xiosk/pull/91
Author: @parthsidpara
Created: 7/27/2025
Status: ❌ Closed
Base:
main← Head:v4/sea-and-parameterization📝 Commits (1)
42f9435Add parameterized controls and standalone binary build📊 Changes
11 files changed (+595 additions, -167 deletions)
View changed files
➕
.github/workflows/release.yml(+119 -0)📝
.gitignore(+6 -0)➕
build.js(+43 -0)📝
config.json.sample(+37 -23)📝
index.js(+105 -21)📝
package.json(+6 -2)📝
scripts/setup.sh(+98 -66)📝
scripts/switcher.sh(+71 -18)📝
services/piosk-dashboard.template(+2 -1)📝
web/index.html(+48 -4)📝
web/script.js(+60 -32)📄 Description
PR Summary
A. Parameterized Controls
The primary goal was to allow users to set a custom display duration and refresh cycle for each URL in the PiOSK dashboard and to improve the UX, giving a visual clue for the setting changes that are not yet applied.
Dashboard UI:

The web dashboard has been updated with
"Duration"(in seconds) and"Cycles"(number of views before a refresh) input fields for each URL entry.Configuration:
The
config.jsonfile structure was modified to store these newdurationandcyclesvalues for each URL object.System Script Update:
The
switcher.shscript was completely rewritten. It now reads thedurationandcyclecount for each tab from theconfig.jsonfile and maintains an independent timer and refresh counter for each. This provides the control required.B. Standalone Binary Deployment
To simplify installation and eliminate dependencies for the end-user, the project has been configured to be distributed as a single executable file.
SEA Support:
We are using the native Single Executable Application (SEA) feature built into Node.js. This allows us to package our application directly into a Node.js runtime.
The Need for a Bundler:
A key challenge with SEAs is that they cannot natively include external code dependencies (like the
expressweb server).To solve this, we have integrated the
esbuildbundler into our build process. During our release cycle on GitHub,esbuildcombines our application code and all its dependencies into a single JavaScript file.This bundled file is then injected into the Node.js binary. This is a necessary compile-time step to create a truly self-contained executable.
User Experience:
The final installation process for the user remains a single command:
This script automatically detects the user's Raspberry Pi architecture (
ARM32/ARM64), downloads the correct pre-compiled binary from our GitHub Releases, and configures the system services to run the PiOSK automatically on boot.Testing and Current Status
Local Validation
All components have been successfully tested in an Ubuntu desktop environment:
esbuildand creating the binary) completes successfully.runner.shandswitcher.shscripts were tested manually and confirmed to work as intended.Next Steps
Test the end-to-end installation and operation on a Raspberry Pi device with both 32-bit and 64-bit OS.
Run the
setup.shscript to validate:Perform a full system reboot to confirm PiOSK launches automatically as designed.
Update documentation once all changes have been successfully verified.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.