Skip to content

Commit

Permalink
[ares-config] add signage profile and config files for signage profile
Browse files Browse the repository at this point in the history
  • Loading branch information
THIEM VAN NGUYEN/LGEDV webOS FRAMEWORK Thiem.nguyen SERVICE PART authored and nguyen-van-quang committed Jan 2, 2025
1 parent 41e7445 commit 60b24e8
Show file tree
Hide file tree
Showing 10 changed files with 362 additions and 6 deletions.
19 changes: 14 additions & 5 deletions bin/ares-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,31 @@ const options = {
const configFiles = {
"ose": "files/conf-base/profile/config-ose.json",
"tv": "files/conf-base/profile/config-tv.json",
"apollo": "files/conf-base/profile/config-apollo.json"
"apollo": "files/conf-base/profile/config-apollo.json",
"signage":"files/conf-base/profile/config-signage.json"
};

const envFiles = {
"ose": "files/conf-base/env/sdk-ose.json",
"tv": "files/conf-base/env/sdk-tv.json",
"apollo": "files/conf-base/env/sdk-apollo.json"
"apollo": "files/conf-base/env/sdk-apollo.json",
"signage": "files/conf-base/env/sdk-signage.json"
};

const templateFiles = {
"ose": "files/conf-base/template-conf/ose-templates.json",
"tv": "files/conf-base/template-conf/tv-sdk-templates.json",
"apollo": "files/conf-base/template-conf/apollo-sdk-templates.json"
"apollo": "files/conf-base/template-conf/apollo-sdk-templates.json",
"signage": "files/conf-base/template-conf/signage-sdk-templates.json"
};

const queryPaths = {
"common": "files/conf-base/query/"
"common": "files/conf-base/query/",
"signage": "files/conf-base/query/signage"
};

const keyFiles = {
"signage" : "files/conf-base/key/pubkey-signage.pem"
};

let op;
Expand Down Expand Up @@ -131,7 +136,11 @@ function config() {
return finish(errHndl.getErrMsg("INVALID_VALUE", "profile", options.profile));
}

const queryPath = queryPaths.common;
let queryPath = queryPaths.common;
if(options.profile === 'signage'){
queryPath = queryPaths.signage;
}

appdata.setQuery(path.join(__dirname, '..', queryPath), function(err, status) {
if (typeof status === 'undefined')
return finish(errHndl.getErrMsg("INVALID_VALUE", "query configuration"));
Expand Down
8 changes: 8 additions & 0 deletions files/conf-base/env/sdk-signage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"SDKPATH_ENV_NAME": "LG_WEBOS_SIGNAGE_SDK_HOME",
"BROWSER_PATH_IN_SDK": {
"win32" : "/IDE/chromium/chrome.exe",
"darwin" : "/IDE/chromium/Chromium.app",
"linux" : "/IDE/chromium/chrome"
}
}
9 changes: 9 additions & 0 deletions files/conf-base/key/pubkey-signage.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwAc36cHjXLlrK4dF0cA6
JWLCD7WPPTKxhMaieLu8kawVEoJTAci+vdNVc7nvT91OtzsHUs20v9I4CxYkw02b
wEo5LuGMdZB4i6wIuS+/YnmQrWv1Jv9Z366nZTPHLHD6YxCG8P+Fv5cMucrUzQ3W
qCK68uvCfWXjkOBlaTnTKXz5pDNTbGFUNX+aYS7pybyZhMEVB+w9lL7QMRkIRLfP
EbRM6gtv/PhgSUsG5O4ufvKx83ymFBivY/BqTe+oc8miYNy0Sl6+KU3+8XJiBfHx
OWiIvVdhIWS35Dvn69cmeob6AEz+Jk5PS8/vTQrwoibbuRaQYsgOHNN8TDm4JnsC
vwIDAQAB
-----END PUBLIC KEY-----
29 changes: 29 additions & 0 deletions files/conf-base/profile/config-signage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"profile" : "signage",
"defaultAppInfo": {
"id": "com.lg.app.signage",
"type": "web",
"title": "new app",
"version": "0.0.1",
"main" : {
"web" : "index.html",
"native": "executable"
}
},
"defaultDeviceInfo": {
"ipAddress": "127.0.0.1",
"port": "9922",
"user": "prisoner",
"description": "new device description",
"files": "stream",
"default": false,
"type": "starfish"
},
"logFilePath" : "/media/developer/log/devlog",
"install" : {
"tempDirForIpk" : "/media/developer/temp",
"changeTempDir" : true,
"removeIpkAfterInst" : true
},
"dataDir":".webos/signage"
}
14 changes: 14 additions & 0 deletions files/conf-base/query/signage/query-app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"id": {
"query": "app id",
"default": "com.lg.app.signage"
},
"title": {
"query": "title",
"default": "new app"
},
"version": {
"query": "version",
"default": "0.0.1"
}
}
6 changes: 6 additions & 0 deletions files/conf-base/query/signage/query-service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": {
"query": "service id",
"default": "com.lg.app.signage.service"
}
}
259 changes: 259 additions & 0 deletions files/conf-base/template-conf/signage-sdk-templates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
{
"backlight-scheduling": {
"type": "webapp",
"description": "SCAP - Backlight Scheduling",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon",
"scap-1.5.0"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Backlight_Scheduling",
"category": "scap",
"default": true
},
"app-update-without-restart": {
"type": "webapp",
"description": "SCAP - App update without restart",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon",
"scap-1.5.0"
],
"path": "$cli-root/files/templates/signage-sdk-templates/App_Update_without_Restart",
"category": "scap"
},
"download-progress": {
"type": "webapp",
"description": "SCAP - Download progress",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon",
"scap-1.5.0"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Download_Progress",
"category": "scap"
},
"simple-network-failover": {
"type": "webapp",
"description": "SCAP - Simple Network Failover",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon",
"scap-1.5.0"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Simple_Network_FailOver",
"category": "scap"
},
"file-explorer": {
"type": "webapp",
"description": "SCAP - File Explorer",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon",
"scap-1.5.0"
],
"path": "$cli-root/files/templates/signage-sdk-templates/File_Explorer",
"category": "scap"
},
"local-content-scheduling": {
"type": "webapp",
"description": "SCAP - Local Content Scheduling",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon",
"scap-1.5.0"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Local_Content_Scheduling",
"category": "scap"
},
"timezone-setting": {
"type": "webapp",
"description": "SCAP - Timezone Setting",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon",
"scap-1.5.0"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Timezone_Setting",
"category": "scap"
},
"fashion-multimedia-ad": {
"type": "webapp",
"description": "Web - (Fashion/Jewelry) Fashion Multimedia",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad"
},
"information-kiosk": {
"type": "webapp",
"description": "Web - (Fashion/Jewelry) Information Kiosk",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Information_Kiosk"
},
"weather-dependent-ad": {
"type": "webapp",
"description": "Web - (Fashion/Jewelry) Weather Dependent Adv.",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Weather-dependent_Ad"
},
"flight-schedule": {
"type": "webapp",
"description": "Web - (Flight Info Display) Flight Schedule",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Flight_Schedule"
},
"information-board": {
"type": "webapp",
"description": "Web - (Public Place/Edu) Information Board",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Information_Board"
},
"multimedia-ad": {
"type": "webapp",
"description": "Web - (Public Place/Edu) Multimedia Adv.",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Multimedia_Advertisement"
},
"wayfinder": {
"type": "webapp",
"description": "Web - (Public Place/Edu) Wayfinder",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Wayfinder"
},
"widget-overlay": {
"type": "webapp",
"description": "Web - (Public Place/Edu) Widget Overlay",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Widget_Overlay"
},
"mart": {
"type": "webapp",
"description": "Web - (QSR/Retail) Mart",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Mart"
},
"price-board-for-QSR": {
"type": "webapp",
"description": "Web - (QSR/Retail) Price Board for QSR",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Price_Board_for_QSR"
},
"special-menu-board": {
"type": "webapp",
"description": "Web - (QSR/Retail) Special Menu Board",
"metadata": {
"id": "webappinfo"
},
"deps": [
"signageicon"
],
"path": "$cli-root/files/templates/signage-sdk-templates/Special_Menu_Board"
},
"hello-service": {
"type": "jsservice",
"path": "$cli-root/files/templates/signage-sdk-templates/webos-service",
"description": "js service for webOS Signage",
"metadata": {
"id": "jsserviceinfo"
}
},
"webappinfo": {
"type": "webappinfo",
"path": "$cli-root/files/templates/signage-sdk-templates/appinfo/appinfo.json",
"description": "appinfo.json for web app"
},
"jsserviceinfo": {
"type": "jsserviceinfo",
"path": [
"$cli-root/files/templates/signage-sdk-templates/serviceinfo/services.json",
"$cli-root/files/templates/signage-sdk-templates/serviceinfo/package.json"
],
"description": "services.json, package.json for JS service"
},
"signageicon": {
"type": "icon",
"description": "signage app icon path [80x80, 130x130]",
"path": "$cli-root/files/templates/signage-sdk-templates/signageicon"
},
"scap-1.3": {
"type": "library",
"description": "scap api 1.3",
"path": "$cli-root/files/templates/signage-sdk-templates/scap_api/1.3",
"hide": true
},
"scap-1.4.1": {
"type": "library",
"description": "scap api 1.4.1",
"path": "$cli-root/files/templates/signage-sdk-templates/scap_api/1.4.1",
"hide": true
},
"scap-1.5.0": {
"type": "library",
"description": "scap api 1.5.0",
"path": "$cli-root/files/templates/signage-sdk-templates/scap_api/1.5.0",
"hide": true
}
}
5 changes: 5 additions & 0 deletions files/conf/command-service.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
"service": "com.webos.service.tv.systemproperty",
"method": "getSystemInfo",
"returnValue": "return.returnValue"
},
"getStorageList" : {
"service" : "com.webos.service.attachedstoragemanager",
"method" : "listDevices",
"returnValue" : "return"
}
}
}
Loading

0 comments on commit 60b24e8

Please sign in to comment.