kiosko 0.2.7 → 0.2.9
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 +45 -3
- package/cli.js +1374 -190
- package/package.json +7 -1
- package/screen-thread.js +387 -11
- package/sdk.js +28 -5
- package/web/assets/app.js +69 -3
- package/web/assets/styles.css +1 -1
package/README.md
CHANGED
|
@@ -90,8 +90,47 @@ Windows too.
|
|
|
90
90
|
|
|
91
91
|
From a clone: `npm install && npm run dev`.
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
### Updating
|
|
94
|
+
|
|
95
|
+
Kiosko asks npm once a day whether there is a newer Kiosko (and newer
|
|
96
|
+
plugins; `KIOSKO_NO_UPDATE_CHECK=1` turns it off). When there is, the editor
|
|
97
|
+
says so in its top bar (close it and it stays quiet until the next version)
|
|
98
|
+
and **Plugins → Updates** shows what's new (the GitHub release notes; where
|
|
99
|
+
GitHub can't be reached, the versions on npm), which plugin updates were
|
|
100
|
+
waiting for it, and what to do for the way this Kiosko was installed:
|
|
101
|
+
|
|
102
|
+
| Installed with | By hand | From the editor |
|
|
103
|
+
|---|---|---|
|
|
104
|
+
| **npm**, Linux / macOS | `npm install -g kiosko@<version>` (with `--registry` when yours isn't npm's, e.g. npmmirror), then restart | **Update Kiosko** |
|
|
105
|
+
| **npm**, Windows | stop Kiosko, `npm install -g kiosko@<version>`, start it | — (Windows keeps a running Kiosko's files open) |
|
|
106
|
+
| **Windows installer** | run that version's `Kiosko-Setup-<version>-x64.exe` from the [release](https://github.com/kiosko-lcd/kiosko/releases) | **Update Kiosko** |
|
|
107
|
+
| **a clone** | `git pull && npm install && npm run web:build`, then restart | — |
|
|
108
|
+
|
|
109
|
+
**Update Kiosko** never runs on its own: it starts with your click and runs
|
|
110
|
+
one update at a time. With npm it installs that exact version with your npm
|
|
111
|
+
and registry into the folder this Kiosko runs from, checks that the new one
|
|
112
|
+
starts (`kiosko --version`) and loads your plugins (`kiosko self-check`), and
|
|
113
|
+
only then restarts: through `systemctl --user` or `launchctl` when Kiosko is
|
|
114
|
+
your session service, otherwise by starting the new one and stopping once it
|
|
115
|
+
answers (if it doesn't, the running one carries on). If anything fails, the
|
|
116
|
+
version you had is installed again and the editor says why. Started from a
|
|
117
|
+
terminal, it installs and asks you to restart it. With the Windows installer
|
|
118
|
+
it downloads the release's `.exe`, checks it against the release's `.sha256`
|
|
119
|
+
and runs it only after you confirm (silently for a per-user install, with the
|
|
120
|
+
options you chose when you installed; the wizard otherwise); the installer
|
|
121
|
+
stops Kiosko and starts it again. Every step goes to **Activity**, and the
|
|
122
|
+
editor reconnects to the new version by itself.
|
|
123
|
+
|
|
124
|
+
A first run looks for the panels connected (USB and `trcc serve`) and makes a
|
|
125
|
+
screen for each, with what works on any machine with nothing to set up (the
|
|
126
|
+
time and date, the computer's vitals; your AI agents and the cats room only if
|
|
127
|
+
agents are in use here), so the panels light up at once; with none found, a
|
|
128
|
+
virtual screen to play with. Each panel plays a short animation of the Kiosko
|
|
129
|
+
mark when Kiosko starts (Settings can turn it off) and, until the setup is
|
|
130
|
+
done, a card saying how to open the editor. The editor then opens on a
|
|
131
|
+
**setup wizard** (language, your panels, what to show with live previews, place
|
|
132
|
+
and theme) that starts from those screens; skip it and set things up yourself,
|
|
133
|
+
or run it again from **Settings → Setup**. By hand, go to **Screens → Add
|
|
95
134
|
screen**, pick your panel model and its connection:
|
|
96
135
|
|
|
97
136
|
| Connection | When |
|
|
@@ -165,7 +204,7 @@ can run in PowerShell.
|
|
|
165
204
|
silently, with the tasks "start when I sign in" and "add `kiosko` to PATH":
|
|
166
205
|
|
|
167
206
|
```powershell
|
|
168
|
-
.\Kiosko-Setup-0.2.
|
|
207
|
+
.\Kiosko-Setup-0.2.9-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /TASKS=service,path
|
|
169
208
|
```
|
|
170
209
|
|
|
171
210
|
Open a new terminal afterwards so `kiosko` is on the `PATH` (or use
|
|
@@ -386,6 +425,7 @@ Some official plugins are **optional**: they don't come with Kiosko, and the
|
|
|
386
425
|
| [gaming](https://github.com/kiosko-lcd/kiosko-plugin-gaming) | game FPS, 1 % low and frame times (MangoHud, PresentMon) and the cooling: fans, pumps and coolant (liquidctl, lm-sensors, LibreHardwareMonitor) |
|
|
387
426
|
| [logs](https://github.com/kiosko-lcd/kiosko-plugin-logs) | live logs: journald, log files, Docker, macOS, Windows, Kubernetes and Loki; errors as they happen, repeats folded, secrets masked |
|
|
388
427
|
| [hazards](https://github.com/kiosko-lcd/kiosko-plugin-hazards) | official warnings (NWS, tsunami.gov, CWA, AEMET, Meteoalarm, GDACS) as full-screen alerts on every panel; informational, not a substitute for official alerts |
|
|
428
|
+
| [batteries](https://github.com/kiosko-lcd/kiosko-plugin-batteries) | the battery of your Bluetooth headphones, mouse, keyboard, controller, laptop and phone, with a warning before one runs out (UPower/BlueZ, Windows, macOS, KDE Connect) |
|
|
389
429
|
|
|
390
430
|
Every official widget, painted with its sample data: run `kiosko gallery`
|
|
391
431
|
(published to GitHub Pages by the `Gallery` workflow, together with the
|
|
@@ -439,6 +479,7 @@ Data sources, how often each source is read.
|
|
|
439
479
|
|
|
440
480
|
```
|
|
441
481
|
kiosko start [--port 7420] [--host 127.0.0.1] [--open]
|
|
482
|
+
kiosko editor [--print] # open the editor of the Kiosko running here
|
|
442
483
|
kiosko render [--screen name] [--page name] [--out frame.png] [--live]
|
|
443
484
|
kiosko import-aimonitor [--from ~/.aimonitor/config.json] [--write]
|
|
444
485
|
kiosko config schema [--out file] # JSON Schema of config.json, with your plugins
|
|
@@ -447,6 +488,7 @@ kiosko config import <file> [--apply]
|
|
|
447
488
|
kiosko doctor
|
|
448
489
|
kiosko plugins [list|add <id>|link <folder>|remove <id>]
|
|
449
490
|
kiosko service install # start with your session (systemd / launchd / Task Scheduler)
|
|
491
|
+
kiosko self-check [--json] # load the plugins as start would and say what loads
|
|
450
492
|
```
|
|
451
493
|
|
|
452
494
|
## Coming from aimonitor
|