Skip to content

signageos/plugins-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

signageOS Plugin boilerplate

This repository serves as a starting point for developing Plugin for signageOS devices. It represents one Plugin with implementations for any number of target platforms.

Quick start

Clone this repository.

Then run:

sos plugin upload

this will upload the Plugin to signageOS platform. It will also assign it a uid and add it to .sosconfig.json file.

Then you can execute the Plugin on a device either via the Box console or via the signageOS API.

How it works

Config file

When calling sos plugin upload, it reads the .sosconfig.json file. This file contains several fields:

  • name - Plugin will be created and displayed using this name
  • description - Short description of the Plugin that will be displayed in Plugin detail. It should help the user to understand what the Plugin does.
  • version - Used for version control. Must follow the semantic versioning format. Each time the Plugin Version changes, it should be incremented, however it's possible to overwrite the same version as long as its not published.
  • platforms - List of platforms and their files that will be uploaded to the signageOS platform.
  • configDefinition - list of accepted configuration parameters.

Platforms

The general structure of the platforms field is as follows:

{
	"{platform}": {
		"rootDir": "{rootDir}",
		"mainFile": "{mainFile}",
		"runtime": "{runtime}"
	}
}
  • {platform} - name of the platform. It should be one of: default, tizen, webos
  • {rootDir} - relative path to the platform implementation. This is where the platform-specific files are located in this repository.
  • {mainFile} - entry point of the platform implementation. This file will be executed
  • {runtime} - runtime of the platform. It should be one of: browser

Config Definition

configDefinition is a mandatory item, keep it empty if you do not need any variables ("configDefinition": []). schema.json is a JSON schema that defines the structure for set and get.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published