kiosko 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -19
- package/cli.js +1101 -317
- package/package.json +17 -16
- package/sdk.js +49 -0
- package/web/assets/app.js +4 -4
package/README.md
CHANGED
|
@@ -19,13 +19,14 @@ and let a tiny daemon keep the panel up to date.
|
|
|
19
19
|
identical frames are never re-sent, pixel shift against burn-in, black
|
|
20
20
|
panel when everything is idle, a semaphore palette where darkness is the
|
|
21
21
|
normal state.
|
|
22
|
-
- **The editor runs anywhere
|
|
23
|
-
server and the painting run on Linux, macOS and Windows (Node.js
|
|
24
|
-
browser; fonts are bundled so a frame is pixel-identical on every OS)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
- **The editor runs anywhere, and so does the panel (USB, experimental).** The
|
|
23
|
+
editor, the server and the painting run on Linux, macOS and Windows (Node.js
|
|
24
|
+
and a browser; fonts are bundled so a frame is pixel-identical on every OS),
|
|
25
|
+
and **Windows has an installer** that needs no Node.js ([below](#windows)).
|
|
26
|
+
The **USB** connection drives LY panels (Trofeo Vision 9.16 and siblings)
|
|
27
|
+
from Node itself, with no Python and no `trcc`; see [docs/usb.md](docs/usb.md)
|
|
28
|
+
for what each OS needs. The other connections (`trcc serve`, frame files)
|
|
29
|
+
still work and are the ones tested on a real panel for months.
|
|
29
30
|
|
|
30
31
|
| | |
|
|
31
32
|
|---|---|
|
|
@@ -54,17 +55,23 @@ machine, so you can explore the editor before connecting a panel.
|
|
|
54
55
|
|
|
55
56
|
## Quick start
|
|
56
57
|
|
|
57
|
-
> **Not on npm yet.** Until the first release, run it from a clone as in
|
|
58
|
-
> [Try it in 30 seconds](#try-it-in-30-seconds), without `--demo` and with
|
|
59
|
-
> `node --conditions=source packages/server/src/cli.ts` in place of `kiosko`.
|
|
60
|
-
> Once it is published:
|
|
61
|
-
|
|
62
58
|
```sh
|
|
63
59
|
npm install -g kiosko # Node.js 22.18 or newer
|
|
64
60
|
kiosko start --open # editor at http://127.0.0.1:7420
|
|
65
61
|
kiosko service install # optional: start it with your session
|
|
66
62
|
```
|
|
67
63
|
|
|
64
|
+
### Windows
|
|
65
|
+
|
|
66
|
+
No Node.js needed: download `Kiosko-Setup-<version>-x64.exe` from the
|
|
67
|
+
[latest release](https://github.com/kiosko-lcd/kiosko/releases/latest), run it
|
|
68
|
+
(per user, no administrator) and open **Kiosko** from the Start menu. The
|
|
69
|
+
installer can start Kiosko when you sign in and add the `kiosko` command to
|
|
70
|
+
your `PATH`; uninstalling keeps your settings. It is not code-signed yet, so
|
|
71
|
+
SmartScreen may warn: *More info → Run anyway*. Panels over USB need the WinUSB
|
|
72
|
+
driver once: see [docs/usb.md](docs/usb.md). `npm install -g kiosko` works on
|
|
73
|
+
Windows too.
|
|
74
|
+
|
|
68
75
|
From a clone: `npm install && npm run dev`.
|
|
69
76
|
|
|
70
77
|
A first run creates a virtual screen with a few widgets, so there's something
|
|
@@ -74,6 +81,7 @@ screen**, pick your panel model and its connection:
|
|
|
74
81
|
| Connection | When |
|
|
75
82
|
|---|---|
|
|
76
83
|
| **Virtual** | No hardware: the editor shows it, nothing else. |
|
|
84
|
+
| **USB** | LY panels (0416:5408 / 5409) straight from Kiosko: Linux, macOS, Windows. Experimental; [needs a udev rule or the WinUSB driver](docs/usb.md). |
|
|
77
85
|
| **trcc serve** | Linux with [thermalright-trcc-linux](https://github.com/Lexonight1/thermalright-trcc-linux) running `trcc serve`. |
|
|
78
86
|
| **Frame file** | Kiosko writes `frame.jpg` atomically; an external sender (e.g. one bound to a USB serial number, for several identical panels) pushes it to the glass. |
|
|
79
87
|
|
|
@@ -212,8 +220,8 @@ The editor listens on `127.0.0.1` only. Mutating requests need an
|
|
|
212
220
|
`X-Kiosko: 1` header (a foreign web page can't send it without a CORS
|
|
213
221
|
preflight, which is never granted) and the `Host` header is checked against
|
|
214
222
|
DNS rebinding. Plugins run with your user's permissions: install only what
|
|
215
|
-
you trust. `config.json` is written
|
|
216
|
-
hold tokens.
|
|
223
|
+
you trust. `config.json` is written readable by you only (mode 0600; an owner-only ACL
|
|
224
|
+
on Windows) because widget options may hold tokens.
|
|
217
225
|
|
|
218
226
|
## Development
|
|
219
227
|
|
|
@@ -253,11 +261,12 @@ cd ../kiosko && npm install && npm run dev:link
|
|
|
253
261
|
|
|
254
262
|
## Roadmap
|
|
255
263
|
|
|
256
|
-
- **Panels on macOS and Windows**:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
264
|
+
- **Panels on macOS and Windows**: the USB connection is written (LY
|
|
265
|
+
panels, [docs/usb.md](docs/usb.md)) and byte-compatible with `trcc`, but not
|
|
266
|
+
yet verified on a real panel in each OS. Other Thermalright protocols (SCSI,
|
|
267
|
+
HID, 320×240) are still `trcc serve` only.
|
|
268
|
+
- **Packaging**: a Homebrew tap for macOS and a winget package for Windows. The
|
|
269
|
+
Windows installer is out (not code-signed yet).
|
|
261
270
|
- **Configure with AI** from the editor: a prompt with what Kiosko detected
|
|
262
271
|
on your machine, the [config schema](docs/config-schema.md) and an
|
|
263
272
|
authoring guide, then `kiosko config import` to review and apply.
|