Skip to content

signageos/applet-examples

Repository files navigation

Example Applets for signageOS

This repository contains:

  • Sample Applets code for every simple method documented in signageOS Documentation.

  • Sample SMIL files for signageOS SMIL Player

  • Benchmark test Applets for signageOS SoC and Media Player Benchmarking

Note:
Applets are written in es2017 JavaScript notation. It's supported language for every supported device.

List of available sample Applets:

Content-related examples

Device management examples

SMIL playlists examples

Demos

Samples

Publish applets

CI publishing

Local publishing

  • For publishing locally, install package npm i @signageos/cli -g, do sos login & sos organization set-default.
  • Run publishing using command npm run upload-applet

Test applets

CI running tests

Local running tests

  • For testing locally, install package npm i @signageos/cli -g, do sos login & sos organization set-default.
  • Always export correct export SOS_APPLET_UID="__FILL_YOUR_APPLET_UID__" & export SOS_APPLET_VERSION="__FILL_YOUR_APPLET_VERSION__" for the applet you are testing & export SOS_DEVICE_UID="__FILL_DEVICE_UID_TO_TEST_ON__" for the device you want to test against.
  • Run tests using command npm test.

signageOS cloud running tests from Box

signageOS cloud running tests from CLI

  • For testing locally, install package npm i @signageos/cli -g, do sos login & sos organization set-default.
  • Always export correct export SOS_APPLET_UID="__FILL_YOUR_APPLET_UID__" & export SOS_APPLET_VERSION="__FILL_YOUR_APPLET_VERSION__" for the applet you are testing.
  • Upload tests to signageOS cloud using command sos applet test upload.
  • Run tests on signageOS cloud using command sos applet test run.