@signageos/front-applet 6.5.3 → 6.5.5
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/CHANGELOG.md +9 -0
- package/docs/applet-basics.md +27 -2
- package/docs/content/js-command.md +4 -0
- package/docs/content/js-serial.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [6.5.5] - 2024-05-24
|
|
8
|
+
### Fixed
|
|
9
|
+
- Documentation patch: Addind Applet Dispatch Throttling information
|
|
10
|
+
|
|
11
|
+
## [6.5.4] - 2024-05-15
|
|
12
|
+
### Fixed
|
|
13
|
+
- Better description of the serial port options on BrightSign
|
|
14
|
+
- Documentation patch: New section in Applet Basics for the sos.authHash used as unique device identification from Applet
|
|
15
|
+
|
|
7
16
|
## [6.5.3] - 2024-04-30
|
|
8
17
|
### Fixed
|
|
9
18
|
- Documentation patch: Browser.open() is supported on BrightSign
|
package/docs/applet-basics.md
CHANGED
|
@@ -26,6 +26,7 @@ This thread contains basic methods of every Applet used to load necessary config
|
|
|
26
26
|
| `appletVersion` | Returns current Applet version | JS API `4.5.0`, Front-display `7.8.0`|
|
|
27
27
|
| `config` object | Returns object with key-values set via Timing or as a bundled config| JS API `1.5.0`, Front-display `6.8.0`|
|
|
28
28
|
| `config` object | Returns object with key-values set via Timing or as a bundled config| `1.0.0`|
|
|
29
|
+
| `authHash` token | Returns string with unique device identifier | `1.0.0`|
|
|
29
30
|
| `capabilities` | Enum of device-specific capabilities and features | `1.0.0`
|
|
30
31
|
|
|
31
32
|
## Starting Applet
|
|
@@ -176,9 +177,33 @@ console.log(sos.config.imgUrl);
|
|
|
176
177
|
```
|
|
177
178
|
|
|
178
179
|
:::note[Guide]
|
|
179
|
-
[Custom variables in Applet](https://
|
|
180
|
+
[Custom variables in Applet](https://developers.signageos.io/docs/devspace-extras/env-variables-configuration)
|
|
180
181
|
|
|
181
|
-
How to pass custom variables and
|
|
182
|
+
How to pass custom variables and configuration to your Applet.
|
|
183
|
+
:::
|
|
184
|
+
|
|
185
|
+
## The authHash for unique device identification
|
|
186
|
+
|
|
187
|
+
The `sos.authHash` is an alternative device identifier designed for secure pairing and locating devices through the REST API.
|
|
188
|
+
|
|
189
|
+
1. The `authHash` is commonly used as a link between the Applet deployed on the device and the device in device management.
|
|
190
|
+
1. The `authHash` is unique and can be revoked upon request.
|
|
191
|
+
1. The `authHash` can be used as a universal identifier for your Applet application.
|
|
192
|
+
|
|
193
|
+
The `authHash` can be retrieved from the JS SDK API - it's available as `sos.authHash`.
|
|
194
|
+
|
|
195
|
+
```javascript
|
|
196
|
+
async function startApplet() {
|
|
197
|
+
await sos.onReady();
|
|
198
|
+
console.log(sos.authHash);
|
|
199
|
+
}
|
|
200
|
+
window.addEventListener('sos.loaded', startApplet);
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
:::note[Guide]
|
|
204
|
+
[Using authHash for device identification](https://developers.signageos.io/docs/devspace-extras/sos-authhash-device-pairing.md)
|
|
205
|
+
|
|
206
|
+
How to get `authHash` and use it in the REST API for device identification.
|
|
182
207
|
:::
|
|
183
208
|
|
|
184
209
|
## Applet JS API version
|
|
@@ -28,6 +28,10 @@ All commands will be available in [Applet Command REST API](https://developers.s
|
|
|
28
28
|
|
|
29
29
|
Dispatch() is used for sending your custom logs or data from device to signageOS.
|
|
30
30
|
|
|
31
|
+
:::warning[Throttling in place]
|
|
32
|
+
The maximum allowed frequency for dispatching commands is 30 commands per 30 seconds. Any commands sent that exceed this frequency will be discarded.
|
|
33
|
+
:::
|
|
34
|
+
|
|
31
35
|
### Parameters
|
|
32
36
|
|
|
33
37
|
| Parameter | Type | Required | Description |
|
|
@@ -89,7 +89,7 @@ Device address is different per platform (at least for now). Kindly find the res
|
|
|
89
89
|
| Windows | `COM3` | `COM3` (typically, but check your Win machine if this does not work) |
|
|
90
90
|
| Samsung Kiosk | `PORT1` |`PORT1`, `PORT2`, `PORT3` |
|
|
91
91
|
| Android | `/dev/ttyusb0` | `/dev/ttyusb0` |
|
|
92
|
-
| BrightSign | `0` | `0
|
|
92
|
+
| BrightSign | `0` | `0` (Serial jack /dev/ttyS0), `1` (GPIO port /dev/ttyS1), `USB:A/0` (USB-to-serial /dev/ttyUSB0) |
|
|
93
93
|
|
|
94
94
|
## Serial port methods
|
|
95
95
|
|