@signageos/front-applet 7.2.0 → 8.0.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/dist/bundle.js +8 -4
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +316 -0
- package/docs/index.md +18 -85
- package/docs/sos/browser.md +210 -0
- package/docs/sos/command.md +68 -0
- package/docs/sos/debug.md +25 -0
- package/docs/sos/deviceInfo.md +49 -0
- package/docs/sos/display.md +21 -0
- package/docs/sos/fileSystem.md +594 -0
- package/docs/sos/hardware/barcodeScanner.md +40 -0
- package/docs/sos/hardware/index.md +64 -0
- package/docs/sos/hardware/led.md +14 -0
- package/docs/sos/index.md +82 -0
- package/docs/sos/input.md +73 -0
- package/docs/sos/monitors.md +21 -0
- package/docs/sos/native/index.md +5 -0
- package/docs/sos/native/mdc.md +240 -0
- package/docs/sos/offline/cache.md +183 -0
- package/docs/sos/offline/index.md +188 -0
- package/docs/sos/osd.md +13 -0
- package/docs/sos/proofOfPlay.md +37 -0
- package/docs/sos/stream.md +960 -0
- package/docs/sos/sync.md +298 -0
- package/docs/sos/video.md +285 -0
- package/docs/sos_management/app.md +102 -0
- package/docs/sos_management/audio.md +29 -0
- package/docs/sos_management/debug.md +33 -0
- package/docs/sos_management/firmware.md +86 -0
- package/docs/sos_management/index.md +212 -0
- package/docs/sos_management/network.md +197 -0
- package/docs/sos_management/os.md +54 -0
- package/docs/sos_management/package.md +33 -0
- package/docs/sos_management/power.md +136 -0
- package/docs/sos_management/proxy.md +41 -0
- package/docs/sos_management/remoteControl.md +72 -0
- package/docs/sos_management/screen.md +198 -0
- package/docs/sos_management/security.md +47 -0
- package/docs/sos_management/time.md +101 -0
- package/docs/sos_management/wifi.md +366 -0
- package/es6/FrontApplet/Browser/Browser.d.ts +61 -8
- package/es6/FrontApplet/Browser/Browser.js +91 -39
- package/es6/FrontApplet/Browser/Browser.js.map +1 -1
- package/es6/FrontApplet/Browser/events.js +2 -2
- package/es6/FrontApplet/Browser/events.js.map +1 -1
- package/es6/FrontApplet/Command/Command.d.ts +37 -3
- package/es6/FrontApplet/Command/Command.js +49 -20
- package/es6/FrontApplet/Command/Command.js.map +1 -1
- package/es6/FrontApplet/Command/ICommandEvent.d.ts +6 -2
- package/es6/FrontApplet/Connect/Connect.d.ts +3 -0
- package/es6/FrontApplet/Connect/Connect.js +55 -7
- package/es6/FrontApplet/Connect/Connect.js.map +1 -1
- package/es6/FrontApplet/Connect/IConnectMessage.d.ts +1 -1
- package/es6/FrontApplet/Debug/Debug.d.ts +15 -1
- package/es6/FrontApplet/Debug/Debug.js +27 -17
- package/es6/FrontApplet/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Debug/debugDecorator.d.ts +3 -3
- package/es6/FrontApplet/Debug/debugDecorator.js +13 -7
- package/es6/FrontApplet/Debug/debugDecorator.js.map +1 -1
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +23 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +36 -27
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -1
- package/es6/FrontApplet/Dimensions/coordinationsHelper.js +1 -2
- package/es6/FrontApplet/Dimensions/coordinationsHelper.js.map +1 -1
- package/es6/FrontApplet/Display/Display.d.ts +25 -3
- package/es6/FrontApplet/Display/Display.js +35 -19
- package/es6/FrontApplet/Display/Display.js.map +1 -1
- package/es6/FrontApplet/Display/IDisplay.d.ts +3 -1
- package/es6/FrontApplet/Error/AppletCommandError.js +12 -3
- package/es6/FrontApplet/Error/AppletCommandError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletError.js +10 -2
- package/es6/FrontApplet/Error/AppletError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletHardwareError.js +12 -3
- package/es6/FrontApplet/Error/AppletHardwareError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js +10 -2
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletResourcesError.js +12 -3
- package/es6/FrontApplet/Error/AppletResourcesError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletSecurityError.js +12 -3
- package/es6/FrontApplet/Error/AppletSecurityError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletStreamError.js +10 -2
- package/es6/FrontApplet/Error/AppletStreamError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletVideoError.js +12 -3
- package/es6/FrontApplet/Error/AppletVideoError.js.map +1 -1
- package/es6/FrontApplet/Error/ErrorCodesMessages.js +4 -1
- package/es6/FrontApplet/Error/ErrorCodesMessages.js.map +1 -1
- package/es6/FrontApplet/Error/ErrorSuggestions.js +1 -0
- package/es6/FrontApplet/Error/ErrorSuggestions.js.map +1 -1
- package/es6/FrontApplet/Error/FileNotFoundError.js +10 -2
- package/es6/FrontApplet/Error/FileNotFoundError.js.map +1 -1
- package/es6/FrontApplet/Error/SosError.js +4 -0
- package/es6/FrontApplet/Error/SosError.js.map +1 -1
- package/es6/FrontApplet/Error/errorHelper.js +5 -6
- package/es6/FrontApplet/Error/errorHelper.js.map +1 -1
- package/es6/FrontApplet/Exchange/Exchange.js +7 -14
- package/es6/FrontApplet/Exchange/Exchange.js.map +1 -1
- package/es6/FrontApplet/FileSystem/FileSystem.d.ts +156 -1
- package/es6/FrontApplet/FileSystem/FileSystem.js +316 -193
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +2 -0
- package/es6/FrontApplet/{Stream/streamListeners.js → FileSystem/HashAlgorithm.js} +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.js.map +1 -0
- package/es6/FrontApplet/Font/fontFaceGenerator.js.map +1 -1
- package/es6/FrontApplet/FrontApplet.d.ts +55 -4
- package/es6/FrontApplet/FrontApplet.js +124 -47
- package/es6/FrontApplet/FrontApplet.js.map +1 -1
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +2 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +35 -54
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -1
- package/es6/FrontApplet/Hardware/Hardware.d.ts +16 -2
- package/es6/FrontApplet/Hardware/Hardware.js +31 -19
- package/es6/FrontApplet/Hardware/Hardware.js.map +1 -1
- package/es6/FrontApplet/Hardware/IHardware.d.ts +2 -2
- package/es6/FrontApplet/Hardware/ISerialPort.d.ts +16 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js +1 -1
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js.map +1 -1
- package/es6/FrontApplet/Hardware/Led/Led.d.ts +8 -0
- package/es6/FrontApplet/Hardware/Led/Led.js +20 -18
- package/es6/FrontApplet/Hardware/Led/Led.js.map +1 -1
- package/es6/FrontApplet/Hardware/SerialPort.d.ts +1 -1
- package/es6/FrontApplet/Hardware/SerialPort.js +15 -23
- package/es6/FrontApplet/Hardware/SerialPort.js.map +1 -1
- package/es6/FrontApplet/Hash/generator.js +1 -2
- package/es6/FrontApplet/Hash/generator.js.map +1 -1
- package/es6/FrontApplet/Iframe/Iframe.d.ts +9 -8
- package/es6/FrontApplet/Iframe/Iframe.js +10 -0
- package/es6/FrontApplet/Iframe/Iframe.js.map +1 -1
- package/es6/FrontApplet/Input/IInput.d.ts +1 -2
- package/es6/FrontApplet/Input/IKeyUpEvent.d.ts +32 -2
- package/es6/FrontApplet/Input/IKeyUpEvent.js +32 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js.map +1 -1
- package/es6/FrontApplet/Input/Input.d.ts +19 -3
- package/es6/FrontApplet/Input/Input.js +43 -22
- package/es6/FrontApplet/Input/Input.js.map +1 -1
- package/es6/FrontApplet/Management/App/App.d.ts +48 -10
- package/es6/FrontApplet/Management/App/App.js +45 -30
- package/es6/FrontApplet/Management/App/App.js.map +1 -1
- package/es6/FrontApplet/Management/App/IApp.d.ts +3 -1
- package/es6/FrontApplet/Management/Audio/Audio.d.ts +16 -0
- package/es6/FrontApplet/Management/Audio/Audio.js +30 -22
- package/es6/FrontApplet/Management/Audio/Audio.js.map +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.d.ts +4 -0
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js +15 -22
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js +4 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/Debug/Debug.d.ts +19 -0
- package/es6/FrontApplet/Management/Debug/Debug.js +37 -30
- package/es6/FrontApplet/Management/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/Firmware.d.ts +37 -10
- package/es6/FrontApplet/Management/Firmware/Firmware.js +34 -30
- package/es6/FrontApplet/Management/Firmware/Firmware.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/IFirmware.d.ts +1 -2
- package/es6/FrontApplet/Management/IManagement.d.ts +3 -1
- package/es6/FrontApplet/Management/Management.d.ts +106 -15
- package/es6/FrontApplet/Management/Management.js +191 -113
- package/es6/FrontApplet/Management/Management.js.map +1 -1
- package/es6/FrontApplet/Management/Network/INetworkInfo.d.ts +1 -1
- package/es6/FrontApplet/Management/Network/Network.d.ts +56 -8
- package/es6/FrontApplet/Management/Network/Network.js +85 -67
- package/es6/FrontApplet/Management/Network/Network.js.map +1 -1
- package/es6/FrontApplet/Management/OS/OS.d.ts +20 -0
- package/es6/FrontApplet/Management/OS/OS.js +34 -27
- package/es6/FrontApplet/Management/OS/OS.js.map +1 -1
- package/es6/FrontApplet/Management/Package/Package.d.ts +20 -0
- package/es6/FrontApplet/Management/Package/Package.js +37 -22
- package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js +4 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.d.ts +4 -0
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js +15 -22
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +64 -0
- package/es6/FrontApplet/Management/Power/Power.js +160 -115
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Proxy/Proxy.d.ts +21 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.js +41 -35
- package/es6/FrontApplet/Management/Proxy/Proxy.js.map +1 -1
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.d.ts +43 -0
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js +63 -39
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js.map +1 -1
- package/es6/FrontApplet/Management/Screen/Screen.d.ts +127 -0
- package/es6/FrontApplet/Management/Screen/Screen.js +197 -89
- package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
- package/es6/FrontApplet/Management/Security/Security.d.ts +20 -5
- package/es6/FrontApplet/Management/Security/Security.js +33 -31
- package/es6/FrontApplet/Management/Security/Security.js.map +1 -1
- package/es6/FrontApplet/Management/Time/Time.d.ts +31 -5
- package/es6/FrontApplet/Management/Time/Time.js +49 -40
- package/es6/FrontApplet/Management/Time/Time.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.d.ts +18 -0
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.js +19 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +108 -7
- package/es6/FrontApplet/Management/Wifi/Wifi.js +162 -86
- package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js +2 -2
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js +8 -6
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -2
- package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js +35 -3
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/VideoHelper.js +1 -1
- package/es6/FrontApplet/Management/helpers/VideoHelper.js.map +1 -1
- package/es6/FrontApplet/Monitors/Monitors.d.ts +9 -0
- package/es6/FrontApplet/Monitors/Monitors.js +16 -16
- package/es6/FrontApplet/Monitors/Monitors.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.d.ts +51 -2
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js +79 -38
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +4 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js +12 -2
- package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
- package/es6/FrontApplet/OSD/OSD.d.ts +9 -0
- package/es6/FrontApplet/OSD/OSD.js +15 -15
- package/es6/FrontApplet/OSD/OSD.js.map +1 -1
- package/es6/FrontApplet/Offline/Cache/Cache.d.ts +91 -2
- package/es6/FrontApplet/Offline/Cache/Cache.js +192 -130
- package/es6/FrontApplet/Offline/Cache/Cache.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.d.ts +1 -1
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js +17 -25
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/IFlags.d.ts +4 -4
- package/es6/FrontApplet/Offline/IAddFont.d.ts +3 -1
- package/es6/FrontApplet/Offline/IAddFont.js.map +1 -1
- package/es6/FrontApplet/Offline/ISaveFile.js +5 -2
- package/es6/FrontApplet/Offline/ISaveFile.js.map +1 -1
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js +2 -1
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js.map +1 -1
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js +2 -1
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js.map +1 -1
- package/es6/FrontApplet/Offline/Offline.d.ts +75 -4
- package/es6/FrontApplet/Offline/Offline.js +116 -56
- package/es6/FrontApplet/Offline/Offline.js.map +1 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +19 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +41 -29
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
- package/es6/FrontApplet/Sensors/Proximity.d.ts +4 -3
- package/es6/FrontApplet/Sensors/Proximity.js +12 -4
- package/es6/FrontApplet/Sensors/Proximity.js.map +1 -1
- package/es6/FrontApplet/Sensors/Sensors.d.ts +2 -0
- package/es6/FrontApplet/Sensors/Sensors.js +9 -2
- package/es6/FrontApplet/Sensors/Sensors.js.map +1 -1
- package/es6/FrontApplet/Stream/IStream.d.ts +10 -10
- package/es6/FrontApplet/Stream/Stream.d.ts +130 -15
- package/es6/FrontApplet/Stream/Stream.js +229 -130
- package/es6/FrontApplet/Stream/Stream.js.map +1 -1
- package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +152 -6
- package/es6/FrontApplet/Sync/Sync.js +196 -112
- package/es6/FrontApplet/Sync/Sync.js.map +1 -1
- package/es6/FrontApplet/Sync/syncEvents.d.ts +3 -1
- package/es6/FrontApplet/Sync/syncMessages.js +1 -1
- package/es6/FrontApplet/Sync/syncMessages.js.map +1 -1
- package/es6/FrontApplet/Timing/Timing.d.ts +1 -0
- package/es6/FrontApplet/Timing/Timing.js +9 -2
- package/es6/FrontApplet/Timing/Timing.js.map +1 -1
- package/es6/FrontApplet/Timing/Triggers/ITimingTriggersMessage.d.ts +1 -1
- package/es6/FrontApplet/Timing/Triggers/Triggers.d.ts +9 -0
- package/es6/FrontApplet/Timing/Triggers/Triggers.js +16 -18
- package/es6/FrontApplet/Timing/Triggers/Triggers.js.map +1 -1
- package/es6/FrontApplet/Touch/Touch.d.ts +3 -0
- package/es6/FrontApplet/Touch/Touch.js +13 -3
- package/es6/FrontApplet/Touch/Touch.js.map +1 -1
- package/es6/FrontApplet/Validate/Validate.js +14 -11
- package/es6/FrontApplet/Validate/Validate.js.map +1 -1
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js +7 -2
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js.map +1 -1
- package/es6/FrontApplet/Video/IOptions.d.ts +8 -1
- package/es6/FrontApplet/Video/IVideo.d.ts +8 -8
- package/es6/FrontApplet/Video/IVideoEvent.js +3 -3
- package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -1
- package/es6/FrontApplet/Video/Video.d.ts +84 -12
- package/es6/FrontApplet/Video/Video.js +161 -102
- package/es6/FrontApplet/Video/Video.js.map +1 -1
- package/es6/FrontApplet/createFrontApplet.js +5 -2
- package/es6/FrontApplet/createFrontApplet.js.map +1 -1
- package/es6/Monitoring/Display/handleDisplayRequests.d.ts +2 -2
- package/es6/Monitoring/Display/handleDisplayRequests.js +5 -15
- package/es6/Monitoring/Display/handleDisplayRequests.js.map +1 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +10 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js +3 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.d.ts +2 -2
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +41 -45
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.d.ts +2 -2
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js +4 -14
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js.map +1 -1
- package/es6/Monitoring/Management/App/handleApplicationRequests.d.ts +2 -2
- package/es6/Monitoring/Management/App/handleApplicationRequests.js +9 -19
- package/es6/Monitoring/Management/App/handleApplicationRequests.js.map +1 -1
- package/es6/Monitoring/Management/Audio/handleAudioRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Audio/handleAudioRequests.js +7 -17
- package/es6/Monitoring/Management/Audio/handleAudioRequests.js.map +1 -1
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.d.ts +2 -2
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js +7 -17
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js.map +1 -1
- package/es6/Monitoring/Management/Debug/handleDebugRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Debug/handleDebugRequests.js +9 -19
- package/es6/Monitoring/Management/Debug/handleDebugRequests.js.map +1 -1
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js +11 -21
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js.map +1 -1
- package/es6/Monitoring/Management/Os/managementOsRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Os/managementOsRequests.js +9 -19
- package/es6/Monitoring/Management/Os/managementOsRequests.js.map +1 -1
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.d.ts +2 -2
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js +7 -17
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js.map +1 -1
- package/es6/Monitoring/Management/Power/handlePowerRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Power/handlePowerRequests.js +19 -29
- package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.d.ts +2 -2
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js +15 -25
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js.map +1 -1
- package/es6/Monitoring/Management/Screen/handleScreenRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js +19 -29
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
- package/es6/Monitoring/Management/Security/handleSecurityCommands.d.ts +2 -2
- package/es6/Monitoring/Management/Security/handleSecurityCommands.js +9 -19
- package/es6/Monitoring/Management/Security/handleSecurityCommands.js.map +1 -1
- package/es6/Monitoring/Management/Time/handleTimeCommands.d.ts +2 -2
- package/es6/Monitoring/Management/Time/handleTimeCommands.js +9 -19
- package/es6/Monitoring/Management/Time/handleTimeCommands.js.map +1 -1
- package/es6/Monitoring/Management/handleManagementRequests.d.ts +2 -2
- package/es6/Monitoring/Management/handleManagementRequests.js +23 -33
- package/es6/Monitoring/Management/handleManagementRequests.js.map +1 -1
- package/es6/Monitoring/{Montoring.d.ts → Monitoring.d.ts} +1 -0
- package/es6/Monitoring/{Montoring.js → Monitoring.js} +12 -23
- package/es6/Monitoring/Monitoring.js.map +1 -0
- package/es6/Monitoring/NativeCommands/handleNativeCommands.d.ts +2 -2
- package/es6/Monitoring/NativeCommands/handleNativeCommands.js +5 -15
- package/es6/Monitoring/NativeCommands/handleNativeCommands.js.map +1 -1
- package/es6/Monitoring/OSD/handleOsdRequests.d.ts +2 -2
- package/es6/Monitoring/OSD/handleOsdRequests.js +5 -15
- package/es6/Monitoring/OSD/handleOsdRequests.js.map +1 -1
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.d.ts +2 -2
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js +23 -33
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js.map +1 -1
- package/es6/Monitoring/Video/handleVideoRequests.d.ts +2 -2
- package/es6/Monitoring/Video/handleVideoRequests.js +36 -9
- package/es6/Monitoring/Video/handleVideoRequests.js.map +1 -1
- package/es6/Monitoring/handleMonitoringRequests.d.ts +2 -2
- package/es6/Monitoring/handleMonitoringRequests.js +6 -16
- package/es6/Monitoring/handleMonitoringRequests.js.map +1 -1
- package/es6/Sensors/IButton.js +1 -1
- package/es6/Sensors/IButton.js.map +1 -1
- package/es6/Sensors/IRfidAntenna.js +1 -1
- package/es6/Sensors/IRfidAntenna.js.map +1 -1
- package/es6/Util/Console/enhancer.js +1 -2
- package/es6/Util/Console/enhancer.js.map +1 -1
- package/es6/bundle.d.ts +1 -1
- package/es6/bundle.js +6 -3
- package/es6/bundle.js.map +1 -1
- package/es6/fpath.js +34 -1
- package/es6/fpath.js.map +1 -1
- package/es6/utils/types.d.ts +1 -0
- package/es6/{FrontApplet/Input/IKeyUpEventListener.js → utils/types.js} +1 -1
- package/es6/utils/types.js.map +1 -0
- package/package.json +27 -25
- package/CHANGELOG.md +0 -484
- package/docs/applet-basics.md +0 -272
- package/docs/content/js-applet-resources.md +0 -154
- package/docs/content/js-browser.md +0 -163
- package/docs/content/js-command.md +0 -154
- package/docs/content/js-debug.md +0 -36
- package/docs/content/js-device-info.md +0 -56
- package/docs/content/js-display.md +0 -56
- package/docs/content/js-file-system.md +0 -670
- package/docs/content/js-fonts.md +0 -115
- package/docs/content/js-hardware.md +0 -55
- package/docs/content/js-iframes.md +0 -66
- package/docs/content/js-input.md +0 -71
- package/docs/content/js-offline-cache-media-files.md +0 -257
- package/docs/content/js-offline-cache-simple-data.md +0 -129
- package/docs/content/js-osd.md +0 -32
- package/docs/content/js-proof-of-play.md +0 -60
- package/docs/content/js-sensors.md +0 -70
- package/docs/content/js-serial.md +0 -165
- package/docs/content/js-sync-playback.md +0 -384
- package/docs/content/js-video-inputs-internal-ports.md +0 -131
- package/docs/content/js-video-stream.md +0 -618
- package/docs/content/js-video.md +0 -232
- package/docs/management/js-management-application.md +0 -107
- package/docs/management/js-management-audio.md +0 -44
- package/docs/management/js-management-debug.md +0 -40
- package/docs/management/js-management-firmware.md +0 -93
- package/docs/management/js-management-management.md +0 -178
- package/docs/management/js-management-monitoring-commands.md +0 -107
- package/docs/management/js-management-monitors.md +0 -55
- package/docs/management/js-management-native-commands-mdc.md +0 -90
- package/docs/management/js-management-network.md +0 -223
- package/docs/management/js-management-os.md +0 -62
- package/docs/management/js-management-package.md +0 -48
- package/docs/management/js-management-power.md +0 -175
- package/docs/management/js-management-proxy.md +0 -81
- package/docs/management/js-management-remote-control.md +0 -58
- package/docs/management/js-management-screen.md +0 -225
- package/docs/management/js-management-security.md +0 -71
- package/docs/management/js-management-time.md +0 -161
- package/docs/management/js-management-wifi.md +0 -341
- package/es6/FrontApplet/Command/ICommandEventListener.d.ts +0 -6
- package/es6/FrontApplet/Command/ICommandEventListener.js +0 -3
- package/es6/FrontApplet/Command/ICommandEventListener.js.map +0 -1
- package/es6/FrontApplet/Input/IKeyUpEventListener.d.ts +0 -5
- package/es6/FrontApplet/Input/IKeyUpEventListener.js.map +0 -1
- package/es6/FrontApplet/Management/Firmware/FirmwareType.d.ts +0 -4
- package/es6/FrontApplet/Management/Firmware/FirmwareType.js +0 -9
- package/es6/FrontApplet/Management/Firmware/FirmwareType.js.map +0 -1
- package/es6/FrontApplet/Stream/streamListeners.d.ts +0 -10
- package/es6/FrontApplet/Stream/streamListeners.js.map +0 -1
- package/es6/FrontApplet/Video/IVideoEventListener.d.ts +0 -5
- package/es6/FrontApplet/Video/IVideoEventListener.js +0 -3
- package/es6/FrontApplet/Video/IVideoEventListener.js.map +0 -1
- package/es6/Monitoring/Montoring.js.map +0 -1
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Monitoring Commands
|
|
3
|
-
author: Miroslav Behina
|
|
4
|
-
date: 22.11.2018
|
|
5
|
-
type: js-management-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- js_api
|
|
11
|
-
description: "[Content JS API] All commands have type prefixed with sos. string. It is not recommended using this prefix as a type in your custom commands. Predefined monitoring commands are not dispatched until monitoring is enabled. There are two ways how to enable it."
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Monitoring Commands
|
|
15
|
-
|
|
16
|
-
:::warning
|
|
17
|
-
This is only a preview, not supported by all platforms. Supported since: 2.0.0
|
|
18
|
-
:::
|
|
19
|
-
|
|
20
|
-
All commands have type prefixed with sos. string. It is not recommended using this prefix as a type in your custom commands. Predefined monitoring commands are not dispatched until monitoring is enabled. There are two ways how to enable it.
|
|
21
|
-
|
|
22
|
-
* Adding a special reserved key in Timing configuration sosMonitoring' to 1
|
|
23
|
-
* Sending a command to a device with type ```sos.Monitoring.EnableMonitoring```
|
|
24
|
-
OR
|
|
25
|
-
```sos.Monitoring.DisableMonitoring```
|
|
26
|
-
|
|
27
|
-
## List of monitoring commands:
|
|
28
|
-
|
|
29
|
-
### Typescript
|
|
30
|
-
```typescript
|
|
31
|
-
export const VideoStateChanged = 'sos.Monitoring.Video.VideoStateChanged';
|
|
32
|
-
export interface VideoStateChanged {
|
|
33
|
-
type: typeof VideoStateChanged;
|
|
34
|
-
state: 'play' | 'prepare' | 'stop' | 'pause' | 'resume' | 'ended' | 'error';
|
|
35
|
-
uri: string;
|
|
36
|
-
x: number;
|
|
37
|
-
y: number;
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
export const TimingLoaded = 'sos.Monitoring.Timing.TimingLoaded';
|
|
44
|
-
export interface TimingLoaded { type: typeof TimingLoaded; }
|
|
45
|
-
|
|
46
|
-
export const OfflineCacheFilesListed = 'sos.Monitoring.Offline.Cache.OfflineCacheFilesListed';
|
|
47
|
-
export interface OfflineCacheFilesListed {
|
|
48
|
-
type: typeof OfflineCacheFilesListed;
|
|
49
|
-
fileUids: string[];
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export const OfflineCacheFileLoaded = 'sos.Monitoring.Offline.Cache.OfflineCacheFileLoaded';
|
|
53
|
-
export interface OfflineCacheFileLoaded {
|
|
54
|
-
type: typeof OfflineCacheFileLoaded;
|
|
55
|
-
file: IFile;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export const HtmlSnapshotTaken = 'sos.Monitoring.Html.HtmlSnapshotTaken';
|
|
59
|
-
export interface HtmlSnapshotTaken {
|
|
60
|
-
type: typeof HtmlSnapshotTaken;
|
|
61
|
-
html: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export const ConsoleLogged = 'sos.Monitoring.Console.ConsoleLogged';
|
|
65
|
-
export interface ConsoleLogged {
|
|
66
|
-
type: typeof ConsoleLogged;
|
|
67
|
-
level: 'log' | 'debug' | 'info' | 'warn' | 'error';
|
|
68
|
-
messages: string[];
|
|
69
|
-
}
|
|
70
|
-
```
|
|
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://developers.signageos.io/api/#tag/DeviceApplet-Command/paths/~1v1~1device~1%7BdeviceUid%7D~1applet~1%7BappletUid%7D~1command/post). Following commands can be used:
|
|
73
|
-
|
|
74
|
-
### Typescript
|
|
75
|
-
```typescript
|
|
76
|
-
export const EnableMonitoring = 'sos.Monitoring.EnableMonitoring';
|
|
77
|
-
export interface EnableMonitoring { type: typeof EnableMonitoring; }
|
|
78
|
-
|
|
79
|
-
export const DisableMonitoring = 'sos.Monitoring.DisableMonitoring';
|
|
80
|
-
export interface DisableMonitoring { type: typeof DisableMonitoring; }
|
|
81
|
-
|
|
82
|
-
export const TakeHtmlSnapshot = 'sos.Html.TakeHtmlSnapshot';
|
|
83
|
-
export interface TakeHtmlSnapshot {
|
|
84
|
-
type: typeof TakeHtmlSnapshot;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export const OfflineCacheListFiles = 'sos.Monitoring.Offline.Cache.OfflineCacheListFiles';
|
|
88
|
-
export interface OfflineCacheListFiles {
|
|
89
|
-
type: typeof OfflineCacheListFiles;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export const OfflineCacheLoadFile = 'sos.Monitoring.Offline.Cache.OfflineCacheLoadFile';
|
|
93
|
-
export interface OfflineCacheLoadFile {
|
|
94
|
-
type: typeof OfflineCacheLoadFile;
|
|
95
|
-
uid: string;
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## Errors
|
|
100
|
-
Although we are doing our best, following errors may occur when working with the commands.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
| Code | Type | Message |
|
|
104
|
-
| ---- | ---- | ------- |
|
|
105
|
-
| 40401 | AppletCommandTypeError | Type contains invalid characters, allowed are `/^[a-zA-Z0-9\.\-_]+$/g` |
|
|
106
|
-
| 40402 | AppletCommandTypeError | Type is longer then 100 characters. |
|
|
107
|
-
| 40403 | AppletCommandTypeError | Command type must be a string.
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Monitors
|
|
3
|
-
author: Alisher Nurmatov
|
|
4
|
-
date: 29.12.2020
|
|
5
|
-
type: js-management-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- js_api
|
|
11
|
-
description: "[Content JS API] Monitors provides info about connected **monitors**"
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Monitors
|
|
15
|
-
|
|
16
|
-
Provides information about currently connected monitors. Such as manufacturer, model, serial, firmware (optional).
|
|
17
|
-
|
|
18
|
-
## All methods
|
|
19
|
-
|
|
20
|
-
| Method/Events | Description | Supported since |
|
|
21
|
-
| ----------------- | --------------------------------- | :---------------: |
|
|
22
|
-
| `getList()` | Method gets list of monitors. | 4.0.0 |
|
|
23
|
-
|
|
24
|
-
## getList()
|
|
25
|
-
|
|
26
|
-
### Monitor object
|
|
27
|
-
|
|
28
|
-
Here is the monitor object defined as Typescript interface:
|
|
29
|
-
|
|
30
|
-
```typescript
|
|
31
|
-
interface IMonitor {
|
|
32
|
-
manufacturer: string;
|
|
33
|
-
model: string;
|
|
34
|
-
serial: string;
|
|
35
|
-
firmware?: string;
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Javascript example
|
|
40
|
-
```javascript
|
|
41
|
-
// gets list of monitors
|
|
42
|
-
await sos.monitors.getList();
|
|
43
|
-
```
|
|
44
|
-
### Returns
|
|
45
|
-
|
|
46
|
-
```json
|
|
47
|
-
[
|
|
48
|
-
{
|
|
49
|
-
"model":"LG Ultra HD",
|
|
50
|
-
"manufacturer":"GSM",
|
|
51
|
-
"serial":"232111"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
```
|
|
55
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Native Commands (MDC)
|
|
3
|
-
author: Josef Král
|
|
4
|
-
date: 19.3.2024
|
|
5
|
-
type: js-management-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- js_management_api
|
|
11
|
-
- mdc
|
|
12
|
-
- tizen
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Native Commands (MDC)
|
|
16
|
-
Native Commands API allows you to control the device using native commands.
|
|
17
|
-
|
|
18
|
-
:::warning
|
|
19
|
-
- This API is supported only on Tizen devices.
|
|
20
|
-
- You can ensure that the device supports MDC commands via `sos.management.supports("NATIVE_COMMANDS_MDC")`.
|
|
21
|
-
:::
|
|
22
|
-
|
|
23
|
-
## All methods
|
|
24
|
-
|
|
25
|
-
| Method | Description | Supported since |
|
|
26
|
-
| ------ | ------ |-----------------|
|
|
27
|
-
| `sendOne()` | Send MDC command on one IP address (or localhost) | 6.5.1 |
|
|
28
|
-
| `sendOneRaw()` | Send MDC command on one IP address (or localhost) with subcommands | 6.7.1 |
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
## sendOne()
|
|
32
|
-
Method `sendOne()` will send MDC command on one IP address (or localhost).
|
|
33
|
-
|
|
34
|
-
| Param | Type | Required | Description |
|
|
35
|
-
| -------------- | ----------------------| :-------: | -------------------- |
|
|
36
|
-
| `ipAddress` | string | <div class="red">Yes</div> | IP address or `localhost` |
|
|
37
|
-
| `command` | number | <div class="red">Yes</div> | Command to send |
|
|
38
|
-
| `data` | array | <div class="yellow">No</div> | Data for command/subcommands |
|
|
39
|
-
|
|
40
|
-
### Javascript example
|
|
41
|
-
```javascript
|
|
42
|
-
await sos.native.mdc.sendOne('localhost', CodesMDC.BRIGHTNESS_CONTROL); // Promise<IMDCResponse>
|
|
43
|
-
await sos.native.mdc.sendOne('192.168.0.10', CodesMDC.VOLUME_CONTROL, [50]); // Promise<IMDCResponse>
|
|
44
|
-
await sos.native.mdc.sendOne('192.168.0.10', CodesMDC.PICTURE_CONTROL, [0x54, 0x03]); // Promise<IMDCResponse>
|
|
45
|
-
|
|
46
|
-
// You can also send custom number if we don't have predefined command in our enum
|
|
47
|
-
await sos.native.mdc.sendOne('192.168.0.10', 0x01, []); // Promise<IMDCResponse>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## sendOneRaw()
|
|
51
|
-
Method `sendOneRaw()` will send MDC command on one IP address (or localhost) with subcommands .
|
|
52
|
-
|
|
53
|
-
| Param | Type | Required | Description |
|
|
54
|
-
| -------------- | ----------------------| :-------: | -------------------- |
|
|
55
|
-
| `ipAddress` | string | <div class="red">Yes</div> | IP address or `localhost` |
|
|
56
|
-
| `data` | number | <div class="red">Yes</div> | Data for command/subcommands |
|
|
57
|
-
|
|
58
|
-
### Javascript example
|
|
59
|
-
```javascript
|
|
60
|
-
await sos.native.mdc.sendOneRaw('localhost', [0x1B, 0x00, 0x01, 0x74]); // Promise<IMDCResponse>
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Example of returned object
|
|
64
|
-
```javascript
|
|
65
|
-
{
|
|
66
|
-
"type": "ACK", // or NACK
|
|
67
|
-
"commandType": 4,
|
|
68
|
-
"result": 0, // Value what command returned
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## CodesMDC
|
|
73
|
-
CodesMDC is an enum with all predefined commands, it's useful if you are writing applet in JavaScript or TypeScript.
|
|
74
|
-
|
|
75
|
-
### Example of few commands
|
|
76
|
-
```typescript
|
|
77
|
-
import { CodesMDC } from '@signageos/front-applet/es6/FrontApplet/NativeCommands/MDC/CodesMDC';
|
|
78
|
-
export enum CodesMDC {
|
|
79
|
-
STATUS_CONTROL = 0x00,
|
|
80
|
-
VIDEO_CONTROL = 0x04,
|
|
81
|
-
RGB_CONTROL = 0x06,
|
|
82
|
-
PIP_STATUS_CONTROL = 0x07,
|
|
83
|
-
MAINTENANCE_CONTROL = 0x08,
|
|
84
|
-
SOUND_CONTROL = 0x09,
|
|
85
|
-
// ...
|
|
86
|
-
}
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Network
|
|
3
|
-
author: Miroslav Behina
|
|
4
|
-
date: 1.4.2018
|
|
5
|
-
type: js-management-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- js_management_api
|
|
11
|
-
- network
|
|
12
|
-
description: "[Management JS API] Network management API allows you to manually set network interfaces or set back DHCP and current active network info."
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Network
|
|
16
|
-
Network management API allows you to manually set network interfaces or set back DHCP and current active network info.
|
|
17
|
-
|
|
18
|
-
## All methods
|
|
19
|
-
|
|
20
|
-
| Method | Description | Supported since |
|
|
21
|
-
| ------ | -------- | :-------------: |
|
|
22
|
-
| `getActiveInfo()` | Information about network interfaces, IP addesses and MAC addresses (**DEPRECATED**) | 4.0 |
|
|
23
|
-
| `listInterfaces()` | Information about network interfaces | 4.9 |
|
|
24
|
-
| `setManual()` | Allows you to set network settings manually | 4.0 |
|
|
25
|
-
| `setDHCP()` | Allows you to set network settings automatically from DHCP | 4.0 |
|
|
26
|
-
| `disableInterface()` | Disables a network interface | 4.13 |
|
|
27
|
-
|
|
28
|
-
## getActiveInfo()
|
|
29
|
-
Method `getActiveInfo()` will display information about connected network.
|
|
30
|
-
|
|
31
|
-
:::warning
|
|
32
|
-
This method is deprecated. Use `listInterfaces()` instead.
|
|
33
|
-
:::
|
|
34
|
-
|
|
35
|
-
### Javascript example
|
|
36
|
-
```javascript
|
|
37
|
-
await sos.management.network.getActiveInfo();
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Example of response
|
|
41
|
-
```json
|
|
42
|
-
{
|
|
43
|
-
"activeInterface": "ethernet",
|
|
44
|
-
"dns": [
|
|
45
|
-
"192.168.1.1",
|
|
46
|
-
"1.1.1.1"
|
|
47
|
-
],
|
|
48
|
-
"gateway": "192.168.1.1",
|
|
49
|
-
"localAddress": "192.168.1.137",
|
|
50
|
-
"ethernetMacAddress": "b8:27:eb:25:8f:63",
|
|
51
|
-
"wifiMacAddress": "b8:27:eb:25:8f:63",
|
|
52
|
-
"netmask": "255.255.255.0"
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Wifi connection strength is described as percentage in range from 0 to 100, linearly converted from dBm -90 to -30 respectively based on platform.
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"activeInterface": "wifi",
|
|
61
|
-
"dns": [
|
|
62
|
-
"192.168.1.1",
|
|
63
|
-
"1.1.1.1"
|
|
64
|
-
],
|
|
65
|
-
"gateway": "192.168.1.1",
|
|
66
|
-
"localAddress": "192.168.1.137",
|
|
67
|
-
"ethernetMacAddress": "b8:27:eb:25:8f:63",
|
|
68
|
-
"wifiMacAddress": "b8:27:eb:25:8f:63",
|
|
69
|
-
"netmask": "255.255.255.0",
|
|
70
|
-
"wifiSsid": "hotel",
|
|
71
|
-
"wifiStrength": "87"
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
:::note[GitHub Example]
|
|
76
|
-
[Getting network data from device](https://github.com/signageos/applet-examples/blob/master/examples/management-js-api/network/)
|
|
77
|
-
:::
|
|
78
|
-
|
|
79
|
-
## listInterfaces()
|
|
80
|
-
Returns list of all network interfaces, and their information like MAC address, IP address, etc.
|
|
81
|
-
|
|
82
|
-
### Javascript example
|
|
83
|
-
```javascript
|
|
84
|
-
const interfaces = await sos.management.network.listInterfaces();
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Example of response
|
|
88
|
-
|
|
89
|
-
Wifi connection strength is described as percentage in range from 0 to 100, linearly converted from dBm -90 to -30 respectively based on platform.
|
|
90
|
-
|
|
91
|
-
```json
|
|
92
|
-
[
|
|
93
|
-
{
|
|
94
|
-
"type": "ethernet",
|
|
95
|
-
"name": "eth0",
|
|
96
|
-
"macAddress": "b8:27:eb:25:8f:63",
|
|
97
|
-
"localAddress": "192.168.1.137",
|
|
98
|
-
"gateway": "192.168.1.1",
|
|
99
|
-
"netmask": "255.255.255.0",
|
|
100
|
-
"dns": [
|
|
101
|
-
"192.168.1.1",
|
|
102
|
-
"1.1.1.1"
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"type": "wifi",
|
|
107
|
-
"name": "wlan0",
|
|
108
|
-
"macAddress": "b8:27:eb:25:8f:63",
|
|
109
|
-
"localAddress": "192.168.1.138",
|
|
110
|
-
"gateway": "192.168.1.1",
|
|
111
|
-
"netmask": "255.255.255.0",
|
|
112
|
-
"dns": [
|
|
113
|
-
"192.168.1.1",
|
|
114
|
-
"1.1.1.1"
|
|
115
|
-
],
|
|
116
|
-
"wifiSsid": "hotel",
|
|
117
|
-
"wifiStrength": "87"
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
:::note[GitHub Example]
|
|
123
|
-
[Getting network interfaces from device](https://github.com/signageos/applet-examples/blob/master/examples/management-js-api/network/)
|
|
124
|
-
:::
|
|
125
|
-
|
|
126
|
-
## setManual()
|
|
127
|
-
Manually configures a network interface.
|
|
128
|
-
If the interface is disabled, it will be enabled.
|
|
129
|
-
|
|
130
|
-
:::warning
|
|
131
|
-
Wi-Fi interface can be configured with this method but it has to be first enabled via the [Wi-Fi API](js-management-wifi).
|
|
132
|
-
:::
|
|
133
|
-
|
|
134
|
-
### Object properties
|
|
135
|
-
|
|
136
|
-
#### New way
|
|
137
|
-
| Name | Type | Required | Description |
|
|
138
|
-
| ---- | ---- | :------: | ------ |
|
|
139
|
-
| `interfaceName` | String | <div class="red">Yes</div> | Network interface name, can be retrieved from `listInterfaces()` |
|
|
140
|
-
| `options.localAddress` | String | <div class="red">Yes</div> | Network local address |
|
|
141
|
-
| `options.gateway` | String | <div class="red">Yes</div> | Network gateway |
|
|
142
|
-
| `options.netmask` | String | <div class="red">Yes</div> | Network netmask |
|
|
143
|
-
| `options.dns` | Array | <div class="red">Yes</div> | Array of additionally DNSs |
|
|
144
|
-
|
|
145
|
-
#### Old way (deprecated)
|
|
146
|
-
| Name | Type | Required | Description |
|
|
147
|
-
| ---- | ---- | :------: | ------ |
|
|
148
|
-
| `interface` | String | <div class="red">Yes</div> | Network type interface, can be only `ethernet` or `wifi` |
|
|
149
|
-
| `localAddress` | String | <div class="red">Yes</div> | Network local address |
|
|
150
|
-
| `gateway` | String | <div class="red">Yes</div> | Network gateway |
|
|
151
|
-
| `netmask` | String | <div class="red">Yes</div> | Network netmask |
|
|
152
|
-
| `dns` | Array | <div class="red">Yes</div> | Array of additionally DNSs |
|
|
153
|
-
|
|
154
|
-
### Javascript example
|
|
155
|
-
```javascript
|
|
156
|
-
// new way
|
|
157
|
-
await sos.management.network.setManual('eth0', {
|
|
158
|
-
localAddress: '192.168.1.133',
|
|
159
|
-
gateway: '192.168.1.1',
|
|
160
|
-
netmask: '255.255.255.0',
|
|
161
|
-
dns: ['8.8.8.8', '192.168.1.1'],
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
// old way (deprecated)
|
|
165
|
-
await sos.management.network.setManual({
|
|
166
|
-
interface: 'ethernet',
|
|
167
|
-
localAddress: '192.168.1.133',
|
|
168
|
-
gateway: '192.168.1.1',
|
|
169
|
-
netmask: '255.255.255.0',
|
|
170
|
-
dns: ['8.8.8.8', '192.168.1.1'],
|
|
171
|
-
});
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
## setDHCP()
|
|
175
|
-
Configures a network interface to use DHCP to get an IP address asigned from the network.
|
|
176
|
-
If the interface is disabled, it will be enabled.
|
|
177
|
-
|
|
178
|
-
:::warning
|
|
179
|
-
Wi-Fi interface can be configured with this method but it has to be first enabled via the [Wi-Fi API](js-management-wifi).
|
|
180
|
-
:::
|
|
181
|
-
|
|
182
|
-
### Object properties
|
|
183
|
-
|
|
184
|
-
#### New way
|
|
185
|
-
| Name | Type | Required | Description |
|
|
186
|
-
| ---- | ---- | :------: | ------ |
|
|
187
|
-
| `interfaceName` | String | <div class="red">Yes</div> | Network interface name, can be retrieved from `listInterfaces()` |
|
|
188
|
-
|
|
189
|
-
#### Old way (deprecated)
|
|
190
|
-
| Name | Type | Required | Description |
|
|
191
|
-
| ---- | ---- | :------: | ------ |
|
|
192
|
-
| `networkInterface` | String | <div class="red">Yes</div> | Network type interface, can be only `ethernet` or `wifi` |
|
|
193
|
-
|
|
194
|
-
### Javascript example
|
|
195
|
-
```javascript
|
|
196
|
-
// new way
|
|
197
|
-
await sos.management.network.setDHCP('eth0');
|
|
198
|
-
|
|
199
|
-
// old way (deprecated)
|
|
200
|
-
await sos.management.network.setDHCP('ethernet');
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
## disableInterface()
|
|
204
|
-
Disables a network interface
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
| Param | Type | Required | Description |
|
|
208
|
-
| --------------- | ------ | :------------------------: | ---------------------------------------------------- |
|
|
209
|
-
| `interfaceName` | String | <div class="red">Yes</div> | Name of the network interface, that will be disabled
|
|
210
|
-
|
|
211
|
-
### Javascript example
|
|
212
|
-
```javascript
|
|
213
|
-
await sos.management.wifi.disableInterface("eth0");
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
:::info
|
|
217
|
-
A disabled network interface can be re-enabled simply by calling either `setDHCP()` or `setManual()`.
|
|
218
|
-
:::
|
|
219
|
-
|
|
220
|
-
:::warning
|
|
221
|
-
Don't use this method to disable Wi-Fi.
|
|
222
|
-
Use [Wi-Fi API](js-management-wifi) to enable/disable Wi-Fi.
|
|
223
|
-
:::
|
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
| Method | Description | Supported since |
|
|
21
|
-
| ------ | ------ | ------------- |
|
|
22
|
-
| `getInfo()` | Get current OS version | 5.0 |
|
|
23
|
-
| `getCpuUsage()` | Get current CPU usage | 5.4 |
|
|
24
|
-
| `getMemoryUsage()` | Get current RAM usage | 5.4
|
|
25
|
-
|
|
26
|
-
## getInfo()
|
|
27
|
-
Method `getInfo()` will specify info about device like a what current version of is is installed on a device.
|
|
28
|
-
|
|
29
|
-
Major version of current operating system. It's usually 1 or 2 digits including or excluding dot notation.
|
|
30
|
-
|
|
31
|
-
**Examples:**
|
|
32
|
-
|
|
33
|
-
- Windows -> 7, 8, 10, 11
|
|
34
|
-
- WebOS -> 3, 3.2, 4, 4.1, 6
|
|
35
|
-
- Tizen -> 2.4, 3, 4, 5, 6.5
|
|
36
|
-
|
|
37
|
-
### Javascript example
|
|
38
|
-
```javascript
|
|
39
|
-
sos.management.os.getInfo().then((info) => {
|
|
40
|
-
console.log(info); // Returns Object e.g. { version: 3 }
|
|
41
|
-
});
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## getCpuUsage()
|
|
45
|
-
Method `getCpuUsage()` returns current CPU usage as number from 0 to 100.
|
|
46
|
-
|
|
47
|
-
### Javascript example
|
|
48
|
-
```javascript
|
|
49
|
-
sos.management.os.getCpuUsage().then((usage) => {
|
|
50
|
-
console.log(usage); // Returns number e.g. 50 as 50 %
|
|
51
|
-
});
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## getMemoryUsage()
|
|
55
|
-
Method `getMemoryUsage()` returns total memory amount in bytes, currently used memory and remaining free memory.
|
|
56
|
-
|
|
57
|
-
### Javascript example
|
|
58
|
-
```javascript
|
|
59
|
-
sos.management.os.getMemoryUsage().then((usage) => {
|
|
60
|
-
console.log(usage); // Returns number e.g. { total: 2048, used: 1024, free 1024 }
|
|
61
|
-
});
|
|
62
|
-
```
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Package
|
|
3
|
-
author: Krystof Woldrich
|
|
4
|
-
date: 24.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] Management API package allows you to install new packages."
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Package
|
|
15
|
-
Management API package allows you to install new packages.
|
|
16
|
-
|
|
17
|
-
## All methods
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
| Methods | Description | Supported since |
|
|
21
|
-
| ------ | -------- | :-------------: |
|
|
22
|
-
| `install()` | Install additional packages to Android devices (eg. new WebView) | 3.0
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## install()
|
|
26
|
-
Method `install()` will install a certain package from the specified url.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
| Param |Type | Required | Value | Description |
|
|
30
|
-
| -------------- | --------------| :---------------: | ------ | ---------------------- |
|
|
31
|
-
| `baseUrl` | String | <div class="red">Yes</div> | `https://cdn.your-cms.com` | URL where the package is available |
|
|
32
|
-
| `packageName` | String | <div class="red">Yes</div> | `io.signageosWebView.app.ota` | Name of the android package |
|
|
33
|
-
| `version` | String | <div class="red">Yes</div> | `2.4.0` | Package version |
|
|
34
|
-
| `build` | String or null | <div class="red">Yes</div> | `benq` or `philips`,... | If relevant for your device
|
|
35
|
-
|
|
36
|
-
### Javascript example
|
|
37
|
-
```javascript
|
|
38
|
-
await sos.management.package.install(
|
|
39
|
-
'https://cdn.your-cms.com',
|
|
40
|
-
'io.signageosWebView.app.ota',
|
|
41
|
-
'2.4.0',
|
|
42
|
-
'benq'
|
|
43
|
-
);
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
:::note[GitHub Example]
|
|
47
|
-
[How to install package on device](https://github.com/signageos/applet-examples/blob/master/examples/management-js-api/package-install/)
|
|
48
|
-
:::
|