@signageos/front-applet 5.0.1 → 5.2.0
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 +28 -10
- package/dist/bundle.js +2 -2
- package/dist/bundle.js.map +1 -1
- package/docs/js-api/js-api-introduction.md +30 -30
- package/docs/js-api/js-applet-basics.md +2 -1
- package/docs/js-api/js-applet-resources.md +2 -2
- package/docs/js-api/js-browser.md +1 -1
- package/docs/js-api/js-file-system.md +1 -1
- package/docs/js-api/js-input.md +1 -1
- package/docs/js-api/js-loading-fonts.md +1 -1
- package/docs/js-api/js-monitoring-commands.md +1 -1
- package/docs/js-api/js-offline-cache-media-files.md +3 -3
- package/docs/js-api/js-offline-cache-simple-data.md +2 -2
- package/docs/js-api/js-sensors.md +1 -1
- package/docs/js-api/js-sync-playback.md +24 -3
- package/docs/js-api/js-video-inputs-internal-ports.md +1 -1
- package/docs/js-api/js-video-stream.md +2 -2
- package/docs/js-api/js-video.md +1 -1
- package/docs/management-api/10-js-management-application.md +2 -2
- package/docs/management-api/2-js-management-firmware.md +17 -3
- package/docs/management-api/2-js-management-os.md +33 -0
- package/docs/management-api/5-js-management-screen.md +1 -1
- package/docs/management-api/6-js-management-time.md +1 -1
- package/docs/management-api/9-js-management-debug.md +2 -2
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +11 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +35 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfoHelper.d.ts +8 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfoHelper.js +3 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfoHelper.js.map +1 -0
- package/es6/FrontApplet/FrontApplet.d.ts +2 -0
- package/es6/FrontApplet/FrontApplet.js +2 -0
- package/es6/FrontApplet/FrontApplet.js.map +1 -1
- package/es6/FrontApplet/Management/IOSInfo.d.ts +11 -0
- package/es6/FrontApplet/Management/IOSInfo.js +3 -0
- package/es6/FrontApplet/Management/IOSInfo.js.map +1 -0
- package/es6/FrontApplet/Management/Management.d.ts +2 -0
- package/es6/FrontApplet/Management/Management.js +2 -0
- package/es6/FrontApplet/Management/Management.js.map +1 -1
- package/es6/FrontApplet/Management/OS.d.ts +9 -0
- package/es6/FrontApplet/Management/OS.js +30 -0
- package/es6/FrontApplet/Management/OS.js.map +1 -0
- package/es6/FrontApplet/Sync/IDeviceStatusEvent.d.ts +5 -0
- package/es6/FrontApplet/Sync/IDeviceStatusEvent.js +3 -0
- package/es6/FrontApplet/Sync/IDeviceStatusEvent.js.map +1 -0
- package/es6/FrontApplet/Sync/Sync.d.ts +7 -1
- package/es6/FrontApplet/Sync/Sync.js +15 -1
- package/es6/FrontApplet/Sync/Sync.js.map +1 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +163 -0
- package/es6/Monitoring/FileSystem/fileSystemCommands.js +33 -0
- package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -0
- package/es6/Monitoring/Montoring.d.ts +1 -0
- package/es6/Monitoring/Montoring.js +117 -0
- package/es6/Monitoring/Montoring.js.map +1 -1
- package/es6/Monitoring/Offline/Cache/offlineCacheCommands.d.ts +37 -0
- package/es6/Monitoring/Offline/Cache/offlineCacheCommands.js +6 -0
- package/es6/Monitoring/Offline/Cache/offlineCacheCommands.js.map +1 -1
- package/package.json +29 -2
|
@@ -14,7 +14,7 @@ description: "[Content JS API] General introduction to signageOS JS API"
|
|
|
14
14
|
Javascript SDK gives you access to device's native features and functionalities. You can use the same functions across all devices with the same result.
|
|
15
15
|
|
|
16
16
|
::: alert alert--tip
|
|
17
|
-
All APIs are standardized and available across all [supported devices](https://signageos.
|
|
17
|
+
All APIs are standardized and available across all [supported devices](https://docs.signageos.io/hc/en-us/sections/4405700629266-Supported-Devices).
|
|
18
18
|
:::
|
|
19
19
|
|
|
20
20
|
## Content-related JS APIs
|
|
@@ -26,22 +26,22 @@ Universal APIs for File system, access to accelerated video playback, sensor man
|
|
|
26
26
|
::: table-responsive
|
|
27
27
|
| Domain | Description |
|
|
28
28
|
| ------ | ----------- |
|
|
29
|
-
| **[Basic information](/api/js/content/js-applet-basics)** | General information required to use the signageOS JS API |
|
|
30
|
-
| [Applet Resources](/api/js/content/js-applet-resources) | Pre-load necessary files required by your HTML5 player/Applet |
|
|
31
|
-
| [Display](/api/js/content/js-display) | Query features supported by the display |
|
|
32
|
-
| [Browser](/api/js/content/js-browser) | Opening managed web-browser on Android devices inc. whitelisting, blacklisting and other features |
|
|
33
|
-
| [Command](/api/js/content/js-command) | Sending business or technical logs through signageOS in secured offline-ready way |
|
|
34
|
-
| [File system](/api/js/content/js-file-system) | Full-featured file system API including ZIP and folder management |
|
|
35
|
-
| [Fonts](/api/js/content/js-loading-fonts) | Make it easy to load additional fonts into SoC devices |
|
|
36
|
-
| [Hardware](/api/js/content/js-hardware) | Hardware-specific APIs like LED lights on Philips 10BDL |
|
|
37
|
-
| [Inputs](/api/js/content/js-input) | Controller inputs like IR remote unified under one API |
|
|
38
|
-
| [Monitors](/api/js/content/js-monitors) | Information about monitors |
|
|
39
|
-
| [Sensors](/api/js/content/js-sensors) | Using sensors and IoT devices in your application |
|
|
40
|
-
| [Serial](/api/js/content/js-hardware-serial) | Control external devices via serial |
|
|
41
|
-
| [Synchronized playback](/api/js/content/js-sync-playback) | API for creating synced playback and videowalls |
|
|
42
|
-
| [Video Inputs aka PiP](/api/js/content/js-video-inputs-internal-ports) | Show HDMI/DP/VGA as a part of your content via PiP feature |
|
|
43
|
-
| [Video Playback](/api/js/content/js-video) | Playing accelerated gapless videos via native video player |
|
|
44
|
-
| [Video Streams](/api/js/content/js-video-stream) | Playing video streams (RTSP, HLS, UDP) via native video player |
|
|
29
|
+
| **[Basic information](/api/js/content/latest/js-applet-basics)** | General information required to use the signageOS JS API |
|
|
30
|
+
| [Applet Resources](/api/js/content/latest/js-applet-resources) | Pre-load necessary files required by your HTML5 player/Applet |
|
|
31
|
+
| [Display](/api/js/content/latest/js-display) | Query features supported by the display |
|
|
32
|
+
| [Browser](/api/js/content/latest/js-browser) | Opening managed web-browser on Android devices inc. whitelisting, blacklisting and other features |
|
|
33
|
+
| [Command](/api/js/content/latest/js-command) | Sending business or technical logs through signageOS in secured offline-ready way |
|
|
34
|
+
| [File system](/api/js/content/latest/js-file-system) | Full-featured file system API including ZIP and folder management |
|
|
35
|
+
| [Fonts](/api/js/content/latest/js-loading-fonts) | Make it easy to load additional fonts into SoC devices |
|
|
36
|
+
| [Hardware](/api/js/content/latest/js-hardware) | Hardware-specific APIs like LED lights on Philips 10BDL |
|
|
37
|
+
| [Inputs](/api/js/content/latest/js-input) | Controller inputs like IR remote unified under one API |
|
|
38
|
+
| [Monitors](/api/js/content/latest/js-monitors) | Information about monitors |
|
|
39
|
+
| [Sensors](/api/js/content/latest/js-sensors) | Using sensors and IoT devices in your application |
|
|
40
|
+
| [Serial](/api/js/content/latest/js-hardware-serial) | Control external devices via serial |
|
|
41
|
+
| [Synchronized playback](/api/js/content/latest/js-sync-playback) | API for creating synced playback and videowalls |
|
|
42
|
+
| [Video Inputs aka PiP](/api/js/content/latest/js-video-inputs-internal-ports) | Show HDMI/DP/VGA as a part of your content via PiP feature |
|
|
43
|
+
| [Video Playback](/api/js/content/latest/js-video) | Playing accelerated gapless videos via native video player |
|
|
44
|
+
| [Video Streams](/api/js/content/latest/js-video-stream) | Playing video streams (RTSP, HLS, UDP) via native video player |
|
|
45
45
|
:::
|
|
46
46
|
|
|
47
47
|
## Device control JS APIs
|
|
@@ -55,19 +55,19 @@ For **Device Management** we strongly recommend using REST APIs. [See the REST A
|
|
|
55
55
|
::: table-responsive
|
|
56
56
|
| Domain | Description |
|
|
57
57
|
| ------ | ----------- |
|
|
58
|
-
| [Management](/api/js/management/1-js-management) | Information about the device and power action like Reboot, Restart,.. |
|
|
59
|
-
| [Firmware](/api/js/management/2-js-management-firmware) | Get FW version and upgrade FW from remote location |
|
|
60
|
-
| [Remote Control](/api/js/management/3-js-management-remote-control) | Manage IR Remote control functionality |
|
|
61
|
-
| [Display](/api/js/management/4-js-management-power) | Manage display power - timers, restart and reboot |
|
|
62
|
-
| [Screen](/api/js/management/5-js-management-screen) | Manage brightness, orientation and resolution, display on/off |
|
|
63
|
-
| [Time](/api/js/management/6-js-management-time) | Set time, timezone and get current settings |
|
|
64
|
-
| [Volume](/api/js/management/7-js-management-volume) | Control system volume level |
|
|
65
|
-
| [Package](/api/js/management/8-js-management-package) | Install and manage packages |
|
|
66
|
-
| [Debug](/api/js/management/9-js-management-debug) | Enable/disable debug mode |
|
|
67
|
-
| [Application](/api/js/management/10-js-management-application) | Get application version and upgrade application from remote location |
|
|
68
|
-
| [Network](/api/js/management/11-js-management-network) | Manage network settings |
|
|
69
|
-
| [Security](/api/js/management/12-js-management-security) | Control system security (PIN code) |
|
|
70
|
-
| [Wi-Fi](/api/js/management/13-js-management-wifi) | Manage Wi-Fi |
|
|
58
|
+
| [Management](/api/js/management/latest/1-js-management) | Information about the device and power action like Reboot, Restart,.. |
|
|
59
|
+
| [Firmware](/api/js/management/latest/2-js-management-firmware) | Get FW version and upgrade FW from remote location |
|
|
60
|
+
| [Remote Control](/api/js/management/latest/3-js-management-remote-control) | Manage IR Remote control functionality |
|
|
61
|
+
| [Display](/api/js/management/latest/4-js-management-power) | Manage display power - timers, restart and reboot |
|
|
62
|
+
| [Screen](/api/js/management/latest/5-js-management-screen) | Manage brightness, orientation and resolution, display on/off |
|
|
63
|
+
| [Time](/api/js/management/latest/6-js-management-time) | Set time, timezone and get current settings |
|
|
64
|
+
| [Volume](/api/js/management/latest/7-js-management-volume) | Control system volume level |
|
|
65
|
+
| [Package](/api/js/management/latest/8-js-management-package) | Install and manage packages |
|
|
66
|
+
| [Debug](/api/js/management/latest/9-js-management-debug) | Enable/disable debug mode |
|
|
67
|
+
| [Application](/api/js/management/latest/10-js-management-application) | Get application version and upgrade application from remote location |
|
|
68
|
+
| [Network](/api/js/management/latest/11-js-management-network) | Manage network settings |
|
|
69
|
+
| [Security](/api/js/management/latest/12-js-management-security) | Control system security (PIN code) |
|
|
70
|
+
| [Wi-Fi](/api/js/management/latest/13-js-management-wifi) | Manage Wi-Fi |
|
|
71
71
|
:::
|
|
72
72
|
|
|
73
73
|
# Node.JS SDK
|
|
@@ -192,7 +192,8 @@ console.log(sos.config.imgUrl);
|
|
|
192
192
|
```
|
|
193
193
|
<div class="row d-flex align-content-stretch force-padding-20">
|
|
194
194
|
<div class="col-12 d-flex">
|
|
195
|
-
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank"
|
|
195
|
+
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank"
|
|
196
|
+
href="https://docs.signageos.io/hc/en-us/articles/4405238989458">
|
|
196
197
|
<div>
|
|
197
198
|
<div class="wide-box__image d-flex align-items-center">
|
|
198
199
|
<i class="fas fa-hand-point-right svg-black"></i>
|
|
@@ -42,7 +42,7 @@ Every method above, accept single object or array of objects depending by type.
|
|
|
42
42
|
|
|
43
43
|
::: alert alert--info
|
|
44
44
|
* The file URL must point to a file. If your URI leads to a 303 redirect (e.g. from http to http**s**), the API will not work.
|
|
45
|
-
* There are some limitations for [Emulator](
|
|
45
|
+
* There are some limitations for [Emulator](https://docs.signageos.io/hc/en-us/articles/4405238997138).
|
|
46
46
|
:::
|
|
47
47
|
|
|
48
48
|
## addFile()
|
|
@@ -128,7 +128,7 @@ sos.offline.addFilesSync(files).then(() => {
|
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
## Usage with Typescript
|
|
131
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
131
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
132
132
|
|
|
133
133
|
```typescript
|
|
134
134
|
interface ISaveFile {
|
|
@@ -93,7 +93,7 @@ sos.browser.open('https://www.signageos.io', {
|
|
|
93
93
|
</div>
|
|
94
94
|
|
|
95
95
|
### Browser themes usage with Typescript
|
|
96
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
96
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
97
97
|
|
|
98
98
|
::: alert alert--info
|
|
99
99
|
Browser themes are only available on Android devices.
|
|
@@ -412,7 +412,7 @@ Returns checksum of existing file in a path.
|
|
|
412
412
|
* FAIL: When file path is directory
|
|
413
413
|
|
|
414
414
|
::: alert alert--info
|
|
415
|
-
Does not work on Samsung Tizen display - [read more here](
|
|
415
|
+
Does not work on Samsung Tizen display - [read more here](https://docs.signageos.io/hc/en-us/articles/4416327809810)
|
|
416
416
|
:::
|
|
417
417
|
|
|
418
418
|
### Parameters
|
package/docs/js-api/js-input.md
CHANGED
|
@@ -53,7 +53,7 @@ await sos.input.onKeyUp((keyUpEvent) => {
|
|
|
53
53
|
| ARROW_DOWN | 14 | | |
|
|
54
54
|
|
|
55
55
|
## Usage with Typescript
|
|
56
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
56
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
57
57
|
|
|
58
58
|
```typescript
|
|
59
59
|
interface IKeyUpEvent {
|
|
@@ -102,7 +102,7 @@ await sos.offline.addFont({
|
|
|
102
102
|
</div>
|
|
103
103
|
|
|
104
104
|
## Usage with Typescript
|
|
105
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
105
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
106
106
|
|
|
107
107
|
```typescript
|
|
108
108
|
addFont(
|
|
@@ -69,7 +69,7 @@ export interface ConsoleLogged {
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
To trigger some monitoring commands to be dispatched from a device. This REST API can be used to send monitoring [commands to the device](https://docs.signageos.io/api/device-monitoring-api/#Send_Device_Applet_Command_to_device). Following commands can be used:
|
|
72
|
+
To trigger some monitoring commands to be dispatched from a device. This REST API can be used to send monitoring [commands to the device](https://sdk.docs.signageos.io/api/device-monitoring-api/#Send_Device_Applet_Command_to_device). Following commands can be used:
|
|
73
73
|
|
|
74
74
|
### Typescript
|
|
75
75
|
```typescript
|
|
@@ -30,7 +30,7 @@ File API allows files (video files, media files etc.) to be stored for offline u
|
|
|
30
30
|
:::
|
|
31
31
|
|
|
32
32
|
::: alert alert--warning
|
|
33
|
-
Emulator has certain limitations while handling offline files. [Read more here](/
|
|
33
|
+
Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
|
|
34
34
|
:::
|
|
35
35
|
|
|
36
36
|
## listFiles()
|
|
@@ -121,7 +121,7 @@ To get file from internal memory & save it when not yet exists we prepared `load
|
|
|
121
121
|
|
|
122
122
|
::: alert alert--info
|
|
123
123
|
* The file URI has to return the file. If your URI leads to a 303 redirect (e.g. from http to http**s**), the API will not work.
|
|
124
|
-
* Emulator has certain limitations while handling offline files. [Read more here](
|
|
124
|
+
* Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
|
|
125
125
|
:::
|
|
126
126
|
|
|
127
127
|
### Parameters
|
|
@@ -294,7 +294,7 @@ await sos.offline.cache.decompressFile(zipUid, destinationDirectoryUid, 'zip')
|
|
|
294
294
|
|
|
295
295
|
* [Managing files](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/file-system)
|
|
296
296
|
* [Sample applet from Box](https://github.com/signageos/applet-examples/blob/master/index.html)
|
|
297
|
-
* All other examples are available in Knowledge Base under [Applet Examples](/
|
|
297
|
+
* All other examples are available in Knowledge Base under [Applet Examples](https://github.com/signageos/applet-examples/)
|
|
298
298
|
|
|
299
299
|
## Errors
|
|
300
300
|
Although we are doing our best, following errors may occur when working with the offline cache.
|
|
@@ -28,7 +28,7 @@ We do not recommend using a different storage type then Offline Cache or full fe
|
|
|
28
28
|
:::
|
|
29
29
|
|
|
30
30
|
::: alert alert--warning
|
|
31
|
-
Emulator has certain limitations while handling offline files. [Read more here](/
|
|
31
|
+
Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
|
|
32
32
|
:::
|
|
33
33
|
|
|
34
34
|
## loadContent()
|
|
@@ -108,7 +108,7 @@ sos.offline.cache.saveContent('ApplicationSecret', '123SuperSecretHash')
|
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
## Usage with Typescript
|
|
111
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
111
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
112
112
|
|
|
113
113
|
```typescript
|
|
114
114
|
loadContent(uid: string): Promise<string>;
|
|
@@ -56,7 +56,7 @@ interface IRfidAntenna {
|
|
|
56
56
|
## Ready to use integrations
|
|
57
57
|
|
|
58
58
|
We already did the hard work for you and implemented some of the popular hardware. All you have to do is use it in your project.
|
|
59
|
-
For more information read [this article](/
|
|
59
|
+
For more information read [this article](https://docs.signageos.io/hc/en-us/articles/4405231196946-Supported-devices-for-Sensors-usage).
|
|
60
60
|
|
|
61
61
|
## Writing your own implementation
|
|
62
62
|
|
|
@@ -30,6 +30,7 @@ Sync API enables multiple devices to communicate and coordinate their behavior w
|
|
|
30
30
|
| `wait()` | Method used when device must wait on other devices for proper sync | 1.0.32 |
|
|
31
31
|
| `setValue()` | Used for broadcast values for all master devices | 2.0.0 |
|
|
32
32
|
| `onValue()` | Event called when device receives any value | 2.0.0 |
|
|
33
|
+
| `onStatus()` | Event called when device is connected and periodic every 30s from sync server - report connected devices | 2.1.0 |
|
|
33
34
|
:::
|
|
34
35
|
|
|
35
36
|
## Examples
|
|
@@ -100,11 +101,12 @@ Once the user is connected to the server, the initialization of the sync group i
|
|
|
100
101
|
| Param | Type | Required | Description |
|
|
101
102
|
| -------------- | ------- | :-----: | ---------------------------- |
|
|
102
103
|
| `groupName` | String | <div class="yellow">No</div> | By default, all devices will be synced together. To create Groups of devices, independent from each other, specify group name |
|
|
104
|
+
| `deviceIdentification` | String | <div class="yellow">No</div> | Is identification of device connected to groupName. |
|
|
103
105
|
:::
|
|
104
106
|
|
|
105
107
|
### Javascript example
|
|
106
108
|
```javascript
|
|
107
|
-
await sos.sync.init('someRandomNameGroup');
|
|
109
|
+
await sos.sync.init('someRandomNameGroup', 'device1');
|
|
108
110
|
```
|
|
109
111
|
|
|
110
112
|
## wait()
|
|
@@ -135,6 +137,7 @@ Another way to synchronize devices is to broadcast some values within the group
|
|
|
135
137
|
| ------ | ------ | -------- | ------------- |
|
|
136
138
|
| `setValue()` | method | Used for broadcast values for all master devices | 2.0.0 |
|
|
137
139
|
| `onValue()` | event | Event called when device receive any value | 2.0.0 |
|
|
140
|
+
| `onStatus()` | event | Event called when device is connected and periodic every 30s from sync server - report connected devices | 2.1.0 |
|
|
138
141
|
:::
|
|
139
142
|
|
|
140
143
|
## setValue()
|
|
@@ -161,17 +164,30 @@ await sos.sync.onValue((key, value, groupName) => {
|
|
|
161
164
|
|
|
162
165
|
<br>
|
|
163
166
|
|
|
167
|
+
## Event onStatus()
|
|
168
|
+
Is used for receiving information about connected device to sync server. Emitted every 30s, or when device connect or disconnect from server.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Javascript example
|
|
172
|
+
```javascript
|
|
173
|
+
await sos.sync.onStatus((connectedPeers) => {
|
|
174
|
+
// do something with the new value
|
|
175
|
+
});
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
<br>
|
|
179
|
+
|
|
164
180
|
::: alert alert--info
|
|
165
181
|
Since you never know which device is the master at the moment, you should always rely only on the values received by the listener, not the values that the particular device itself is broadcasting.
|
|
166
182
|
:::
|
|
167
183
|
|
|
168
184
|
## Usage with Typescript
|
|
169
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
185
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
170
186
|
|
|
171
187
|
```typescript
|
|
172
188
|
connect(syncServerUri?: string): Promise<void>;
|
|
173
189
|
close(): Promise<void>;
|
|
174
|
-
init(groupName?: string): Promise<void>;
|
|
190
|
+
init(groupName?: string, deviceIdentification?: string): Promise<void>;
|
|
175
191
|
wait(data?: any, groupName?: string): Promise<any>;
|
|
176
192
|
setValue(key: string, value: any, groupName?: string): Promise<void>;
|
|
177
193
|
```
|
|
@@ -181,6 +197,11 @@ onValue(listener: (
|
|
|
181
197
|
value: any,
|
|
182
198
|
groupName?: string
|
|
183
199
|
) => void): void;
|
|
200
|
+
|
|
201
|
+
onStatus(listener: (
|
|
202
|
+
connectedPeers: string[],
|
|
203
|
+
groupName?: string
|
|
204
|
+
) => void): void;
|
|
184
205
|
```
|
|
185
206
|
|
|
186
207
|
## Errors
|
|
@@ -103,7 +103,7 @@ API reacts to events related to changes in internal port status. Events are only
|
|
|
103
103
|
:::
|
|
104
104
|
|
|
105
105
|
## Usage with Typescript
|
|
106
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
106
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
107
107
|
```typescript
|
|
108
108
|
onDisconnected(listener: (event: {
|
|
109
109
|
type: 'disconnected';
|
|
@@ -27,7 +27,7 @@ Methods to play or stop video streams.
|
|
|
27
27
|
:::
|
|
28
28
|
|
|
29
29
|
::: alert alert--warning
|
|
30
|
-
Are you using **Samsung Tizen** to play streams? [Read more about limitation and Tizen-specific details](
|
|
30
|
+
Are you using **Samsung Tizen** to play streams? [Read more about limitation and Tizen-specific details](https://docs.signageos.io/hc/en-us/articles/4405387373458).
|
|
31
31
|
:::
|
|
32
32
|
|
|
33
33
|
## prepare()
|
|
@@ -185,7 +185,7 @@ Example event:
|
|
|
185
185
|
```
|
|
186
186
|
|
|
187
187
|
## Usage with Typescript
|
|
188
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
188
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
189
189
|
```typescript
|
|
190
190
|
interface StreamEvent {
|
|
191
191
|
type: 'connected' | 'disconnected' | 'error',
|
package/docs/js-api/js-video.md
CHANGED
|
@@ -222,7 +222,7 @@ await sos.video.onError((event) => { console.log(event); });
|
|
|
222
222
|
```
|
|
223
223
|
|
|
224
224
|
## Usage with Typescript
|
|
225
|
-
You can also use all these methods with [signageOS TypeScript](/
|
|
225
|
+
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
226
226
|
|
|
227
227
|
```typescript
|
|
228
228
|
play(
|
|
@@ -55,7 +55,7 @@ await sos.management.app.getVersion(); // Returns ex. 2.0.0
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
## upgrade()
|
|
58
|
-
Method `upgrade()` will upgrade the [Core App](
|
|
58
|
+
Method `upgrade()` will upgrade the [Core App](https://docs.signageos.io/hc/en-us/articles/4405381466898) on the device.
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
### A) Upgrading signageOS Core App
|
|
@@ -92,7 +92,7 @@ await sos.management.app.upgrade('https://example.com/signageos-core-app.zip', '
|
|
|
92
92
|
<br>
|
|
93
93
|
|
|
94
94
|
### B) Upgrading Open Core App with built-in Applet
|
|
95
|
-
If you are [building your own Core App](/
|
|
95
|
+
If you are [building your own Core App](https://docs.signageos.io/hc/en-us/articles/4405245195666) with the built-in Applet, use only one parameter `absolutePathUrl`.
|
|
96
96
|
|
|
97
97
|
The `absolutePathUrl` should point to the application file, e.g. `https://cdn.your-cms.com/rpi/linux_202006100815_1.0.1_779c303408.zip`.
|
|
98
98
|
|
|
@@ -31,21 +31,35 @@ Method `upgrade()` will upgrade current firmware version to a specified one.
|
|
|
31
31
|
| -------------- | ----------------------| :-------: | -------------------- |
|
|
32
32
|
| `baseUrl` | string | <div class="red">Yes</div> | Location of the FW package for specific device |
|
|
33
33
|
|^^|^^|^^| `https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem` |
|
|
34
|
-
| `version` | string | <div class="
|
|
34
|
+
| `version` | string | <div class="yellow">No</div> | FW version |
|
|
35
35
|
|^^|^^|^^| `T-HKMLAKUC-2080.4` |
|
|
36
|
+
| `(progress: number)` | callback | <div class="yellow">No</div> | FW progress upgrade |
|
|
36
37
|
:::
|
|
37
38
|
|
|
38
39
|
### Javascript example
|
|
39
40
|
```javascript
|
|
40
41
|
await sos.management.firmware.upgrade(
|
|
41
|
-
'
|
|
42
|
-
'
|
|
42
|
+
'https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem',
|
|
43
|
+
'T-HKMLAKUC-2080.4',
|
|
43
44
|
(progress: number) => {
|
|
44
45
|
console.log(progress + "%");
|
|
45
46
|
}
|
|
46
47
|
);
|
|
48
|
+
|
|
49
|
+
await sos.management.firmware.upgrade('https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem');
|
|
47
50
|
```
|
|
48
51
|
|
|
52
|
+
::: alert alert--warning
|
|
53
|
+
Always check if your absolute firmware URL ends with firmware file.
|
|
54
|
+
Example: `https://cnd.your-cms.com/brightsign/fw/brightsign-update.bsfw`
|
|
55
|
+
:::
|
|
56
|
+
|
|
57
|
+
::: alert alert--info
|
|
58
|
+
For BrightSign firmware upgrade please ensure that you have txt file with SHA1 hash of that firmware file.
|
|
59
|
+
- Firmware file path: `https://cnd.your-cms.com/brightsign/fw/brightsign-update.bsfw`
|
|
60
|
+
- SHA1 txt file: `https://cnd.your-cms.com/brightsign/fw/brightsign-update.bsfw.sha1.txt`
|
|
61
|
+
:::
|
|
62
|
+
|
|
49
63
|
<div class="row d-flex align-content-stretch force-padding-20">
|
|
50
64
|
<div class="col-12 d-flex">
|
|
51
65
|
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="https://github.com/signageos/applet-examples/blob/master/examples/management-js-api/firmware/">
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: OS
|
|
3
|
+
author: Michael Zabka
|
|
4
|
+
date: 1.4.2018
|
|
5
|
+
type: js-management-api
|
|
6
|
+
tags:
|
|
7
|
+
- applet
|
|
8
|
+
- applet_api
|
|
9
|
+
- api
|
|
10
|
+
- js_management_api
|
|
11
|
+
description: "[Management JS API] OS management API allows you to manage information of operating system on your current device."
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# OS
|
|
15
|
+
OS management API allows you to manage information of operating system on your current device.
|
|
16
|
+
|
|
17
|
+
## All methods
|
|
18
|
+
|
|
19
|
+
::: table-responsive
|
|
20
|
+
| Method | Description | Supported since |
|
|
21
|
+
| ------ | ------ | ------------- |
|
|
22
|
+
| `getInfo()` | Get current OS version | 5.0 |
|
|
23
|
+
:::
|
|
24
|
+
|
|
25
|
+
## getInfo()
|
|
26
|
+
Method `getInfo()` will specify info about device like a what current version of is is installed on a device.
|
|
27
|
+
|
|
28
|
+
### Javascript example
|
|
29
|
+
```javascript
|
|
30
|
+
sos.management.os.getInfo().then((info) => {
|
|
31
|
+
console.log(info); // Returns Object e.g. { version: 3 }
|
|
32
|
+
});
|
|
33
|
+
```
|
|
@@ -54,7 +54,7 @@ Method `resize()` helps you manipulate with several aspects of your displays scr
|
|
|
54
54
|
:::
|
|
55
55
|
|
|
56
56
|
::: alert alert--info
|
|
57
|
-
For Tizen, you have to provide `baseUrl` which points to your server where you uploaded previously built Core App for Tizen with your buiult-in Applet. [Read more how to upload your Core Apps here.](https://docs.signageos.io/
|
|
57
|
+
For Tizen, you have to provide `baseUrl` which points to your server where you uploaded previously built Core App for Tizen with your buiult-in Applet. [Read more how to upload your Core Apps here.](https://docs.signageos.io/hc/en-us/articles/4405245195666).
|
|
58
58
|
:::
|
|
59
59
|
|
|
60
60
|
### Javascript example
|
|
@@ -177,6 +177,6 @@ Setting NTP server and timezone has side effects:
|
|
|
177
177
|
|
|
178
178
|
| Platform | Side effect |
|
|
179
179
|
| ----------- | -------------------------------------------- |
|
|
180
|
-
| Tizen | After calling this API, display **Reboots**!<br/><br/> Tizen has [**limited set of available timezones**. Read more here.](
|
|
180
|
+
| Tizen | After calling this API, display **Reboots**!<br/><br/> Tizen has [**limited set of available timezones**. Read more here.](https://docs.signageos.io/hc/en-us/articles/4405381271314) |
|
|
181
181
|
| RaspberryPi | After calling this API, RPi **Reboots backend server which can take up to 60 seconds**!<br /> During the reboot no JS API is available.<br />Always wait for Promise resolution. |
|
|
182
182
|
:::
|
|
@@ -24,7 +24,7 @@ Management API debug lets you enable and disable debug mode.
|
|
|
24
24
|
:::
|
|
25
25
|
|
|
26
26
|
## enable()
|
|
27
|
-
Method `enable()` enable the [Native debug](
|
|
27
|
+
Method `enable()` enable the [Native debug](https://docs.signageos.io/hc/en-us/articles/4405238849938) on the device.
|
|
28
28
|
|
|
29
29
|
```javascript
|
|
30
30
|
await sos.management.debug.enable();
|
|
@@ -47,7 +47,7 @@ await sos.management.debug.enable();
|
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
## disable()
|
|
50
|
-
Method `disable()` disable the [Native debug](
|
|
50
|
+
Method `disable()` disable the [Native debug](https://docs.signageos.io/hc/en-us/articles/4405238849938) on the device.
|
|
51
51
|
|
|
52
52
|
```javascript
|
|
53
53
|
await sos.management.debug.disable();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import IPostMessage from "../IPostMessage";
|
|
2
|
+
import { IDeviceLocation, IOrganizationTag } from './DeviceInfoHelper';
|
|
3
|
+
export default class DeviceInfo {
|
|
4
|
+
private messagePrefix;
|
|
5
|
+
private postMessage;
|
|
6
|
+
static MESSAGE_PREFIX: string;
|
|
7
|
+
constructor(messagePrefix: string, postMessage: IPostMessage<any>);
|
|
8
|
+
getLocation(): Promise<IDeviceLocation | null>;
|
|
9
|
+
getOrganizationTags(): Promise<IOrganizationTag[]>;
|
|
10
|
+
private getMessage;
|
|
11
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
class DeviceInfo {
|
|
13
|
+
constructor(messagePrefix, postMessage) {
|
|
14
|
+
this.messagePrefix = messagePrefix;
|
|
15
|
+
this.postMessage = postMessage;
|
|
16
|
+
}
|
|
17
|
+
getLocation() {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const { location } = yield this.postMessage({ type: this.getMessage('get_location') });
|
|
20
|
+
return location;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
getOrganizationTags() {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const { tags } = yield this.postMessage({ type: this.getMessage('get_organization_tags') });
|
|
26
|
+
return tags;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
getMessage(name) {
|
|
30
|
+
return [this.messagePrefix, DeviceInfo.MESSAGE_PREFIX, name].join(".");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.default = DeviceInfo;
|
|
34
|
+
DeviceInfo.MESSAGE_PREFIX = "device_info";
|
|
35
|
+
//# sourceMappingURL=DeviceInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceInfo.js","sourceRoot":"","sources":["../../../src/FrontApplet/DeviceInfo/DeviceInfo.ts"],"names":[],"mappings":";;;;;;;;;;;AAGA,MAAqB,UAAU;IAG9B,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;IAES,WAAW;;YACvB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACvF,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;IAEY,mBAAmB;;YAC/B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;YAC5F,OAAO,IAAI,CAAC;QACb,CAAC;KAAA;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxE,CAAC;;AApBF,6BAqBC;AApBc,yBAAc,GAAW,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceInfoHelper.js","sourceRoot":"","sources":["../../../src/FrontApplet/DeviceInfo/DeviceInfoHelper.ts"],"names":[],"mappings":""}
|
|
@@ -9,6 +9,7 @@ import Iframe from './Iframe/Iframe';
|
|
|
9
9
|
import Touch from './Touch/Touch';
|
|
10
10
|
import Input from './Input/Input';
|
|
11
11
|
import Debug, { WeinreData } from './Debug/Debug';
|
|
12
|
+
import DeviceInfo from './DeviceInfo/DeviceInfo';
|
|
12
13
|
import Display from './Display/Display';
|
|
13
14
|
import Timing from './Timing/Timing';
|
|
14
15
|
import Sync from './Sync/Sync';
|
|
@@ -23,6 +24,7 @@ export default class FrontApplet {
|
|
|
23
24
|
authHash: string | null;
|
|
24
25
|
appletVersion: string | null;
|
|
25
26
|
readonly debug: Debug;
|
|
27
|
+
readonly deviceInfo: DeviceInfo;
|
|
26
28
|
readonly display: Display;
|
|
27
29
|
readonly apiJsUri: string;
|
|
28
30
|
readonly stream: Stream;
|
|
@@ -13,6 +13,7 @@ const Iframe_1 = require("./Iframe/Iframe");
|
|
|
13
13
|
const Touch_1 = require("./Touch/Touch");
|
|
14
14
|
const Input_1 = require("./Input/Input");
|
|
15
15
|
const Debug_1 = require("./Debug/Debug");
|
|
16
|
+
const DeviceInfo_1 = require("./DeviceInfo/DeviceInfo");
|
|
16
17
|
const Display_1 = require("./Display/Display");
|
|
17
18
|
const Timing_1 = require("./Timing/Timing");
|
|
18
19
|
const Sync_1 = require("./Sync/Sync");
|
|
@@ -30,6 +31,7 @@ class FrontApplet {
|
|
|
30
31
|
this.readyEmitter = new events_1.EventEmitter();
|
|
31
32
|
this.invocationResponseEmitter = new events_1.EventEmitter();
|
|
32
33
|
this.debug = new Debug_1.default(this.window, messagePrefix);
|
|
34
|
+
this.deviceInfo = new DeviceInfo_1.default(messagePrefix, this.postMessage.bind(this));
|
|
33
35
|
this.display = new Display_1.default(messagePrefix, this.postMessage.bind(this));
|
|
34
36
|
this.stream = new Stream_1.default(messagePrefix, this.postMessage.bind(this));
|
|
35
37
|
this.video = new Video_1.default(messagePrefix, this.postMessage.bind(this));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrontApplet.js","sourceRoot":"","sources":["../../src/FrontApplet/FrontApplet.ts"],"names":[],"mappings":";;AACA,mCAAsC;AACtC,gDAAsD;AAEtD,yCAAkC;AAClC,4CAAqC;AACrC,+CAAwC;AAExC,kGAA2F;AAC3F,+CAAwC;AACxC,kDAA2C;AAC3C,+CAAwC;AACxC,4CAAqC;AACrC,yCAAkC;AAClC,yCAAkC;AAClC,yCAAkD;AAClD,+CAAwC;AACxC,4CAAqC;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AC;QACzE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACtC,MAAM,EAAE,CAAC;IACV,CAAC;CACD;AAnND,8BAmNC;AAED,SAAS,QAAQ,CAAC,MAAiC;IAClD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default interface IOSInfo {
|
|
2
|
+
/**
|
|
3
|
+
* Major version of current operating system.
|
|
4
|
+
* It's usually 1 or 2 digits including or excluding dot notation.
|
|
5
|
+
* E.g.:
|
|
6
|
+
* Windows -> 7, 8, 10, 11
|
|
7
|
+
* WebOS -> 3, 3.2, 4, 4.1
|
|
8
|
+
* Tizen -> 2.4, 3, 4, 5
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|