@signageos/front-applet 8.0.2 → 8.0.3
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/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +1 -1
- package/docs/sos/browser.md +27 -17
- package/docs/sos/command.md +21 -9
- package/docs/sos/debug.md +17 -0
- package/docs/sos/deviceInfo.md +26 -0
- package/docs/sos/display.md +17 -0
- package/docs/sos/fileSystem.md +47 -1
- package/docs/sos/hardware/index.md +36 -1
- package/docs/sos/hardware/led.md +11 -0
- package/docs/sos/index.md +14 -12
- package/docs/sos/input.md +13 -0
- package/docs/sos/monitors.md +16 -1
- package/docs/sos/native/mdc.md +0 -9
- package/docs/sos/offline/index.md +0 -14
- package/docs/sos/osd.md +15 -0
- package/docs/sos/proofOfPlay.md +14 -21
- package/docs/sos/sync.md +3 -17
- package/docs/sos_management/audio.md +14 -1
- package/docs/sos_management/firmware.md +26 -0
- package/docs/sos_management/index.md +1 -1
- package/docs/sos_management/network.md +3 -3
- package/docs/sos_management/package.md +7 -16
- package/docs/sos_management/power.md +49 -1
- package/docs/sos_management/proxy.md +25 -0
- package/docs/sos_management/remoteControl.md +36 -0
- package/docs/sos_management/screen.md +0 -18
- package/docs/sos_management/time.md +45 -5
- package/es6/FrontApplet/FrontApplet.d.ts +8 -2
- package/es6/FrontApplet/FrontApplet.js +8 -2
- package/es6/FrontApplet/FrontApplet.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/Firmware.d.ts +14 -0
- package/es6/FrontApplet/Management/Firmware/Firmware.js +8 -0
- package/es6/FrontApplet/Management/Firmware/Firmware.js.map +1 -1
- package/es6/FrontApplet/Management/Package/Package.d.ts +0 -8
- package/es6/FrontApplet/Management/Package/Package.js +0 -8
- package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +24 -0
- package/es6/FrontApplet/Management/Power/Power.js +25 -1
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Proxy/Proxy.d.ts +13 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.js +13 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.js.map +1 -1
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.d.ts +18 -0
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js +18 -0
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js.map +1 -1
- package/es6/FrontApplet/Management/Time/Time.d.ts +15 -3
- package/es6/FrontApplet/Management/Time/Time.js +9 -0
- package/es6/FrontApplet/Management/Time/Time.js.map +1 -1
- package/es6/FrontApplet/Monitors/Monitors.d.ts +1 -1
- package/es6/FrontApplet/Monitors/Monitors.js +1 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +0 -10
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +0 -10
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
- package/es6/fpath.d.ts +1 -1
- package/es6/fpath.js +1 -1
- package/package.json +1 -1
|
@@ -6,15 +6,6 @@ sidebar_position: 0
|
|
|
6
6
|
|
|
7
7
|
The `sos.management.package` API groups together methods for installing custom Android packages.
|
|
8
8
|
|
|
9
|
-
```ts
|
|
10
|
-
await sos.management.package.install(
|
|
11
|
-
'https://cdn.your-cms.com',
|
|
12
|
-
'io.signageosWebView.app.ota',
|
|
13
|
-
'2.4.0',
|
|
14
|
-
'benq'
|
|
15
|
-
);
|
|
16
|
-
```
|
|
17
|
-
|
|
18
9
|
## Methods
|
|
19
10
|
|
|
20
11
|
### install()
|
|
@@ -34,13 +25,13 @@ install(baseUrl: string, packageName: string, version: string, build: string | n
|
|
|
34
25
|
| `version` | `string` | Package version |
|
|
35
26
|
| `build` | `string \| null` | If relevant for your device |
|
|
36
27
|
|
|
37
|
-
|
|
28
|
+
## API Example
|
|
38
29
|
|
|
39
30
|
```ts
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
import { sos } from '@signageos/front-applet';
|
|
32
|
+
|
|
33
|
+
void sos.onReady(async () => {
|
|
34
|
+
await sos.management.package.install('https://cdn.your-cms.com', 'io.signageosWebView.app.ota', '2.4.0', 'benq');
|
|
35
|
+
});
|
|
36
|
+
|
|
46
37
|
```
|
|
@@ -17,6 +17,12 @@ The `appRestart()` method initializes a restart of the signageOS app.
|
|
|
17
17
|
appRestart(): Promise<void>;
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
#### Example
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
await sos.management.power.appRestart();
|
|
24
|
+
```
|
|
25
|
+
|
|
20
26
|
<Separator />
|
|
21
27
|
|
|
22
28
|
### getProprietaryTimers()
|
|
@@ -36,6 +42,12 @@ interface IProprietaryTimer {
|
|
|
36
42
|
|
|
37
43
|
```
|
|
38
44
|
|
|
45
|
+
#### Example
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
const timers = await sos.management.power.getProprietaryTimers();
|
|
49
|
+
```
|
|
50
|
+
|
|
39
51
|
<Separator />
|
|
40
52
|
|
|
41
53
|
### getTimers()
|
|
@@ -55,6 +67,12 @@ interface ITimer {
|
|
|
55
67
|
|
|
56
68
|
```
|
|
57
69
|
|
|
70
|
+
#### Example
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
const timers = await sos.management.power.getTimers();
|
|
74
|
+
```
|
|
75
|
+
|
|
58
76
|
<Separator />
|
|
59
77
|
|
|
60
78
|
### setProprietaryTimer()
|
|
@@ -76,6 +94,12 @@ setProprietaryTimer(type: ProprietaryTimerType, timeOn: string | null, timeOff:
|
|
|
76
94
|
| `weekdays` | `string[]` | The days of the week when the timer should be active (`mon`, ..., `sun`). |
|
|
77
95
|
| `keepAppletRunning` *(optional)* | `boolean` | If `true`, the applet will be kept running when the timer is active on certain devices. |
|
|
78
96
|
|
|
97
|
+
#### Example
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
await sos.management.power.setProprietaryTimer("TIMER_20", "08:00", "22:00", ["mon", "tue", "wed", "thu", "fri", "sat", "sun"], 30);
|
|
101
|
+
```
|
|
102
|
+
|
|
79
103
|
<Separator />
|
|
80
104
|
|
|
81
105
|
### setTimer()
|
|
@@ -96,6 +120,12 @@ setTimer(type: keyof typeof TimerType, timeOn: string | null, timeOff: string |
|
|
|
96
120
|
| `weekdays` | `string[]` | The days of the week when the timer should be active (`mon`, ..., `sun`). |
|
|
97
121
|
| `volume` | `number` | The volume level set when the device is turned on. |
|
|
98
122
|
|
|
123
|
+
#### Example
|
|
124
|
+
|
|
125
|
+
```ts
|
|
126
|
+
await sos.management.power.setTimer("TIMER_1", "08:00", "22:00", ["mon", "tue", "wed", "thu", "fri", "sat", "sun"], 30);
|
|
127
|
+
```
|
|
128
|
+
|
|
99
129
|
<Separator />
|
|
100
130
|
|
|
101
131
|
### systemReboot()
|
|
@@ -106,6 +136,12 @@ The `systemReboot()` method initializes a system reboot.
|
|
|
106
136
|
systemReboot(): Promise<void>;
|
|
107
137
|
```
|
|
108
138
|
|
|
139
|
+
#### Example
|
|
140
|
+
|
|
141
|
+
```ts
|
|
142
|
+
await sos.management.power.systemReboot();
|
|
143
|
+
```
|
|
144
|
+
|
|
109
145
|
<Separator />
|
|
110
146
|
|
|
111
147
|
### unsetProprietaryTimer()
|
|
@@ -123,6 +159,12 @@ unsetProprietaryTimer(type: ProprietaryTimerType): Promise<void>;
|
|
|
123
159
|
|--------|---------------------|----------------------------------------------------|
|
|
124
160
|
| `type` | ``TIMER_${number}`` | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
125
161
|
|
|
162
|
+
#### Example
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
await sos.management.power.unsetProprietaryTimer("TIMER_2");
|
|
166
|
+
```
|
|
167
|
+
|
|
126
168
|
<Separator />
|
|
127
169
|
|
|
128
170
|
### unsetTimer()
|
|
@@ -137,4 +179,10 @@ unsetTimer(type: keyof typeof TimerType): Promise<void>;
|
|
|
137
179
|
|
|
138
180
|
| Name | Type | Description |
|
|
139
181
|
|--------|-------------------------------------------------------------------------------------------|----------------------------------------------------|
|
|
140
|
-
| `type` | `"TIMER_1" \| "TIMER_2" \| "TIMER_3" \| "TIMER_4" \| "TIMER_5" \| "TIMER_6" \| "TIMER_7"` | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
182
|
+
| `type` | `"TIMER_1" \| "TIMER_2" \| "TIMER_3" \| "TIMER_4" \| "TIMER_5" \| "TIMER_6" \| "TIMER_7"` | The type of the timer (`TIMER_1`, ..., `TIMER_7`). |
|
|
183
|
+
|
|
184
|
+
#### Example
|
|
185
|
+
|
|
186
|
+
```ts
|
|
187
|
+
await sos.management.power.unsetTimer("TIMER_2");
|
|
188
|
+
```
|
|
@@ -14,6 +14,12 @@ The `disable()` method disables the proxy on the device.
|
|
|
14
14
|
disable(): Promise<void>;
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
#### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
await sos.management.proxy.disable();
|
|
21
|
+
```
|
|
22
|
+
|
|
17
23
|
<Separator />
|
|
18
24
|
|
|
19
25
|
### getConnectedTo()
|
|
@@ -24,6 +30,13 @@ The `getConnectedTo()` methods returns the current connected proxy server uri on
|
|
|
24
30
|
getConnectedTo(): Promise<string>;
|
|
25
31
|
```
|
|
26
32
|
|
|
33
|
+
#### Example
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
const uri = await sos.management.proxy.getConnectedTo();
|
|
37
|
+
console.log(uri); // 178.62.193.192
|
|
38
|
+
```
|
|
39
|
+
|
|
27
40
|
<Separator />
|
|
28
41
|
|
|
29
42
|
### isEnabled()
|
|
@@ -34,6 +47,12 @@ The `isEnabled()` method returns whether the proxy is enabled on the device.
|
|
|
34
47
|
isEnabled(): Promise<boolean>;
|
|
35
48
|
```
|
|
36
49
|
|
|
50
|
+
#### Example
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
const enabled = await sos.management.proxy.isEnabled();
|
|
54
|
+
```
|
|
55
|
+
|
|
37
56
|
<Separator />
|
|
38
57
|
|
|
39
58
|
### setManual()
|
|
@@ -42,4 +61,10 @@ The `setManual()` method sets the proxy on the device.
|
|
|
42
61
|
|
|
43
62
|
```ts expandable
|
|
44
63
|
setManual(uri: string, port: number, username?: string, password?: string): Promise<void>;
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
#### Example
|
|
67
|
+
|
|
68
|
+
```ts
|
|
69
|
+
const enabled = await sos.management.proxy.setManual('178.62.193.192', 1080, 'username', 'password');
|
|
45
70
|
```
|
|
@@ -16,6 +16,12 @@ The `disable()` method disables remote control.
|
|
|
16
16
|
disable(): Promise<void>;
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
#### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
await sos.management.remoteControl.disable();
|
|
23
|
+
```
|
|
24
|
+
|
|
19
25
|
<Separator />
|
|
20
26
|
|
|
21
27
|
### enable()
|
|
@@ -35,6 +41,12 @@ Always set the Remote Control Lock to `enable` after the deployment.
|
|
|
35
41
|
enable(): Promise<void>;
|
|
36
42
|
```
|
|
37
43
|
|
|
44
|
+
#### Example
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
await sos.management.remoteControl.enable();
|
|
48
|
+
```
|
|
49
|
+
|
|
38
50
|
<Separator />
|
|
39
51
|
|
|
40
52
|
### isEnabled()
|
|
@@ -45,6 +57,12 @@ The `isEnabled()` method returns whether the remote control is enabled.
|
|
|
45
57
|
isEnabled(): Promise<boolean>;
|
|
46
58
|
```
|
|
47
59
|
|
|
60
|
+
#### Example
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
const enabled = await sos.management.remoteControl.isEnabled();
|
|
64
|
+
```
|
|
65
|
+
|
|
48
66
|
<Separator />
|
|
49
67
|
|
|
50
68
|
### isLocked()
|
|
@@ -55,6 +73,12 @@ The `isLocked()` method returns whether the remote control is locked (disabled).
|
|
|
55
73
|
isLocked(): Promise<boolean>;
|
|
56
74
|
```
|
|
57
75
|
|
|
76
|
+
#### Example
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
const locked = await sos.management.remoteControl.isLocked();
|
|
80
|
+
```
|
|
81
|
+
|
|
58
82
|
<Separator />
|
|
59
83
|
|
|
60
84
|
### lock()
|
|
@@ -65,6 +89,12 @@ The `lock()` method is an alias for the `disable()` method.
|
|
|
65
89
|
lock(): Promise<void>;
|
|
66
90
|
```
|
|
67
91
|
|
|
92
|
+
#### Example
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
await sos.management.remoteControl.lock();
|
|
96
|
+
```
|
|
97
|
+
|
|
68
98
|
<Separator />
|
|
69
99
|
|
|
70
100
|
### unlock()
|
|
@@ -73,4 +103,10 @@ The `unlock()` method is an alias for the `enable()` method.
|
|
|
73
103
|
|
|
74
104
|
```ts expandable
|
|
75
105
|
unlock(): Promise<void>;
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Example
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
await sos.management.remoteControl.unlock();
|
|
76
112
|
```
|
|
@@ -25,24 +25,6 @@ There is a specific behavior based on the device type you operate:
|
|
|
25
25
|
|
|
26
26
|
:::
|
|
27
27
|
|
|
28
|
-
```ts
|
|
29
|
-
// for Tizen
|
|
30
|
-
await sos.management.screen.resize(
|
|
31
|
-
"https://cdn.your-cms.com/tizen/1.0.4",
|
|
32
|
-
"PORTRAIT",
|
|
33
|
-
"FULL_READY",
|
|
34
|
-
"1.0.4"
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
// for all other supported device
|
|
38
|
-
await sos.management.screen.resize(
|
|
39
|
-
"",
|
|
40
|
-
"PORTRAIT",
|
|
41
|
-
"HD_READY",
|
|
42
|
-
""
|
|
43
|
-
);
|
|
44
|
-
```
|
|
45
|
-
|
|
46
28
|
## Methods
|
|
47
29
|
|
|
48
30
|
### getBrightness()
|
|
@@ -27,11 +27,14 @@ interface IGetTime {
|
|
|
27
27
|
|
|
28
28
|
### setManual(dateTime, timezone)
|
|
29
29
|
|
|
30
|
-
The `setManual()` method sets the system time and the system timezone.
|
|
30
|
+
The `setManual()` method sets the system time and the system timezone and disables NTP server settings.
|
|
31
31
|
|
|
32
|
-
:::warning
|
|
32
|
+
:::warning Setting NTP server and timezone has side effects
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
- **Tizen**: After calling this API, display Reboots!
|
|
35
|
+
Tizen has limited set of available timezones. Read more here.
|
|
36
|
+
- **RaspberryPi**: After calling this API, RPi Reboots backend server which can take up to 60 seconds! During the reboot no JS API is
|
|
37
|
+
available. **Always wait for Promise resolution.**
|
|
35
38
|
|
|
36
39
|
:::
|
|
37
40
|
|
|
@@ -65,6 +68,15 @@ interface DateTime {
|
|
|
65
68
|
|
|
66
69
|
The `setNTP()` method sets the NTP server and the system timezone.
|
|
67
70
|
|
|
71
|
+
:::warning Setting NTP server and timezone has side effects
|
|
72
|
+
|
|
73
|
+
- **Tizen / WebOS**: After calling this API, display Reboots!
|
|
74
|
+
Tizen has limited set of available timezones. Read more here.
|
|
75
|
+
- **RaspberryPi**: After calling this API, RPi Reboots backend server which can take up to 60 seconds! During the reboot no JS API is
|
|
76
|
+
available. **Always wait for Promise resolution.**
|
|
77
|
+
|
|
78
|
+
:::
|
|
79
|
+
|
|
68
80
|
```ts expandable
|
|
69
81
|
setNTP(ntpServer: string, timezone: string): Promise<void>;
|
|
70
82
|
```
|
|
@@ -80,7 +92,7 @@ setNTP(ntpServer: string, timezone: string): Promise<void>;
|
|
|
80
92
|
|
|
81
93
|
### ~set()~
|
|
82
94
|
|
|
83
|
-
:::danger
|
|
95
|
+
:::danger Deprecated
|
|
84
96
|
|
|
85
97
|
This method was deprecated. Use `setManual(dateTime, timezone)` instead.
|
|
86
98
|
|
|
@@ -94,7 +106,7 @@ set(currentDate: Date, timezone: string): Promise<void>;
|
|
|
94
106
|
|
|
95
107
|
### ~setManual(currentDate, timezone)~
|
|
96
108
|
|
|
97
|
-
:::danger
|
|
109
|
+
:::danger Deprecated
|
|
98
110
|
|
|
99
111
|
This method was deprecated. Use `setManual(dateTime, timezone)` instead.
|
|
100
112
|
|
|
@@ -102,4 +114,32 @@ This method was deprecated. Use `setManual(dateTime, timezone)` instead.
|
|
|
102
114
|
|
|
103
115
|
```ts expandable
|
|
104
116
|
setManual(currentDate: Date, timezone: string): Promise<void>;
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## API Example
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
import { sos } from '@signageos/front-applet';
|
|
123
|
+
|
|
124
|
+
void sos.onReady(async () => {
|
|
125
|
+
const { currentDate, timezone, ntpServer } = await sos.management.time.get();
|
|
126
|
+
console.log({ currentDate, timezone, ntpServer });
|
|
127
|
+
|
|
128
|
+
// Set the time without a ntp server
|
|
129
|
+
await sos.management.time.setManual(
|
|
130
|
+
{
|
|
131
|
+
year: 2025,
|
|
132
|
+
month: 5,
|
|
133
|
+
day: 23,
|
|
134
|
+
hour: 13,
|
|
135
|
+
minute: 0,
|
|
136
|
+
second: 0,
|
|
137
|
+
},
|
|
138
|
+
'Europe/Amsterdam',
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
// Set the time with a ntp server
|
|
142
|
+
await sos.management.time.setNTP('pool.ntp.org', 'Europe/Amsterdam');
|
|
143
|
+
});
|
|
144
|
+
|
|
105
145
|
```
|
|
@@ -23,7 +23,7 @@ import NativeCommands from './NativeCommands/NativeCommands';
|
|
|
23
23
|
import { WeinreData } from './Debug/IDebug';
|
|
24
24
|
import Connect from './Connect/Connect';
|
|
25
25
|
/**
|
|
26
|
-
* The `sos` API groups together all functionality the
|
|
26
|
+
* The `sos` API groups together all functionality the \@signageos/front-applet offers.
|
|
27
27
|
*
|
|
28
28
|
* @tutorial https://developers.signageos.io/docs/applets/getting-started/#using-the-sos-sdk
|
|
29
29
|
*/
|
|
@@ -106,12 +106,18 @@ export default class FrontApplet {
|
|
|
106
106
|
* is playing a loop with some specified duration. This method should be called always when the loop is changed. It will clear all
|
|
107
107
|
* previously played videos, streams, clear display views, and notify for garbage collection.
|
|
108
108
|
*
|
|
109
|
-
*
|
|
109
|
+
* It stops all video playback and clears out the memory. The following function should be triggered only in a case the whole playback
|
|
110
110
|
* needs to be restarted as it's completely switching the playback 'loop/playlist'.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* sos.restore();
|
|
111
114
|
*/
|
|
112
115
|
restore(): void;
|
|
113
116
|
/**
|
|
114
117
|
* The `refresh()` method initializes refresh of the applet. Similar to window.location.reload(), but the applet is not downloaded again.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* await sos.refresh();
|
|
115
121
|
*/
|
|
116
122
|
refresh(): Promise<void>;
|
|
117
123
|
private forwardRestoreToFrontAppletWindows;
|
|
@@ -31,7 +31,7 @@ const ProofOfPlay_1 = __importDefault(require("./ProofOfPlay/ProofOfPlay"));
|
|
|
31
31
|
const NativeCommands_1 = __importDefault(require("./NativeCommands/NativeCommands"));
|
|
32
32
|
const Connect_1 = __importDefault(require("./Connect/Connect"));
|
|
33
33
|
/**
|
|
34
|
-
* The `sos` API groups together all functionality the
|
|
34
|
+
* The `sos` API groups together all functionality the \@signageos/front-applet offers.
|
|
35
35
|
*
|
|
36
36
|
* @tutorial https://developers.signageos.io/docs/applets/getting-started/#using-the-sos-sdk
|
|
37
37
|
*/
|
|
@@ -178,8 +178,11 @@ class FrontApplet {
|
|
|
178
178
|
* is playing a loop with some specified duration. This method should be called always when the loop is changed. It will clear all
|
|
179
179
|
* previously played videos, streams, clear display views, and notify for garbage collection.
|
|
180
180
|
*
|
|
181
|
-
*
|
|
181
|
+
* It stops all video playback and clears out the memory. The following function should be triggered only in a case the whole playback
|
|
182
182
|
* needs to be restarted as it's completely switching the playback 'loop/playlist'.
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* sos.restore();
|
|
183
186
|
*/
|
|
184
187
|
restore() {
|
|
185
188
|
void this.postMessage({ type: this.getMessage('restore') });
|
|
@@ -188,6 +191,9 @@ class FrontApplet {
|
|
|
188
191
|
}
|
|
189
192
|
/**
|
|
190
193
|
* The `refresh()` method initializes refresh of the applet. Similar to window.location.reload(), but the applet is not downloaded again.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* await sos.refresh();
|
|
191
197
|
*/
|
|
192
198
|
async refresh() {
|
|
193
199
|
await this.postMessage({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrontApplet.js","sourceRoot":"","sources":["../../src/FrontApplet/FrontApplet.ts"],"names":[],"mappings":";;;;;AAAA,mCAAsC;AACtC,gDAAsD;AAEtD,0DAAkC;AAClC,6DAAqC;AACrC,gEAAwC;AAExC,mHAA2F;AAC3F,gEAAwC;AACxC,mEAA2C;AAC3C,gEAAwC;AACxC,6DAAqC;AACrC,0DAAkC;AAClC,0DAAkC;AAClC,0DAAkC;AAClC,yEAAiD;AACjD,gEAAwC;AACxC,6DAAqC;AACrC,uDAA+B;AAC/B,yEAAiD;AACjD,qDAA2E;AAC3E,yEAAiD;AACjD,mEAA2C;AAC3C,gEAAwC;AACxC,kDAAqD;AACrD,oDAA4B;AAC5B,4EAAoD;AACpD,qFAA6D;AAE7D,gEAAwC;AAExC;;;;GAIG;AACH,MAAqB,WAAW;IA6Dd;IACR;IA7DT;;;;;OAKG;IACa,MAAM,GAA8C,SAAU,CAAC;IAE/E;;;;;;;;;;OAUG;IACa,QAAQ,GAAW,SAAU,CAAC;IAE9C;;;;OAIG;IACa,aAAa,GAAW,SAAU,CAAC;IAEnD,kEAAkE;IAClD,QAAQ,CAAqB;IAE7B,KAAK,CAAQ;IACb,UAAU,CAAa;IACvB,OAAO,CAAU;IACjB,MAAM,CAAS;IACf,KAAK,CAAQ;IACb,OAAO,CAAU;IACjB,QAAQ,CAA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AC,CAAC;YACH,IAAI,CAAC,YAAY,EAAE,CAAC;QACrB,CAAC,CAAC,CAAC;IACJ,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"FrontApplet.js","sourceRoot":"","sources":["../../src/FrontApplet/FrontApplet.ts"],"names":[],"mappings":";;;;;AAAA,mCAAsC;AACtC,gDAAsD;AAEtD,0DAAkC;AAClC,6DAAqC;AACrC,gEAAwC;AAExC,mHAA2F;AAC3F,gEAAwC;AACxC,mEAA2C;AAC3C,gEAAwC;AACxC,6DAAqC;AACrC,0DAAkC;AAClC,0DAAkC;AAClC,0DAAkC;AAClC,yEAAiD;AACjD,gEAAwC;AACxC,6DAAqC;AACrC,uDAA+B;AAC/B,yEAAiD;AACjD,qDAA2E;AAC3E,yEAAiD;AACjD,mEAA2C;AAC3C,gEAAwC;AACxC,kDAAqD;AACrD,oDAA4B;AAC5B,4EAAoD;AACpD,qFAA6D;AAE7D,gEAAwC;AAExC;;;;GAIG;AACH,MAAqB,WAAW;IA6Dd;IACR;IA7DT;;;;;OAKG;IACa,MAAM,GAA8C,SAAU,CAAC;IAE/E;;;;;;;;;;OAUG;IACa,QAAQ,GAAW,SAAU,CAAC;IAE9C;;;;OAIG;IACa,aAAa,GAAW,SAAU,CAAC;IAEnD,kEAAkE;IAClD,QAAQ,CAAqB;IAE7B,KAAK,CAAQ;IACb,UAAU,CAAa;IACvB,OAAO,CAAU;IACjB,MAAM,CAAS;IACf,KAAK,CAAQ;IACb,OAAO,CAAU;IACjB,QAAQ,CAAW;IACnB,OAAO,CAAU;IACjB,OAAO,CAAU;IACjB,MAAM,CAAS;IACf,KAAK,CAAQ;IACb,KAAK,CAAQ;IACb,MAAM,CAAS;IACf,IAAI,CAAO;IACX,UAAU,CAAa;IACvB,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,GAAG,CAAM;IACT,WAAW,CAAc;IACzB,OAAO,CAAU;IACjB,MAAM,CAAiB;IACvB,OAAO,CAAU;IAEzB,YAAY,CAAe;IAC3B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a,GAAG,YAAY;wBACrC,IAAI,CAAC,MAAM,CAAC,gCAAgC,CAAC,MAAM,CAAC,CAAC;wBACrD,MAAM;oBACP;wBACC,IAAI,CAAC,MAAM,CAAC,6BAA6B,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;gBAC1D,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC;IACxC,CAAC;IAEO,YAAY;QACnB,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACtC,KAAK,MAAM,EAAE,CAAC;IACf,CAAC;CACD;AAtRD,8BAsRC;AAED,SAAS,QAAQ,CAAC,MAAiC;IAClD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC"}
|
|
@@ -28,6 +28,9 @@ export default class Firmware implements IFirmware {
|
|
|
28
28
|
* @param version The version of the firmware being installed.
|
|
29
29
|
*
|
|
30
30
|
* @since 4.0.0
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await sos.management.firmware.upgrade('https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem', 'T-HKMLAKUC-2080.4');
|
|
31
34
|
*/
|
|
32
35
|
upgrade(baseUrl: string, version: string): Promise<void>;
|
|
33
36
|
/**
|
|
@@ -45,12 +48,19 @@ export default class Firmware implements IFirmware {
|
|
|
45
48
|
* @param fwUri FQN uri where the firmware main file is located.
|
|
46
49
|
*
|
|
47
50
|
* @since 4.0.0
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* await sos.management.firmware.upgrade('https://cdn.your-cms.com/tizen/pmf/fw/2080_4.bem');
|
|
48
54
|
*/
|
|
49
55
|
upgrade(fwUri: string): Promise<void>;
|
|
50
56
|
/**
|
|
51
57
|
* The `getVersion()` method returns the version of the firmware currently installed on the device.
|
|
52
58
|
*
|
|
53
59
|
* @since 4.0.0
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* const version = await sos.management.firmware.getVersion();
|
|
63
|
+
* console.log(version); // Returns String e.g. T-HKMLAKUC-2020.5
|
|
54
64
|
*/
|
|
55
65
|
getVersion(): Promise<string>;
|
|
56
66
|
/**
|
|
@@ -59,6 +69,10 @@ export default class Firmware implements IFirmware {
|
|
|
59
69
|
* This information, when combined with firmware version, can be used to identify a correct firmware image to install on the current device.
|
|
60
70
|
*
|
|
61
71
|
* @since 4.8.0
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* const type = await sos.management.firmware.getType();
|
|
75
|
+
* console.log(type); // e.g. rpi4
|
|
62
76
|
*/
|
|
63
77
|
getType(): Promise<string>;
|
|
64
78
|
private getMessage;
|
|
@@ -26,6 +26,10 @@ class Firmware {
|
|
|
26
26
|
* The `getVersion()` method returns the version of the firmware currently installed on the device.
|
|
27
27
|
*
|
|
28
28
|
* @since 4.0.0
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* const version = await sos.management.firmware.getVersion();
|
|
32
|
+
* console.log(version); // Returns String e.g. T-HKMLAKUC-2020.5
|
|
29
33
|
*/
|
|
30
34
|
async getVersion() {
|
|
31
35
|
const { firmwareVersion } = await this.postMessage({
|
|
@@ -39,6 +43,10 @@ class Firmware {
|
|
|
39
43
|
* This information, when combined with firmware version, can be used to identify a correct firmware image to install on the current device.
|
|
40
44
|
*
|
|
41
45
|
* @since 4.8.0
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* const type = await sos.management.firmware.getType();
|
|
49
|
+
* console.log(type); // e.g. rpi4
|
|
42
50
|
*/
|
|
43
51
|
async getType() {
|
|
44
52
|
const { firmwareType } = await this.postMessage({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Firmware.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Firmware/Firmware.ts"],"names":[],"mappings":";;AACA,4DAAiE;AAGjE;;GAEG;AACH,MAAqB,QAAQ;IAGnB;IACA;IAHT,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;
|
|
1
|
+
{"version":3,"file":"Firmware.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Firmware/Firmware.ts"],"names":[],"mappings":";;AACA,4DAAiE;AAGjE;;GAEG;AACH,MAAqB,QAAQ;IAGnB;IACA;IAHT,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;IAkDJ,gBAAgB;IACT,KAAK,CAAC,OAAO,CAAC,IAAY,EAAE,IAAa;QAC/C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAA,qCAAqB,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1E,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;YACzC,OAAO;YACP,OAAO;YACP,SAAS;SACT,CAAC,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACI,KAAK,CAAC,UAAU;QACtB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAClD,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;SAC7C,CAAC,CAAC;QAEH,OAAO,eAAe,CAAC;IACxB,CAAC;IAED;;;;;;;;;;OAUG;IACI,KAAK,CAAC,OAAO;QACnB,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAC/C,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;SAC1C,CAAC,CAAC;QACH,OAAO,YAAY,CAAC;IACrB,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC;IACxC,CAAC;CACD;AAxGD,2BAwGC"}
|
|
@@ -15,14 +15,6 @@ export default class Package implements IPackage {
|
|
|
15
15
|
* @param packageName Name of the android package
|
|
16
16
|
* @param version Package version
|
|
17
17
|
* @param build If relevant for your device
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* await sos.management.package.install(
|
|
21
|
-
* 'https://cdn.your-cms.com',
|
|
22
|
-
* 'io.signageosWebView.app.ota',
|
|
23
|
-
* '2.4.0',
|
|
24
|
-
* 'benq'
|
|
25
|
-
* );
|
|
26
18
|
*/
|
|
27
19
|
install(baseUrl: string, packageName: string, version: string, build: string | null): Promise<void>;
|
|
28
20
|
private getMessage;
|
|
@@ -23,14 +23,6 @@ class Package {
|
|
|
23
23
|
* @param packageName Name of the android package
|
|
24
24
|
* @param version Package version
|
|
25
25
|
* @param build If relevant for your device
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* await sos.management.package.install(
|
|
29
|
-
* 'https://cdn.your-cms.com',
|
|
30
|
-
* 'io.signageosWebView.app.ota',
|
|
31
|
-
* '2.4.0',
|
|
32
|
-
* 'benq'
|
|
33
|
-
* );
|
|
34
26
|
*/
|
|
35
27
|
async install(baseUrl, packageName, version, build) {
|
|
36
28
|
(0, Validate_1.default)({ baseUrl }).required().uri();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Package.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Package/Package.ts"],"names":[],"mappings":";;;;;AACA,uEAA+C;AAG/C;;GAEG;AACH,MAAqB,OAAO;IAGlB;IACA;IAHT,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;IAEJ,oBAAoB;IACpB
|
|
1
|
+
{"version":3,"file":"Package.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Package/Package.ts"],"names":[],"mappings":";;;;;AACA,uEAA+C;AAG/C;;GAEG;AACH,MAAqB,OAAO;IAGlB;IACA;IAHT,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;IAEJ,oBAAoB;IACpB;;;;;;;OAOG;IACI,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,WAAmB,EAAE,OAAe,EAAE,KAAoB;QAC/F,IAAA,kBAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC;QACvC,IAAA,kBAAQ,EAAC,EAAE,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QAC9C,IAAA,kBAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QAC1C,IAAA,kBAAQ,EAAC,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QACpD,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACxC,OAAO;YACP,WAAW;YACX,OAAO;YACP,KAAK;SACL,CAAC,CAAC;IACJ,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC;IACxC,CAAC;CACD;AAjCD,0BAiCC"}
|
|
@@ -15,18 +15,27 @@ export default class Power implements IPower {
|
|
|
15
15
|
* The `systemReboot()` method initializes a system reboot.
|
|
16
16
|
*
|
|
17
17
|
* @since 3.0.0
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* await sos.management.power.systemReboot();
|
|
18
21
|
*/
|
|
19
22
|
systemReboot(): Promise<void>;
|
|
20
23
|
/**
|
|
21
24
|
* The `appRestart()` method initializes a restart of the signageOS app.
|
|
22
25
|
*
|
|
23
26
|
* @since 3.0.0
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await sos.management.power.appRestart();
|
|
24
30
|
*/
|
|
25
31
|
appRestart(): Promise<void>;
|
|
26
32
|
/**
|
|
27
33
|
* The `getTimers()` method returns a list of currently set native timers.
|
|
28
34
|
*
|
|
29
35
|
* @since 4.0.0
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* const timers = await sos.management.power.getTimers();
|
|
30
39
|
*/
|
|
31
40
|
getTimers(): Promise<ITimer[]>;
|
|
32
41
|
/**
|
|
@@ -39,6 +48,9 @@ export default class Power implements IPower {
|
|
|
39
48
|
* @param volume The volume level set when the device is turned on.
|
|
40
49
|
*
|
|
41
50
|
* @since 3.0.0
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* await sos.management.power.setTimer("TIMER_1", "08:00", "22:00", ["mon", "tue", "wed", "thu", "fri", "sat", "sun"], 30);
|
|
42
54
|
*/
|
|
43
55
|
setTimer(type: keyof typeof TimerType, timeOn: string | null, timeOff: string | null, weekdays: string[], volume: number): Promise<void>;
|
|
44
56
|
/**
|
|
@@ -47,6 +59,9 @@ export default class Power implements IPower {
|
|
|
47
59
|
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
48
60
|
*
|
|
49
61
|
* @since 4.0.0
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await sos.management.power.unsetTimer("TIMER_2");
|
|
50
65
|
*/
|
|
51
66
|
unsetTimer(type: keyof typeof TimerType): Promise<void>;
|
|
52
67
|
/**
|
|
@@ -54,6 +69,9 @@ export default class Power implements IPower {
|
|
|
54
69
|
* [proprietary timers](https://docs.signageos.io/hc/en-us/articles/4416384202642-Timers#h_01HCD14GEDP96AZV58NRSN2HNQ).
|
|
55
70
|
*
|
|
56
71
|
* @since 5.10.0
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* const timers = await sos.management.power.getProprietaryTimers();
|
|
57
75
|
*/
|
|
58
76
|
getProprietaryTimers(): Promise<IProprietaryTimer[]>;
|
|
59
77
|
/**
|
|
@@ -67,6 +85,9 @@ export default class Power implements IPower {
|
|
|
67
85
|
* @param keepAppletRunning If `true`, the applet will be kept running when the timer is active on certain devices.
|
|
68
86
|
*
|
|
69
87
|
* @since 5.10.0
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await sos.management.power.setProprietaryTimer("TIMER_20", "08:00", "22:00", ["mon", "tue", "wed", "thu", "fri", "sat", "sun"], 30);
|
|
70
91
|
*/
|
|
71
92
|
setProprietaryTimer(type: ProprietaryTimerType, timeOn: string | null, timeOff: string | null, weekdays: string[], keepAppletRunning?: boolean): Promise<void>;
|
|
72
93
|
/**
|
|
@@ -76,6 +97,9 @@ export default class Power implements IPower {
|
|
|
76
97
|
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
77
98
|
*
|
|
78
99
|
* @since 5.10.0
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* await sos.management.power.unsetProprietaryTimer("TIMER_2");
|
|
79
103
|
*/
|
|
80
104
|
unsetProprietaryTimer(type: ProprietaryTimerType): Promise<void>;
|
|
81
105
|
private getMessage;
|