@webos-tools/cli 3.1.3 → 3.2.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.
Files changed (1396) hide show
  1. package/.eslintignore +1 -1
  2. package/.eslintrc.js +52 -52
  3. package/APIs.js +79 -79
  4. package/CHANGELOG.md +32 -4
  5. package/LICENSE +201 -201
  6. package/README.md +226 -219
  7. package/bin/ares-config.js +211 -202
  8. package/bin/ares-device-info.js +30 -30
  9. package/bin/ares-device.js +222 -219
  10. package/bin/ares-generate.js +274 -274
  11. package/bin/ares-inspect.js +179 -179
  12. package/bin/ares-install.js +223 -223
  13. package/bin/ares-launch.js +318 -318
  14. package/bin/ares-log.js +259 -259
  15. package/bin/ares-novacom.js +220 -220
  16. package/bin/ares-package.js +347 -336
  17. package/bin/ares-pull.js +156 -156
  18. package/bin/ares-push.js +155 -155
  19. package/bin/ares-server.js +174 -174
  20. package/bin/ares-setup-device.js +10 -6
  21. package/bin/ares-shell.js +132 -132
  22. package/bin/ares.js +166 -166
  23. package/files/conf/ares.json +50 -49
  24. package/files/conf/command-service.json +78 -73
  25. package/files/conf/config.json +31 -31
  26. package/files/conf/ipk.json +30 -30
  27. package/files/conf/novacom-devices.json +69 -52
  28. package/files/conf/query/query-app.json +14 -14
  29. package/files/conf/query/query-hosted.json +18 -18
  30. package/files/conf/query/query-package.json +10 -10
  31. package/files/conf/query/query-service.json +6 -6
  32. package/files/conf/sdk.json +8 -8
  33. package/files/conf/template.json +57 -57
  34. package/files/conf/webos_emul +27 -27
  35. package/files/conf-base/env/sdk-apollo.json +8 -8
  36. package/files/conf-base/env/sdk-ose.json +8 -8
  37. package/files/conf-base/env/sdk-signage.json +8 -0
  38. package/files/conf-base/env/sdk-tv.json +8 -8
  39. package/files/conf-base/key/pubkey-signage.pem +9 -0
  40. package/files/conf-base/profile/config-apollo.json +29 -29
  41. package/files/conf-base/profile/config-ose.json +29 -29
  42. package/files/conf-base/profile/config-signage.json +29 -0
  43. package/files/conf-base/profile/config-tv.json +31 -31
  44. package/files/conf-base/query/query-app.json +14 -14
  45. package/files/conf-base/query/query-hosted.json +18 -18
  46. package/files/conf-base/query/query-package.json +10 -10
  47. package/files/conf-base/query/query-service.json +6 -6
  48. package/files/conf-base/query/signage/query-app.json +14 -0
  49. package/files/conf-base/query/signage/query-service.json +6 -0
  50. package/files/conf-base/template-conf/ose-templates.json +67 -67
  51. package/files/conf-base/template-conf/signage-sdk-templates.json +239 -0
  52. package/files/conf-base/template-conf/tv-sdk-templates.json +57 -57
  53. package/files/help/ares-config.help +48 -48
  54. package/files/help/ares-device.help +109 -109
  55. package/files/help/ares-generate.help +101 -91
  56. package/files/help/ares-inspect.help +77 -76
  57. package/files/help/ares-install.help +95 -95
  58. package/files/help/ares-launch.help +111 -105
  59. package/files/help/ares-log-pmlogd.help +84 -84
  60. package/files/help/ares-log.help +101 -101
  61. package/files/help/ares-novacom.help +68 -68
  62. package/files/help/ares-package.help +103 -101
  63. package/files/help/ares-pull.help +38 -38
  64. package/files/help/ares-push.help +38 -38
  65. package/files/help/ares-server.help +44 -44
  66. package/files/help/ares-setup-device.help +196 -156
  67. package/files/help/ares-shell.help +42 -42
  68. package/files/help/ares.help +52 -52
  69. package/files/help/readme.help +23 -23
  70. package/files/schema/ApplicationDescription.schema +319 -319
  71. package/files/schema/NovacomDevices.schema +63 -62
  72. package/files/templates/apollo-sdk-templates/appinfo/appinfo.json +10 -10
  73. package/files/templates/apollo-sdk-templates/bootplate-web/index.html +88 -88
  74. package/files/templates/apollo-sdk-templates/hosted-webapp/index.html +13 -13
  75. package/files/templates/apollo-sdk-templates/js-service/helloclient.js +31 -31
  76. package/files/templates/apollo-sdk-templates/js-service/helloworld_webos_service.js +188 -188
  77. package/files/templates/apollo-sdk-templates/serviceinfo/package.json +11 -11
  78. package/files/templates/apollo-sdk-templates/serviceinfo/services.json +8 -8
  79. package/files/templates/ose-sdk-templates/appinfo/appinfo.json +10 -10
  80. package/files/templates/ose-sdk-templates/bootplate-web/index.html +88 -88
  81. package/files/templates/ose-sdk-templates/hosted-webapp/index.html +13 -13
  82. package/files/templates/ose-sdk-templates/js-service/helloclient.js +31 -31
  83. package/files/templates/ose-sdk-templates/js-service/helloworld_webos_service.js +188 -188
  84. package/files/templates/ose-sdk-templates/qml-app/main.qml +68 -68
  85. package/files/templates/ose-sdk-templates/qmlappinfo/appinfo.json +10 -10
  86. package/files/templates/ose-sdk-templates/serviceinfo/package.json +11 -11
  87. package/files/templates/ose-sdk-templates/serviceinfo/services.json +8 -8
  88. package/files/templates/signage-sdk-templates/Backlight_Scheduling/clockTable.js +29 -0
  89. package/files/templates/signage-sdk-templates/Backlight_Scheduling/index.html +53 -0
  90. package/files/templates/signage-sdk-templates/Backlight_Scheduling/js/idcap.js +21 -0
  91. package/files/templates/signage-sdk-templates/Backlight_Scheduling/remocon.js +214 -0
  92. package/files/templates/signage-sdk-templates/Backlight_Scheduling/scheduler.js +123 -0
  93. package/files/templates/signage-sdk-templates/Backlight_Scheduling/setanddelete.js +25 -0
  94. package/files/templates/signage-sdk-templates/Backlight_Scheduling/style.css +213 -0
  95. package/files/templates/signage-sdk-templates/Download_Progress/app.css +27 -0
  96. package/files/templates/signage-sdk-templates/Download_Progress/app.js +407 -0
  97. package/files/templates/signage-sdk-templates/Download_Progress/index.html +32 -0
  98. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/2.7.0/cordova.webos.js +7038 -0
  99. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/LICENSE +201 -0
  100. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/configuration.js +1 -0
  101. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/deviceInfo.js +1 -0
  102. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/inputSource.js +1 -0
  103. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/power.js +1 -0
  104. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/signage.js +1 -0
  105. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/sound.js +1 -0
  106. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/storage.js +1 -0
  107. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/video.js +1 -0
  108. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/configuration.js +1 -0
  109. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/deviceInfo.js +1 -0
  110. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/inputSource.js +1 -0
  111. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/power.js +1 -0
  112. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/signage.js +1 -0
  113. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/sound.js +1 -0
  114. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/storage.js +1 -0
  115. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/video.js +1 -0
  116. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/configuration.js +1 -0
  117. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/deviceInfo.js +1 -0
  118. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/inputSource.js +1 -0
  119. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/power.js +1 -0
  120. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/signage.js +1 -0
  121. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/sound.js +1 -0
  122. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/storage.js +23 -0
  123. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/video.js +1 -0
  124. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/configuration.js +1 -0
  125. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/deviceInfo.js +1 -0
  126. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/inputSource.js +1 -0
  127. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/power.js +1 -0
  128. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/signage.js +1 -0
  129. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/sound.js +1 -0
  130. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/storage.js +1 -0
  131. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/video.js +1 -0
  132. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/configuration.js +9 -0
  133. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/deviceInfo.js +9 -0
  134. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/inputSource.js +9 -0
  135. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/power.js +9 -0
  136. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/security.js +9 -0
  137. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/signage.js +9 -0
  138. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/sound.js +9 -0
  139. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/storage.js +9 -0
  140. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/time.js +9 -0
  141. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/utility.js +9 -0
  142. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/video.js +9 -0
  143. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/configuration.js +9 -0
  144. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/deviceInfo.js +9 -0
  145. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/inputSource.js +9 -0
  146. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/power.js +9 -0
  147. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/security.js +9 -0
  148. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/signage.js +9 -0
  149. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/sound.js +9 -0
  150. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/storage.js +9 -0
  151. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/time.js +9 -0
  152. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/utility.js +9 -0
  153. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/video.js +9 -0
  154. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/configuration.js +9 -0
  155. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/deviceInfo.js +9 -0
  156. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/inputSource.js +9 -0
  157. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/power.js +9 -0
  158. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/security.js +9 -0
  159. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/signage.js +8 -0
  160. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/sound.js +9 -0
  161. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/storage.js +9 -0
  162. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/time.js +9 -0
  163. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/utility.js +9 -0
  164. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/video.js +9 -0
  165. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/configuration.js +9 -0
  166. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/deviceInfo.js +9 -0
  167. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/inputSource.js +9 -0
  168. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/power.js +9 -0
  169. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/security.js +9 -0
  170. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/signage.js +9 -0
  171. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/sound.js +9 -0
  172. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/storage.js +9 -0
  173. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/time.js +9 -0
  174. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/utility.js +9 -0
  175. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/video.js +9 -0
  176. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/configuration.js +1 -0
  177. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/deviceInfo.js +1 -0
  178. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/inputSource.js +1 -0
  179. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/power.js +1 -0
  180. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/security.js +1 -0
  181. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/signage.js +1 -0
  182. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/sound.js +1 -0
  183. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/storage.js +1 -0
  184. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/time.js +1 -0
  185. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/utility.js +1 -0
  186. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/video.js +1 -0
  187. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/configuration.js +1 -0
  188. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
  189. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/inputSource.js +1 -0
  190. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/power.js +1 -0
  191. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/security.js +1 -0
  192. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/signage.js +1 -0
  193. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/sound.js +1 -0
  194. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/storage.js +1 -0
  195. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/time.js +1 -0
  196. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/utility.js +1 -0
  197. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/video.js +1 -0
  198. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/configuration.js +1 -0
  199. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/deviceInfo.js +1 -0
  200. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/inputSource.js +1 -0
  201. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/power.js +1 -0
  202. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/security.js +1 -0
  203. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/signage.js +1 -0
  204. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/sound.js +1 -0
  205. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/storage.js +1 -0
  206. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/time.js +1 -0
  207. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/utility.js +1 -0
  208. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/video.js +1 -0
  209. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/configuration.js +1 -0
  210. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/deviceInfo.js +1 -0
  211. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/inputSource.js +1 -0
  212. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/power.js +1 -0
  213. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/security.js +1 -0
  214. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/signage.js +1 -0
  215. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/sound.js +1 -0
  216. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/storage.js +1 -0
  217. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/time.js +1 -0
  218. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/utility.js +1 -0
  219. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/video.js +1 -0
  220. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/configuration.js +1 -0
  221. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/deviceInfo.js +1 -0
  222. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/inputSource.js +1 -0
  223. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/power.js +1 -0
  224. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/security.js +1 -0
  225. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/signage.js +1 -0
  226. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/sound.js +1 -0
  227. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/storage.js +1 -0
  228. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/time.js +1 -0
  229. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/utility.js +1 -0
  230. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/video.js +1 -0
  231. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/configuration.js +1 -0
  232. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
  233. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/inputSource.js +1 -0
  234. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/power.js +1 -0
  235. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/security.js +1 -0
  236. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/signage.js +1 -0
  237. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/sound.js +1 -0
  238. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/storage.js +1 -0
  239. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/time.js +1 -0
  240. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/utility.js +1 -0
  241. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/video.js +1 -0
  242. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/configuration.js +1 -0
  243. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/deviceInfo.js +1 -0
  244. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/inputSource.js +1 -0
  245. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/power.js +1 -0
  246. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/security.js +1 -0
  247. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/signage.js +1 -0
  248. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/sound.js +1 -0
  249. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/storage.js +1 -0
  250. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/time.js +1 -0
  251. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/utility.js +1 -0
  252. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/video.js +1 -0
  253. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/configuration.js +1 -0
  254. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/deviceInfo.js +1 -0
  255. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/inputSource.js +1 -0
  256. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/power.js +1 -0
  257. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/security.js +1 -0
  258. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/signage.js +1 -0
  259. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/sound.js +1 -0
  260. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/storage.js +1 -0
  261. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/time.js +1 -0
  262. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/utility.js +1 -0
  263. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/video.js +1 -0
  264. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/configuration.js +1 -0
  265. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/deviceInfo.js +1 -0
  266. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/inputSource.js +1 -0
  267. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/power.js +1 -0
  268. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/security.js +1 -0
  269. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/signage.js +1 -0
  270. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/sound.js +1 -0
  271. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/storage.js +1 -0
  272. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/time.js +1 -0
  273. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/utility.js +1 -0
  274. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/video.js +1 -0
  275. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/configuration.js +1 -0
  276. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/deviceInfo.js +1 -0
  277. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/inputSource.js +1 -0
  278. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/power.js +1 -0
  279. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/security.js +1 -0
  280. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/signage.js +1 -0
  281. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/sound.js +1 -0
  282. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/storage.js +1 -0
  283. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/time.js +1 -0
  284. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/utility.js +1 -0
  285. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/video.js +1 -0
  286. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/configuration.js +1 -0
  287. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/deviceInfo.js +1 -0
  288. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/inputSource.js +1 -0
  289. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/power.js +1 -0
  290. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/security.js +1 -0
  291. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/signage.js +1 -0
  292. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/sound.js +1 -0
  293. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/storage.js +1 -0
  294. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/time.js +1 -0
  295. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/utility.js +1 -0
  296. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/video.js +1 -0
  297. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/configuration.js +1 -0
  298. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/deviceInfo.js +1 -0
  299. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/inputSource.js +1 -0
  300. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/power.js +1 -0
  301. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/security.js +1 -0
  302. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/signage.js +1 -0
  303. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/sound.js +1 -0
  304. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/storage.js +1 -0
  305. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/time.js +1 -0
  306. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/utility.js +1 -0
  307. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/video.js +1 -0
  308. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/configuration.js +1 -0
  309. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/deviceInfo.js +1 -0
  310. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/inputSource.js +1 -0
  311. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/power.js +1 -0
  312. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/security.js +1 -0
  313. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/signage.js +1 -0
  314. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/sound.js +1 -0
  315. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/storage.js +1 -0
  316. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/time.js +1 -0
  317. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/utility.js +1 -0
  318. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/video.js +1 -0
  319. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/configuration.js +1 -0
  320. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/deviceInfo.js +1 -0
  321. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/inputSource.js +1 -0
  322. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/power.js +1 -0
  323. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/security.js +1 -0
  324. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/signage.js +1 -0
  325. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/sound.js +1 -0
  326. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/storage.js +1 -0
  327. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/time.js +1 -0
  328. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/utility.js +1 -0
  329. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/video.js +1 -0
  330. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/configuration.js +1 -0
  331. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/deviceInfo.js +1 -0
  332. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/inputSource.js +1 -0
  333. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/power.js +1 -0
  334. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/security.js +1 -0
  335. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/signage.js +1 -0
  336. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/sound.js +1 -0
  337. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/storage.js +1 -0
  338. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/time.js +1 -0
  339. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/utility.js +1 -0
  340. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/video.js +1 -0
  341. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/configuration.js +1 -0
  342. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/deviceInfo.js +1 -0
  343. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/inputSource.js +1 -0
  344. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/power.js +1 -0
  345. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/security.js +1 -0
  346. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/signage.js +1 -0
  347. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/sound.js +1 -0
  348. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/storage.js +1 -0
  349. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/time.js +1 -0
  350. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/utility.js +1 -0
  351. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/video.js +1 -0
  352. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/configuration.js +1 -0
  353. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/deviceInfo.js +1 -0
  354. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/inputSource.js +1 -0
  355. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/power.js +1 -0
  356. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/security.js +1 -0
  357. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/signage.js +1 -0
  358. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/sound.js +1 -0
  359. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/storage.js +1 -0
  360. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/time.js +1 -0
  361. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/utility.js +1 -0
  362. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/video.js +1 -0
  363. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/configuration.js +1 -0
  364. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/deviceInfo.js +1 -0
  365. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/inputSource.js +1 -0
  366. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/led.js +1 -0
  367. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/power.js +1 -0
  368. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/security.js +1 -0
  369. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/signage.js +1 -0
  370. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/sound.js +1 -0
  371. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/storage.js +1 -0
  372. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/time.js +1 -0
  373. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/utility.js +1 -0
  374. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/video.js +1 -0
  375. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/configuration.js +1 -0
  376. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
  377. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/inputSource.js +1 -0
  378. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/led.js +1 -0
  379. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/power.js +1 -0
  380. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/security.js +1 -0
  381. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/signage.js +1 -0
  382. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/sound.js +1 -0
  383. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/storage.js +1 -0
  384. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/time.js +1 -0
  385. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/utility.js +1 -0
  386. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/video.js +1 -0
  387. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/configuration.js +1 -0
  388. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/deviceInfo.js +1 -0
  389. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/inputSource.js +1 -0
  390. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/iot.js +1 -0
  391. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/power.js +1 -0
  392. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/security.js +1 -0
  393. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/signage.js +1 -0
  394. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/sound.js +1 -0
  395. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/storage.js +1 -0
  396. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/time.js +1 -0
  397. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/utility.js +1 -0
  398. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/video.js +1 -0
  399. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/configuration.js +1 -0
  400. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/deviceInfo.js +1 -0
  401. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/inputSource.js +1 -0
  402. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/iot.js +1 -0
  403. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/power.js +1 -0
  404. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/security.js +1 -0
  405. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/signage.js +1 -0
  406. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/sound.js +1 -0
  407. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/storage.js +1 -0
  408. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/time.js +1 -0
  409. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/utility.js +1 -0
  410. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/video.js +1 -0
  411. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/configuration.js +1 -0
  412. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/deviceInfo.js +1 -0
  413. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/inputSource.js +1 -0
  414. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/iot.js +1 -0
  415. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/led.js +1 -0
  416. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/power.js +1 -0
  417. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/security.js +1 -0
  418. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/signage.js +1 -0
  419. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/sound.js +1 -0
  420. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/storage.js +1 -0
  421. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/time.js +1 -0
  422. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/utility.js +1 -0
  423. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/video.js +1 -0
  424. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/configuration.js +1 -0
  425. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
  426. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/inputSource.js +1 -0
  427. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/iot.js +1 -0
  428. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/led.js +1 -0
  429. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/power.js +1 -0
  430. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/security.js +1 -0
  431. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/signage.js +1 -0
  432. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/sound.js +1 -0
  433. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/storage.js +1 -0
  434. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/time.js +1 -0
  435. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/utility.js +1 -0
  436. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/video.js +1 -0
  437. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/configuration.js +1 -0
  438. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/deviceInfo.js +1 -0
  439. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/inputSource.js +1 -0
  440. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/iot.js +1 -0
  441. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/power.js +1 -0
  442. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/security.js +1 -0
  443. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/signage.js +1 -0
  444. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/sound.js +1 -0
  445. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/storage.js +1 -0
  446. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/time.js +1 -0
  447. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/utility.js +1 -0
  448. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/video.js +1 -0
  449. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/configuration.js +1 -0
  450. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
  451. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/inputSource.js +1 -0
  452. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/iot.js +1 -0
  453. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/power.js +1 -0
  454. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/security.js +1 -0
  455. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/signage.js +1 -0
  456. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/sound.js +1 -0
  457. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/storage.js +1 -0
  458. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/time.js +1 -0
  459. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/utility.js +1 -0
  460. package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/video.js +1 -0
  461. package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.2.js +14 -0
  462. package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.1.js +1 -0
  463. package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.js +1 -0
  464. package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.4.js +14 -0
  465. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/README.txt +40 -0
  466. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gpio.js +16 -0
  467. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gps.js +16 -0
  468. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/humidity.js +16 -0
  469. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/light.js +16 -0
  470. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/nfc.js +16 -0
  471. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/rfid.js +16 -0
  472. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/temperature.js +16 -0
  473. package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/thermalPrinter.js +16 -0
  474. package/files/templates/signage-sdk-templates/Download_Progress/js/idcap.js +21 -0
  475. package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/LICENSE-2.0.txt +202 -0
  476. package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/webOS.js +1 -0
  477. package/files/templates/signage-sdk-templates/Download_Progress/res/webossignage_logo.png +0 -0
  478. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/css/styles.css +270 -0
  479. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/data/data.json +12 -0
  480. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans300.otf +0 -0
  481. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans700Italic.otf +0 -0
  482. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/index.html +43 -0
  483. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/controller.js +263 -0
  484. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/helpers/util.js +130 -0
  485. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/readme.txt +26 -0
  486. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_img_sign.png +0 -0
  487. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_logo_nike.png +0 -0
  488. package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/videos/tpl_01_video.mp4 +0 -0
  489. package/files/templates/signage-sdk-templates/File_Explorer/README.txt +16 -0
  490. package/files/templates/signage-sdk-templates/File_Explorer/index.html +44 -0
  491. package/files/templates/signage-sdk-templates/File_Explorer/js/Root.js +48 -0
  492. package/files/templates/signage-sdk-templates/File_Explorer/js/definition.js +59 -0
  493. package/files/templates/signage-sdk-templates/File_Explorer/js/explorer.js +367 -0
  494. package/files/templates/signage-sdk-templates/File_Explorer/js/explorerController.js +462 -0
  495. package/files/templates/signage-sdk-templates/File_Explorer/js/idcap.js +21 -0
  496. package/files/templates/signage-sdk-templates/File_Explorer/js/mainController.js +261 -0
  497. package/files/templates/signage-sdk-templates/File_Explorer/style.css +233 -0
  498. package/files/templates/signage-sdk-templates/Flight_Schedule/appinfo.json +11 -0
  499. package/files/templates/signage-sdk-templates/Flight_Schedule/css/styles.css +168 -0
  500. package/files/templates/signage-sdk-templates/Flight_Schedule/data/data.json +5 -0
  501. package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans300.otf +0 -0
  502. package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans500.otf +0 -0
  503. package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans700.otf +0 -0
  504. package/files/templates/signage-sdk-templates/Flight_Schedule/images/AAir.png +0 -0
  505. package/files/templates/signage-sdk-templates/Flight_Schedule/images/BAirline.png +0 -0
  506. package/files/templates/signage-sdk-templates/Flight_Schedule/images/CAirline.png +0 -0
  507. package/files/templates/signage-sdk-templates/Flight_Schedule/images/DAir.png +0 -0
  508. package/files/templates/signage-sdk-templates/Flight_Schedule/images/EAirline.png +0 -0
  509. package/files/templates/signage-sdk-templates/Flight_Schedule/images/tpl_05_img_flight.png +0 -0
  510. package/files/templates/signage-sdk-templates/Flight_Schedule/index.html +32 -0
  511. package/files/templates/signage-sdk-templates/Flight_Schedule/js/controller.js +235 -0
  512. package/files/templates/signage-sdk-templates/Flight_Schedule/js/helpers/util.js +183 -0
  513. package/files/templates/signage-sdk-templates/Flight_Schedule/readme.txt +29 -0
  514. package/files/templates/signage-sdk-templates/Flight_Schedule/server/example.json +4 -0
  515. package/files/templates/signage-sdk-templates/Flight_Schedule/server/package.json +9 -0
  516. package/files/templates/signage-sdk-templates/Flight_Schedule/server/readme.txt +30 -0
  517. package/files/templates/signage-sdk-templates/Flight_Schedule/server/routes/flights.js +493 -0
  518. package/files/templates/signage-sdk-templates/Flight_Schedule/server/server.js +43 -0
  519. package/files/templates/signage-sdk-templates/Information_Board/css/styles.css +239 -0
  520. package/files/templates/signage-sdk-templates/Information_Board/data/data.json +49 -0
  521. package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 300.otf +0 -0
  522. package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 500.otf +0 -0
  523. package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 700.otf +0 -0
  524. package/files/templates/signage-sdk-templates/Information_Board/index.html +101 -0
  525. package/files/templates/signage-sdk-templates/Information_Board/js/controller.js +111 -0
  526. package/files/templates/signage-sdk-templates/Information_Board/js/helpers/util.js +130 -0
  527. package/files/templates/signage-sdk-templates/Information_Board/readme.txt +22 -0
  528. package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_main_01.png +0 -0
  529. package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_news.png +0 -0
  530. package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_logo_harvard.png +0 -0
  531. package/files/templates/signage-sdk-templates/Information_Kiosk/css/styles.css +387 -0
  532. package/files/templates/signage-sdk-templates/Information_Kiosk/data/data.json +185 -0
  533. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300 Italic.otf +0 -0
  534. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300.otf +0 -0
  535. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500 Italic.otf +0 -0
  536. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500.otf +0 -0
  537. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700 Italic.otf +0 -0
  538. package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700.otf +0 -0
  539. package/files/templates/signage-sdk-templates/Information_Kiosk/index.html +320 -0
  540. package/files/templates/signage-sdk-templates/Information_Kiosk/js/controller.js +373 -0
  541. package/files/templates/signage-sdk-templates/Information_Kiosk/js/helpers/util.js +130 -0
  542. package/files/templates/signage-sdk-templates/Information_Kiosk/readme.txt +26 -0
  543. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_n.png +0 -0
  544. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_p.png +0 -0
  545. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_n.png +0 -0
  546. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_p.png +0 -0
  547. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_n.png +0 -0
  548. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_p.png +0 -0
  549. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_n.png +0 -0
  550. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_p.png +0 -0
  551. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_bg_01.png +0 -0
  552. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_01.png +0 -0
  553. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_02.png +0 -0
  554. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_03.png +0 -0
  555. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_04.png +0 -0
  556. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_05.png +0 -0
  557. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_06.png +0 -0
  558. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_07.png +0 -0
  559. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_08.png +0 -0
  560. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_09.png +0 -0
  561. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_10.png +0 -0
  562. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_11.png +0 -0
  563. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_12.png +0 -0
  564. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_01.png +0 -0
  565. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_02.png +0 -0
  566. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_03.png +0 -0
  567. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_04.png +0 -0
  568. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_05.png +0 -0
  569. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_06.png +0 -0
  570. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_01.png +0 -0
  571. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_02.png +0 -0
  572. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_03.png +0 -0
  573. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_04.png +0 -0
  574. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_05.png +0 -0
  575. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_06.png +0 -0
  576. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_07.png +0 -0
  577. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_08.png +0 -0
  578. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_09.png +0 -0
  579. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_10.png +0 -0
  580. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_11.png +0 -0
  581. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_12.png +0 -0
  582. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_01.png +0 -0
  583. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_02.png +0 -0
  584. package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_logo.png +0 -0
  585. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/index.html +40 -0
  586. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/2.7.0/cordova.webos.js +7038 -0
  587. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/LICENSE +201 -0
  588. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/configuration.js +1 -0
  589. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/deviceInfo.js +1 -0
  590. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/inputSource.js +1 -0
  591. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/power.js +1 -0
  592. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/signage.js +1 -0
  593. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/sound.js +1 -0
  594. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/storage.js +23 -0
  595. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/video.js +1 -0
  596. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/configuration.js +1 -0
  597. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/deviceInfo.js +1 -0
  598. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/inputSource.js +1 -0
  599. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/power.js +1 -0
  600. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/signage.js +1 -0
  601. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/sound.js +1 -0
  602. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/storage.js +1 -0
  603. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/video.js +1 -0
  604. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/configuration.js +1 -0
  605. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
  606. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/inputSource.js +1 -0
  607. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/power.js +1 -0
  608. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/security.js +1 -0
  609. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/signage.js +1 -0
  610. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/sound.js +1 -0
  611. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/storage.js +1 -0
  612. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/time.js +1 -0
  613. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/utility.js +1 -0
  614. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/video.js +1 -0
  615. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/configuration.js +1 -0
  616. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
  617. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/inputSource.js +1 -0
  618. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/power.js +1 -0
  619. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/security.js +1 -0
  620. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/signage.js +1 -0
  621. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/sound.js +1 -0
  622. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/storage.js +1 -0
  623. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/time.js +1 -0
  624. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/utility.js +1 -0
  625. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/video.js +1 -0
  626. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/configuration.js +1 -0
  627. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
  628. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/inputSource.js +1 -0
  629. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/led.js +1 -0
  630. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/power.js +1 -0
  631. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/security.js +1 -0
  632. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/signage.js +1 -0
  633. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/sound.js +1 -0
  634. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/storage.js +1 -0
  635. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/time.js +1 -0
  636. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/utility.js +1 -0
  637. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/video.js +1 -0
  638. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/configuration.js +1 -0
  639. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
  640. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/inputSource.js +1 -0
  641. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/iot.js +1 -0
  642. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/led.js +1 -0
  643. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/power.js +1 -0
  644. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/security.js +1 -0
  645. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/signage.js +1 -0
  646. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/sound.js +1 -0
  647. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/storage.js +1 -0
  648. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/time.js +1 -0
  649. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/utility.js +1 -0
  650. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/video.js +1 -0
  651. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/configuration.js +1 -0
  652. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
  653. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/inputSource.js +1 -0
  654. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/iot.js +1 -0
  655. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/power.js +1 -0
  656. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/security.js +1 -0
  657. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/signage.js +1 -0
  658. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/sound.js +1 -0
  659. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/storage.js +1 -0
  660. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/time.js +1 -0
  661. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/utility.js +1 -0
  662. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/video.js +1 -0
  663. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/custom1.4.js +14 -0
  664. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/idcap.js +21 -0
  665. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/initializer.js +234 -0
  666. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/remocon.js +73 -0
  667. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/scheduler.js +84 -0
  668. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/videoPlayer.js +352 -0
  669. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/remocon.png +0 -0
  670. package/files/templates/signage-sdk-templates/Local_Content_Scheduling/style.css +99 -0
  671. package/files/templates/signage-sdk-templates/Mart/css/styles.css +248 -0
  672. package/files/templates/signage-sdk-templates/Mart/data/data.json +37 -0
  673. package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300 Italic.otf +0 -0
  674. package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300.otf +0 -0
  675. package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 500.otf +0 -0
  676. package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 700.otf +0 -0
  677. package/files/templates/signage-sdk-templates/Mart/index.html +81 -0
  678. package/files/templates/signage-sdk-templates/Mart/js/controller.js +102 -0
  679. package/files/templates/signage-sdk-templates/Mart/js/helpers/util.js +130 -0
  680. package/files/templates/signage-sdk-templates/Mart/readme.txt +26 -0
  681. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img.png +0 -0
  682. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_bg.png +0 -0
  683. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_brand.png +0 -0
  684. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_01.png +0 -0
  685. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_02.png +0 -0
  686. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_03.png +0 -0
  687. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_04.png +0 -0
  688. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_tag.png +0 -0
  689. package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_logo.png +0 -0
  690. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/css/styles.css +40 -0
  691. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/data/data.json +6 -0
  692. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/index.html +28 -0
  693. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/controller.js +427 -0
  694. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/helpers/util.js +134 -0
  695. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/readme.txt +26 -0
  696. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/images/tpl_02_img_poster.jpg +0 -0
  697. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_01.mp4 +0 -0
  698. package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_02.mp4 +0 -0
  699. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/css/styles.css +163 -0
  700. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/data/data.json +92 -0
  701. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans300.otf +0 -0
  702. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans500.otf +0 -0
  703. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700.otf +0 -0
  704. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700Italic.otf +0 -0
  705. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/index.html +197 -0
  706. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/controller.js +158 -0
  707. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/helpers/util.js +130 -0
  708. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/readme.txt +26 -0
  709. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_bg_top.png +0 -0
  710. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_01.png +0 -0
  711. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_02.png +0 -0
  712. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_03.png +0 -0
  713. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_04.png +0 -0
  714. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_05.png +0 -0
  715. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_06.png +0 -0
  716. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_07.png +0 -0
  717. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_08.png +0 -0
  718. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_09.png +0 -0
  719. package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_logo.png +0 -0
  720. package/files/templates/signage-sdk-templates/Simple_Network_FailOver/index.html +29 -0
  721. package/files/templates/signage-sdk-templates/Simple_Network_FailOver/js/idcap.js +21 -0
  722. package/files/templates/signage-sdk-templates/Simple_Network_FailOver/networkMonitor.js +136 -0
  723. package/files/templates/signage-sdk-templates/Simple_Network_FailOver/style.css +142 -0
  724. package/files/templates/signage-sdk-templates/Special_Menu_Board/css/styles.css +281 -0
  725. package/files/templates/signage-sdk-templates/Special_Menu_Board/data/data.json +33 -0
  726. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300 Italic.otf +0 -0
  727. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300.otf +0 -0
  728. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500 Italic.otf +0 -0
  729. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500.otf +0 -0
  730. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700 Italic.otf +0 -0
  731. package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700.otf +0 -0
  732. package/files/templates/signage-sdk-templates/Special_Menu_Board/index.html +110 -0
  733. package/files/templates/signage-sdk-templates/Special_Menu_Board/js/controller.js +171 -0
  734. package/files/templates/signage-sdk-templates/Special_Menu_Board/js/helpers/util.js +130 -0
  735. package/files/templates/signage-sdk-templates/Special_Menu_Board/readme.txt +26 -0
  736. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_bg.png +0 -0
  737. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01.png +0 -0
  738. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01_l.png +0 -0
  739. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_02.png +0 -0
  740. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_03.png +0 -0
  741. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_04.png +0 -0
  742. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_05.png +0 -0
  743. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_01.png +0 -0
  744. package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_02.png +0 -0
  745. package/files/templates/signage-sdk-templates/Wayfinder/css/styles.css +634 -0
  746. package/files/templates/signage-sdk-templates/Wayfinder/data/data.json +339 -0
  747. package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans300.otf +0 -0
  748. package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans500.otf +0 -0
  749. package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700.otf +0 -0
  750. package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700Italic.otf +0 -0
  751. package/files/templates/signage-sdk-templates/Wayfinder/index.html +171 -0
  752. package/files/templates/signage-sdk-templates/Wayfinder/js/controller.js +447 -0
  753. package/files/templates/signage-sdk-templates/Wayfinder/js/helpers/util.js +175 -0
  754. package/files/templates/signage-sdk-templates/Wayfinder/readme.txt +26 -0
  755. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_btn_back_n.png +0 -0
  756. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_n.png +0 -0
  757. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_s.png +0 -0
  758. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_01.png +0 -0
  759. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_02.png +0 -0
  760. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_03.png +0 -0
  761. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_d.png +0 -0
  762. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_n.png +0 -0
  763. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_d.png +0 -0
  764. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_n.png +0 -0
  765. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_d.png +0 -0
  766. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_n.png +0 -0
  767. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_shadow.png +0 -0
  768. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_01_n.png +0 -0
  769. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_02_n.png +0 -0
  770. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_03_n.png +0 -0
  771. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point.png +0 -0
  772. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point_shadow.png +0 -0
  773. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_elevator.png +0 -0
  774. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_escalator.png +0 -0
  775. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_exit.png +0 -0
  776. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_info.png +0 -0
  777. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_parking.png +0 -0
  778. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_toilet.png +0 -0
  779. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_lg.png +0 -0
  780. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_shoppingmall_name.png +0 -0
  781. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_store.png +0 -0
  782. package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_popup_bg.png +0 -0
  783. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/css/styles.css +136 -0
  784. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/data/data.json +33 -0
  785. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 300.otf +0 -0
  786. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 500.otf +0 -0
  787. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 700.otf +0 -0
  788. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/index.html +51 -0
  789. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/controller.js +265 -0
  790. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/helpers/util.js +130 -0
  791. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/readme.txt +26 -0
  792. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/ajax.gif +0 -0
  793. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_cloudy.png +0 -0
  794. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_partlycloudy.png +0 -0
  795. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_rainy.png +0 -0
  796. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_snowy.png +0 -0
  797. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_sunny.png +0 -0
  798. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_thunder.png +0 -0
  799. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_windy.png +0 -0
  800. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_01.png +0 -0
  801. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_02.png +0 -0
  802. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_03.png +0 -0
  803. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_04.png +0 -0
  804. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_05.png +0 -0
  805. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_06.png +0 -0
  806. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_07.png +0 -0
  807. package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_logo.png +0 -0
  808. package/files/templates/signage-sdk-templates/Widget_Overlay/css/styles.css +312 -0
  809. package/files/templates/signage-sdk-templates/Widget_Overlay/data/data.json +16 -0
  810. package/files/templates/signage-sdk-templates/Widget_Overlay/data/newsWidget.json +21 -0
  811. package/files/templates/signage-sdk-templates/Widget_Overlay/data/shareWidget.json +112 -0
  812. package/files/templates/signage-sdk-templates/Widget_Overlay/data/weatherWidget.json +45 -0
  813. package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans300.otf +0 -0
  814. package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans500.otf +0 -0
  815. package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans700.otf +0 -0
  816. package/files/templates/signage-sdk-templates/Widget_Overlay/index.html +62 -0
  817. package/files/templates/signage-sdk-templates/Widget_Overlay/js/controller.js +390 -0
  818. package/files/templates/signage-sdk-templates/Widget_Overlay/js/helpers/util.js +162 -0
  819. package/files/templates/signage-sdk-templates/Widget_Overlay/readme.txt +26 -0
  820. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/Namo.jpg +0 -0
  821. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/NotAvailable.png +0 -0
  822. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clear.png +0 -0
  823. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clouds.png +0 -0
  824. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/default.png +0 -0
  825. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/koreanFt.jpg +0 -0
  826. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/mist.png +0 -0
  827. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/rain.png +0 -0
  828. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/snow.png +0 -0
  829. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/thunder.png +0 -0
  830. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_01.png +0 -0
  831. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_02.png +0 -0
  832. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_01.png +0 -0
  833. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_02.png +0 -0
  834. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news.png +0 -0
  835. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news1.png +0 -0
  836. package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_video_dim.png +0 -0
  837. package/files/templates/signage-sdk-templates/Widget_Overlay/res/videos/tpl_07_video.mp4 +0 -0
  838. package/files/templates/signage-sdk-templates/appinfo/appinfo.json +11 -0
  839. package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/idcap.js +21 -0
  840. package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/release_notes.txt +25 -0
  841. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/2.7.0/cordova.webos.js +7025 -0
  842. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/LICENSE +7025 -0
  843. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/configuration.js +1 -0
  844. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/deviceInfo.js +1 -0
  845. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/inputSource.js +1 -0
  846. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/power.js +1 -0
  847. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/signage.js +1 -0
  848. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/sound.js +1 -0
  849. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/storage.js +1 -0
  850. package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/video.js +1 -0
  851. package/files/templates/signage-sdk-templates/scap_api/1.3/js/release_notes.txt +109 -0
  852. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/2.7.0/cordova.webos.js +7038 -0
  853. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/LICENSE +201 -0
  854. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/configuration.js +1 -0
  855. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/deviceInfo.js +1 -0
  856. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/inputSource.js +1 -0
  857. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/power.js +1 -0
  858. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/security.js +1 -0
  859. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/signage.js +1 -0
  860. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/sound.js +1 -0
  861. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/storage.js +1 -0
  862. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/time.js +1 -0
  863. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/utility.js +1 -0
  864. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/video.js +1 -0
  865. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/all.css +358 -0
  866. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
  867. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
  868. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
  869. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
  870. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
  871. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
  872. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
  873. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
  874. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/handheld.css +217 -0
  875. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/screen.css +405 -0
  876. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/files.html +577 -0
  877. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/index.html +1203 -0
  878. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/intro.html +100 -0
  879. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/all.js +326 -0
  880. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/dessert.css +34 -0
  881. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-apollo.js +51 -0
  882. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-clj.js +64 -0
  883. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-css.js +78 -0
  884. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-go.js +58 -0
  885. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-hs.js +101 -0
  886. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lisp.js +93 -0
  887. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lua.js +59 -0
  888. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-ml.js +56 -0
  889. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-n.js +62 -0
  890. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-proto.js +35 -0
  891. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-scala.js +54 -0
  892. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-sql.js +57 -0
  893. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-tex.js +46 -0
  894. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vb.js +61 -0
  895. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
  896. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-wiki.js +53 -0
  897. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-xq.js +67 -0
  898. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-yaml.js +27 -0
  899. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.css +52 -0
  900. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.js +1477 -0
  901. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/html5.js +6 -0
  902. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#clearCache.html +550 -0
  903. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getCurrentTime.html +560 -0
  904. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getLocaleList.html +560 -0
  905. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLanguage.html +560 -0
  906. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLock.html +560 -0
  907. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureMode.html +560 -0
  908. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureProperty.html +560 -0
  909. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getProperty.html +561 -0
  910. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getServerProperty.html +560 -0
  911. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZone.html +560 -0
  912. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZoneList.html +560 -0
  913. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getUSBLock.html +560 -0
  914. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +560 -0
  915. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#restartApplication.html +550 -0
  916. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setCurrentTime.html +566 -0
  917. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLanguage.html +566 -0
  918. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLock.html +566 -0
  919. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureMode.html +566 -0
  920. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureProperty.html +566 -0
  921. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setProperty.html +561 -0
  922. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setServerProperty.html +610 -0
  923. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setTimeZone.html +566 -0
  924. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setUSBLock.html +566 -0
  925. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +566 -0
  926. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppMode.html +685 -0
  927. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppType.html +640 -0
  928. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.PictureMode.html +910 -0
  929. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#connectWifi.html +561 -0
  930. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getBeaconInfo.html +560 -0
  931. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +560 -0
  932. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkInfo.html +560 -0
  933. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +560 -0
  934. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getPlatformInfo.html +560 -0
  935. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getProxyInfo.html +560 -0
  936. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSoftApInfo.html +560 -0
  937. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +566 -0
  938. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getWifiList.html +560 -0
  939. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +560 -0
  940. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setBeaconInfo.html +561 -0
  941. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +566 -0
  942. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setNetworkInfo.html +561 -0
  943. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setProxyInfo.html +566 -0
  944. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setSoftApInfo.html +561 -0
  945. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +566 -0
  946. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#startWps.html +566 -0
  947. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#stopWps.html +555 -0
  948. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo.EddystoneFrame.html +640 -0
  949. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.ERROR_CODE.html +820 -0
  950. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.html +460 -0
  951. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#changeInputSource.html +566 -0
  952. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#getInputSourceStatus.html +560 -0
  953. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#initialize.html +561 -0
  954. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOffTimer.html +566 -0
  955. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOnTimer.html +566 -0
  956. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOffTimer.html +566 -0
  957. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOnTimer.html +566 -0
  958. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOffTimer.html +566 -0
  959. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOnTimer.html +566 -0
  960. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableWakeOnLan.html +566 -0
  961. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#executePowerCommand.html +566 -0
  962. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getDPMWakeup.html +560 -0
  963. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOffTimerList.html +560 -0
  964. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOnTimerList.html +560 -0
  965. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPMMode.html +560 -0
  966. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerOnDelay.html +560 -0
  967. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerStatus.html +560 -0
  968. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDPMWakeup.html +566 -0
  969. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDisplayMode.html +566 -0
  970. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPMMode.html +566 -0
  971. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPowerOnDelay.html +566 -0
  972. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DPMSignalType.html +640 -0
  973. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DisplayMode.html +640 -0
  974. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PMMode.html +775 -0
  975. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PowerCommand.html +640 -0
  976. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.TimerWeek.html +910 -0
  977. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#existServerCertificate.html +561 -0
  978. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#registerServerCertificate.html +561 -2
  979. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#unregisterServerCertificate.html +561 -0
  980. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#captureScreen.html +561 -0
  981. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#enableCheckScreen.html +566 -0
  982. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getFailoverMode.html +555 -0
  983. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getIntelligentAuto.html +560 -0
  984. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getLanDaisyChain.html +560 -0
  985. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getPowerSaveMode.html +555 -0
  986. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSignageInfo.html +555 -0
  987. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getStudioMode.html +560 -0
  988. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSystemMonitoringInfo.html +555 -0
  989. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getTileInfo.html +555 -0
  990. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsageData.html +555 -0
  991. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsagePermission.html +555 -0
  992. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#registerSystemMonitor.html +573 -0
  993. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setDigitalAudioInputMode.html +567 -0
  994. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setFailoverMode.html +567 -0
  995. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIntelligentAuto.html +566 -0
  996. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIsmMethod.html +567 -0
  997. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setLanDaisyChain.html +566 -0
  998. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPortraitMode.html +567 -0
  999. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPowerSaveMode.html +567 -0
  1000. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setStudioMode.html +566 -0
  1001. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setTileInfo.html +567 -0
  1002. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setUsagePermission.html +567 -0
  1003. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#unregisterSystemMonitor.html +555 -0
  1004. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.AutomaticStandbyMode.html +640 -0
  1005. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DigitalAudioInput.html +640 -0
  1006. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DpmMode.html +910 -0
  1007. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.EventType.html +775 -0
  1008. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.FailoverMode.html +685 -0
  1009. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.ImgResolution.html +640 -0
  1010. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.IsmMethod.html +910 -0
  1011. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.KeyOperationMode.html +685 -0
  1012. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.MonitoringSource.html +775 -0
  1013. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.OsdPortraitMode.html +640 -0
  1014. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundMode.html +560 -0
  1015. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundOut.html +560 -0
  1016. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundStatus.html +560 -0
  1017. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setExternalSpeaker.html +566 -0
  1018. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setMuted.html +566 -0
  1019. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundMode.html +566 -0
  1020. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundOut.html +566 -0
  1021. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setVolumeLevel.html +566 -0
  1022. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SoundMode.html +820 -0
  1023. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SpeakerType.html +640 -0
  1024. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#changeLogoImage.html +566 -0
  1025. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#copyFile.html +561 -0
  1026. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#downloadFirmware.html +566 -0
  1027. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#exists.html +561 -0
  1028. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#fsync.html +561 -0
  1029. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +560 -0
  1030. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getStorageInfo.html +555 -0
  1031. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#listFiles.html +561 -0
  1032. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#mkdir.html +561 -0
  1033. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#moveFile.html +561 -0
  1034. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#readFile.html +563 -0
  1035. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeAll.html +561 -0
  1036. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeApplication.html +566 -0
  1037. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeFile.html +561 -0
  1038. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#statFile.html +561 -0
  1039. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#unzipFile.html +561 -0
  1040. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeApplication.html +566 -0
  1041. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeFirmware.html +560 -0
  1042. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#writeFile.html +561 -0
  1043. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppMode.html +640 -0
  1044. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppType.html +640 -0
  1045. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.SCAP_URI.html +512 -0
  1046. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#addHolidaySchedule.html +566 -0
  1047. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delAllHolidaySchedules.html +566 -0
  1048. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delHolidaySchedule.html +566 -0
  1049. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getAllHolidaySchedules.html +560 -0
  1050. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getHolidayScheduleMode.html +560 -0
  1051. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#setHolidayScheduleMode.html +566 -0
  1052. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Utility#createToast.html +561 -0
  1053. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getContentRotation.html +560 -0
  1054. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getVideoStatus.html +560 -0
  1055. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setContentRotation.html +566 -0
  1056. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setRotatedVideoTransform.html +566 -0
  1057. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoSize.html +566 -0
  1058. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoViewTransform.html +566 -0
  1059. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/_global_.html +453 -0
  1060. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/media_status.jpg +0 -0
  1061. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/setVideoSize.png +0 -0
  1062. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_configuration.js.html +2651 -0
  1063. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_deviceInfo.js.html +1860 -0
  1064. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_inputSource.js.html +1382 -0
  1065. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_power.js.html +2697 -0
  1066. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_security.js.html +357 -0
  1067. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_signage.js.html +3601 -0
  1068. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_sound.js.html +1123 -0
  1069. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_storage.js.html +2615 -0
  1070. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_time.js.html +720 -0
  1071. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_utility.js.html +196 -0
  1072. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_video.js.html +1090 -0
  1073. package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/release_notes.txt +148 -0
  1074. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/2.7.0/cordova.webos.js +7038 -0
  1075. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/LICENSE +201 -0
  1076. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/configuration.js +1 -0
  1077. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/deviceInfo.js +1 -0
  1078. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/inputSource.js +1 -0
  1079. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/power.js +1 -0
  1080. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/security.js +1 -0
  1081. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/signage.js +1 -0
  1082. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/sound.js +1 -0
  1083. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/storage.js +1 -0
  1084. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/time.js +1 -0
  1085. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/utility.js +1 -0
  1086. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/video.js +1 -0
  1087. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/all.css +358 -0
  1088. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
  1089. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
  1090. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
  1091. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
  1092. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
  1093. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
  1094. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
  1095. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
  1096. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/handheld.css +217 -0
  1097. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/screen.css +405 -0
  1098. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/files.html +599 -0
  1099. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/index.html +1280 -0
  1100. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/intro.html +100 -0
  1101. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/all.js +326 -0
  1102. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/dessert.css +34 -0
  1103. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-apollo.js +51 -0
  1104. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-clj.js +64 -0
  1105. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-css.js +78 -0
  1106. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-go.js +58 -0
  1107. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-hs.js +101 -0
  1108. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lisp.js +93 -0
  1109. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lua.js +59 -0
  1110. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-ml.js +56 -0
  1111. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-n.js +62 -0
  1112. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-proto.js +35 -0
  1113. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-scala.js +54 -0
  1114. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-sql.js +57 -0
  1115. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-tex.js +46 -0
  1116. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vb.js +61 -0
  1117. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
  1118. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-wiki.js +53 -0
  1119. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-xq.js +67 -0
  1120. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-yaml.js +27 -0
  1121. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.css +52 -0
  1122. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.js +1477 -0
  1123. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/html5.js +6 -0
  1124. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#clearCache.html +572 -0
  1125. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getCurrentTime.html +582 -0
  1126. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getLocaleList.html +582 -0
  1127. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLanguage.html +582 -0
  1128. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLock.html +582 -0
  1129. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureMode.html +582 -0
  1130. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureProperty.html +582 -0
  1131. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getProperty.html +583 -0
  1132. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getServerProperty.html +582 -0
  1133. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZone.html +582 -0
  1134. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZoneList.html +582 -0
  1135. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getUSBLock.html +582 -0
  1136. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +582 -0
  1137. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#restartApplication.html +572 -0
  1138. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setCurrentTime.html +588 -0
  1139. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLanguage.html +588 -0
  1140. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLock.html +588 -0
  1141. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureMode.html +588 -0
  1142. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureProperty.html +588 -0
  1143. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setProperty.html +583 -0
  1144. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setServerProperty.html +632 -0
  1145. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setTimeZone.html +588 -0
  1146. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setUSBLock.html +588 -0
  1147. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +588 -0
  1148. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppMode.html +707 -0
  1149. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppType.html +662 -0
  1150. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.PictureMode.html +932 -0
  1151. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#connectWifi.html +583 -0
  1152. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getBeaconInfo.html +582 -0
  1153. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +582 -0
  1154. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getExternalInputList.html +588 -0
  1155. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkInfo.html +582 -0
  1156. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +582 -0
  1157. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getPlatformInfo.html +582 -0
  1158. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getProxyInfo.html +582 -0
  1159. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSoftApInfo.html +582 -0
  1160. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +588 -0
  1161. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getWifiList.html +582 -0
  1162. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +582 -0
  1163. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setBeaconInfo.html +583 -0
  1164. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +588 -0
  1165. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setNetworkInfo.html +583 -0
  1166. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setProxyInfo.html +588 -0
  1167. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setSoftApInfo.html +583 -0
  1168. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +588 -0
  1169. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#startWps.html +588 -0
  1170. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#stopWps.html +577 -0
  1171. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo.EddystoneFrame.html +662 -0
  1172. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.ERROR_CODE.html +842 -0
  1173. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.html +482 -0
  1174. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#changeInputSource.html +588 -0
  1175. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#getInputSourceStatus.html +582 -0
  1176. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#initialize.html +583 -0
  1177. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOffTimer.html +588 -0
  1178. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOnTimer.html +588 -0
  1179. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOffTimer.html +588 -0
  1180. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOnTimer.html +588 -0
  1181. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOffTimer.html +588 -0
  1182. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOnTimer.html +588 -0
  1183. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableWakeOnLan.html +588 -0
  1184. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#executePowerCommand.html +588 -0
  1185. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getDPMWakeup.html +582 -0
  1186. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOffTimerList.html +582 -0
  1187. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnOffTimeSchedule.html +582 -0
  1188. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnTimerList.html +582 -0
  1189. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPMMode.html +582 -0
  1190. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerOnDelay.html +582 -0
  1191. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerStatus.html +582 -0
  1192. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDPMWakeup.html +588 -0
  1193. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDisplayMode.html +588 -0
  1194. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setOnOffTimeSchedule.html +583 -0
  1195. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPMMode.html +588 -0
  1196. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPowerOnDelay.html +588 -0
  1197. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#unsetOnOffTimeSchedule.html +582 -0
  1198. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DPMSignalType.html +662 -0
  1199. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DisplayMode.html +662 -0
  1200. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PMMode.html +797 -0
  1201. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PowerCommand.html +662 -0
  1202. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.TimerWeek.html +932 -0
  1203. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#existServerCertificate.html +583 -0
  1204. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#registerServerCertificate.html +583 -2
  1205. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#unregisterServerCertificate.html +583 -0
  1206. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#captureScreen.html +583 -0
  1207. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#enableCheckScreen.html +588 -0
  1208. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getFailoverMode.html +577 -0
  1209. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getIntelligentAuto.html +582 -0
  1210. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getLanDaisyChain.html +582 -0
  1211. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getPowerSaveMode.html +577 -0
  1212. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSignageInfo.html +577 -0
  1213. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getStudioMode.html +582 -0
  1214. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSystemMonitoringInfo.html +577 -0
  1215. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getTileInfo.html +577 -0
  1216. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsageData.html +577 -0
  1217. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsagePermission.html +577 -0
  1218. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerRS232CEventListener.html +594 -0
  1219. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerSystemMonitor.html +595 -0
  1220. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setDigitalAudioInputMode.html +589 -0
  1221. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setFailoverMode.html +589 -0
  1222. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIntelligentAuto.html +588 -0
  1223. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIsmMethod.html +589 -0
  1224. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setLanDaisyChain.html +588 -0
  1225. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPortraitMode.html +589 -0
  1226. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPowerSaveMode.html +589 -0
  1227. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setStudioMode.html +588 -0
  1228. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setTileInfo.html +589 -0
  1229. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setUsagePermission.html +589 -0
  1230. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterRS232CEventListener.html +582 -0
  1231. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterSystemMonitor.html +577 -0
  1232. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.AutomaticStandbyMode.html +662 -0
  1233. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DigitalAudioInput.html +662 -0
  1234. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DpmMode.html +932 -0
  1235. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.EventType.html +797 -0
  1236. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.FailoverMode.html +707 -0
  1237. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.ImgResolution.html +662 -0
  1238. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.IsmMethod.html +932 -0
  1239. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.KeyOperationMode.html +707 -0
  1240. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.MonitoringSource.html +797 -0
  1241. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.OsdPortraitMode.html +662 -0
  1242. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundMode.html +582 -0
  1243. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundOut.html +582 -0
  1244. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundStatus.html +582 -0
  1245. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setExternalSpeaker.html +588 -0
  1246. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setMuted.html +588 -0
  1247. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundMode.html +588 -0
  1248. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundOut.html +588 -0
  1249. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setVolumeLevel.html +588 -0
  1250. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SoundMode.html +842 -0
  1251. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SpeakerType.html +662 -0
  1252. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#changeLogoImage.html +588 -0
  1253. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#copyFile.html +583 -0
  1254. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#decryptFile.html +583 -0
  1255. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#downloadFirmware.html +588 -0
  1256. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#exists.html +583 -0
  1257. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#fsync.html +583 -0
  1258. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +582 -0
  1259. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getMD5Hash.html +583 -0
  1260. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getStorageInfo.html +577 -0
  1261. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#listFiles.html +583 -0
  1262. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#mkdir.html +583 -0
  1263. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#moveFile.html +583 -0
  1264. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#readFile.html +585 -0
  1265. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeAll.html +583 -0
  1266. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeApplication.html +588 -0
  1267. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeFile.html +583 -0
  1268. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#statFile.html +583 -0
  1269. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#unzipFile.html +583 -0
  1270. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeApplication.html +588 -0
  1271. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeFirmware.html +582 -0
  1272. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#writeFile.html +583 -0
  1273. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppMode.html +662 -0
  1274. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppType.html +662 -0
  1275. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.SCAP_URI.html +534 -0
  1276. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#addHolidaySchedule.html +588 -0
  1277. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delAllHolidaySchedules.html +588 -0
  1278. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delHolidaySchedule.html +588 -0
  1279. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getAllHolidaySchedules.html +582 -0
  1280. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidaySchedule.html +582 -0
  1281. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidayScheduleMode.html +582 -0
  1282. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidaySchedule.html +583 -0
  1283. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidayScheduleMode.html +588 -0
  1284. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#unsetHolidaySchedule.html +582 -0
  1285. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Utility#createToast.html +583 -0
  1286. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getContentRotation.html +586 -0
  1287. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getVideoStatus.html +582 -0
  1288. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setContentRotation.html +592 -0
  1289. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setRotatedVideoTransform.html +592 -0
  1290. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoSize.html +588 -0
  1291. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoViewTransform.html +592 -0
  1292. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/_global_.html +475 -0
  1293. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/media_status.jpg +0 -0
  1294. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/setVideoSize.png +0 -0
  1295. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_configuration.js.html +2651 -0
  1296. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_deviceInfo.js.html +1930 -0
  1297. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_inputSource.js.html +1383 -0
  1298. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_power.js.html +2942 -0
  1299. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_security.js.html +352 -0
  1300. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_signage.js.html +3853 -0
  1301. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_sound.js.html +1123 -0
  1302. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_storage.js.html +2747 -0
  1303. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_time.js.html +976 -0
  1304. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_utility.js.html +196 -0
  1305. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_video.js.html +754 -0
  1306. package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/release_notes.txt +148 -0
  1307. package/files/templates/signage-sdk-templates/serviceinfo/package.json +11 -0
  1308. package/files/templates/signage-sdk-templates/serviceinfo/services.json +8 -0
  1309. package/files/templates/signage-sdk-templates/signageicon/icon.png +0 -0
  1310. package/files/templates/signage-sdk-templates/signageicon/largeIcon.png +0 -0
  1311. package/files/templates/signage-sdk-templates/webos-service/helloclient.js +23 -0
  1312. package/files/templates/signage-sdk-templates/webos-service/helloworld_webos_service.js +128 -0
  1313. package/files/templates/tv-sdk-templates/appinfo/appinfo.json +10 -10
  1314. package/files/templates/tv-sdk-templates/bootplate-web/index.html +58 -58
  1315. package/files/templates/tv-sdk-templates/bootplate-web/webOSTVjs-1.2.10/LICENSE-2.0.txt +202 -202
  1316. package/files/templates/tv-sdk-templates/hosted-webapp/index.html +14 -14
  1317. package/files/templates/tv-sdk-templates/js-service/helloworld_service.js +39 -39
  1318. package/files/templates/tv-sdk-templates/packageinfo/packageinfo.json +3 -3
  1319. package/files/templates/tv-sdk-templates/serviceinfo/package.json +11 -11
  1320. package/files/templates/tv-sdk-templates/serviceinfo/services.json +8 -8
  1321. package/lib/base/ares.html +40 -40
  1322. package/lib/base/cli-appdata.js +289 -290
  1323. package/lib/base/cli-control.js +44 -44
  1324. package/lib/base/common-tools.js +29 -29
  1325. package/lib/base/error-handler.js +265 -265
  1326. package/lib/base/file-watcher.js +155 -155
  1327. package/lib/base/help-format.js +147 -147
  1328. package/lib/base/luna.js +178 -178
  1329. package/lib/base/novacom.js +1214 -1202
  1330. package/lib/base/sdkenv.js +59 -59
  1331. package/lib/base/server.js +137 -137
  1332. package/lib/base/setup-device.js +26 -8
  1333. package/lib/base/version-tools.js +79 -79
  1334. package/lib/com.sdk.ares.signage.hostedapp.ipk +0 -0
  1335. package/lib/device.js +1419 -1419
  1336. package/lib/generator.js +1 -1
  1337. package/lib/inspect.js +493 -493
  1338. package/lib/install.js +465 -463
  1339. package/lib/launch.js +607 -605
  1340. package/lib/log.js +584 -584
  1341. package/lib/package.js +2253 -2149
  1342. package/lib/pull.js +231 -231
  1343. package/lib/pusher.js +210 -210
  1344. package/lib/session.js +74 -74
  1345. package/lib/shell.js +193 -193
  1346. package/lib/tar-filter-pack.js +62 -62
  1347. package/lib/util/copy.js +31 -31
  1348. package/lib/util/createFileName.js +40 -40
  1349. package/lib/util/eof.js +30 -30
  1350. package/lib/util/json.js +63 -63
  1351. package/lib/util/merge.js +14 -14
  1352. package/lib/util/objclone.js +40 -40
  1353. package/lib/util/spinner.js +37 -37
  1354. package/npm-shrinkwrap.json +2 -2
  1355. package/package.json +1 -1
  1356. package/scripts/postinstall.js +24 -24
  1357. package/spec/helpers/reporter.js +65 -65
  1358. package/spec/jsSpecs/apiTest/generator.spec.js +372 -372
  1359. package/spec/jsSpecs/apiTest/inspector.spec.js +89 -89
  1360. package/spec/jsSpecs/apiTest/installer.spec.js +67 -67
  1361. package/spec/jsSpecs/apiTest/launcher.spec.js +150 -150
  1362. package/spec/jsSpecs/apiTest/packager.spec.js +194 -194
  1363. package/spec/jsSpecs/apiTest/puller.spec.js +101 -101
  1364. package/spec/jsSpecs/apiTest/pusher.spec.js +103 -103
  1365. package/spec/jsSpecs/apiTest/server.spec.js +115 -115
  1366. package/spec/jsSpecs/apiTest/setupDevice.spec.js +93 -93
  1367. package/spec/jsSpecs/apiTest/shell.spec.js +49 -49
  1368. package/spec/jsSpecs/ares-config.spec.js +88 -88
  1369. package/spec/jsSpecs/ares-device.spec.js +443 -443
  1370. package/spec/jsSpecs/ares-generate.spec.js +401 -397
  1371. package/spec/jsSpecs/ares-inspect.spec.js +252 -252
  1372. package/spec/jsSpecs/ares-install.spec.js +150 -150
  1373. package/spec/jsSpecs/ares-launch.spec.js +303 -301
  1374. package/spec/jsSpecs/ares-log.spec.js +824 -824
  1375. package/spec/jsSpecs/ares-novacom.spec.js +149 -149
  1376. package/spec/jsSpecs/ares-package.spec.js +1277 -1211
  1377. package/spec/jsSpecs/ares-pull.spec.js +157 -157
  1378. package/spec/jsSpecs/ares-push.spec.js +146 -146
  1379. package/spec/jsSpecs/ares-server.spec.js +160 -160
  1380. package/spec/jsSpecs/ares-setup-device.spec.js +299 -300
  1381. package/spec/jsSpecs/ares-shell.spec.js +220 -220
  1382. package/spec/jsSpecs/ares.spec.js +83 -83
  1383. package/spec/jsSpecs/common-spec.js +177 -169
  1384. package/spec/support/jasmine.json +22 -22
  1385. package/spec/tempFiles/com.lg.app.signage.dev_0.0.1_all.ipk +0 -0
  1386. package/spec/tempFiles/nativeApp/auto/pkg_arm64/appinfo.json +9 -9
  1387. package/spec/tempFiles/nativeApp/ose/pkg_arm/appinfo.json +8 -8
  1388. package/spec/tempFiles/nativeApp/ose/pkg_arm/package.properties +2 -2
  1389. package/spec/tempFiles/nativeApp/oseEmul/pkg_x86/appinfo.json +9 -9
  1390. package/spec/tempFiles/nativeApp/rsi/pkg_x86/appinfo.json +9 -9
  1391. package/spec/tempFiles/sign/sign.crt +32 -32
  1392. package/spec/tempFiles/sign/signPriv.key +52 -52
  1393. package/spec/test_data/ares-generate.json +91 -58
  1394. package/spec/test_data/ares.json +50 -50
  1395. package/webos-tools-cli-3.2.0.tgz +0 -0
  1396. package/webos-tools-cli-3.1.3.tgz +0 -0
package/lib/device.js CHANGED
@@ -1,1419 +1,1419 @@
1
- /*
2
- * Copyright (c) 2020-2024 LG Electronics Inc.
3
- *
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
-
7
- const async = require('async'),
8
- chalk = require('chalk'),
9
- createCsvWriter = require('csv-writer').createObjectCsvWriter,
10
- fs = require('fs'),
11
- npmlog = require('npmlog'),
12
- path = require('path'),
13
- streamBuffers = require('stream-buffers'),
14
- Table = require('easy-table'),
15
- util = require('util'),
16
- pullLib = require('./pull'),
17
- errHndl = require('./base/error-handler'),
18
- luna = require('./base/luna'),
19
- novacom = require('./base/novacom'),
20
- createDateFileName = require('./util/createFileName').createDateFileName,
21
- convertJsonToList = require('./util/json').convertJsonToList;
22
-
23
- (function() {
24
- const log = npmlog;
25
- log.heading = 'device';
26
- log.level = 'warn';
27
-
28
- const device = {
29
-
30
- /**
31
- * @property {Object} log an npm log instance
32
- */
33
- log: log,
34
-
35
- /**
36
- * Print system information of the given device
37
- * @property options {String} device the device to connect to
38
- */
39
- systemInfo: function(options, next) {
40
- if (typeof next !== 'function') {
41
- throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
42
- }
43
- options = options || {};
44
- async.series([
45
- _makeSession,
46
- _getOsInfo,
47
- _getDeviceInfo,
48
- _getChromiumVersion,
49
- _getQtbaseVersion,
50
- _getSoftwareInfo
51
- ], function(err, results) {
52
- log.silly("device#systemInfo()", "err:", err, ", results:", results);
53
- let resultTxt = "";
54
- for (let i = 1; i < results.length; i++) {
55
- resultTxt += results[i] + "\n";
56
- }
57
- next(err, {msg: resultTxt.trim()});
58
- });
59
-
60
- function _makeSession(next) {
61
- makeSession(options, next);
62
- }
63
-
64
- function _getOsInfo(next) {
65
- log.info("device#systemInfo()#_getOsInfo()");
66
- const target = options.session.getDevice(),
67
- addr = target.lunaAddr.osInfo,
68
- param = {
69
- // luna param
70
- parameters:["webos_build_id","webos_imagename","webos_name","webos_release",
71
- "webos_manufacturing_version", "core_os_kernel_version"],
72
- subscribe: false
73
- };
74
-
75
- luna.send(options, addr, param, function(lineObj, next) {
76
- const resultValue = lineObj;
77
-
78
- if (resultValue.returnValue) {
79
- log.verbose("device#systemInfo()#_getOsInfo()", "success");
80
- delete resultValue.returnValue; // remove unnecessary data
81
- next(null, _makeReturnTxt(resultValue));
82
- } else {
83
- log.verbose("device#systemInfo()#_getOsInfo()", "failure");
84
- next(errHndl.getErrMsg("INVALID_OBJECT"));
85
- }
86
- }, next);
87
- }
88
-
89
- function _getDeviceInfo(next) {
90
- log.info("device#systemInfo()#_getDeviceInfo()");
91
- const target = options.session.getDevice(),
92
- addr = target.lunaAddr.deviceInfo,
93
- param = {
94
- // luna param
95
- subscribe: false
96
- };
97
-
98
- luna.send(options, addr, param, function(lineObj, next) {
99
- const resultValue = lineObj,
100
- returnObj ={};
101
-
102
- if (resultValue.returnValue) {
103
- log.verbose("device#systemInfo()#_getDeviceInfo()", "success");
104
- returnObj.device_name = resultValue.device_name;
105
- returnObj.device_id = resultValue.device_id;
106
- next(null, _makeReturnTxt(returnObj));
107
- } else {
108
- log.verbose("device#systemInfo()#_getDeviceInfo()", "failure");
109
- next(errHndl.getErrMsg("INVALID_OBJECT"));
110
- }
111
- }, next);
112
- }
113
-
114
- function _getChromiumVersion(next) {
115
- log.info("device#systemInfo()#_getChromiumInfo()");
116
-
117
- // opkg is required permission as root.
118
- if (options.session.getDevice().username !== 'root') {
119
- return next(null, "chromium_version : " + "not supported");
120
- } else {
121
- const cmd = '/usr/bin/opkg list-installed webruntime*';
122
- options.session.run(cmd, null, __data, null, function(err) {
123
- if (err) {
124
- return next(err);
125
- }
126
- });
127
- }
128
- function __data(data) {
129
- const str = (Buffer.isBuffer(data)) ? data.toString() : data,
130
- exp = /\d*\.\d*\.\d*\.\d*/,
131
- version = str.match(exp);
132
-
133
- next(null, "chromium_version : " + version);
134
- }
135
- }
136
-
137
- function _getQtbaseVersion(next) {
138
- log.info("device#systemInfo()#_getQtbaseInfo()");
139
-
140
- // opkg is required permission as root.
141
- if (options.session.getDevice().username !== 'root') {
142
- return next(null, "qt_version : " + "not supported");
143
- } else {
144
- const cmd = '/usr/bin/opkg list-installed qtbase';
145
- options.session.run(cmd, null, __data, null, function(err) {
146
- if (err) {
147
- return next(err);
148
- }
149
- });
150
- }
151
- function __data(data) {
152
- const str = (Buffer.isBuffer(data)) ? data.toString() : data,
153
- exp = /\d*\.\d*\.\d*/,
154
- version = str.match(exp);
155
- next(null, "qt_version : " + version);
156
- }
157
- }
158
-
159
- function _getSoftwareInfo(next) {
160
- log.info("device#systemInfo#_getSoftwareInfo()");
161
- const target = options.session.getDevice(),
162
- addr = target.lunaAddr.softwareInfo,
163
- param = {
164
- parameters: ["nodejs_versions"]
165
- };
166
-
167
- luna.sendWithoutErrorHandle(options, addr, param, function(lineObj, next) {
168
- log.silly("device#systemInfo#_getSoftwareInfo():", "lineObj:", lineObj);
169
-
170
- const resultValue = lineObj,
171
- returnObj ={};
172
-
173
- if (resultValue.returnValue) {
174
- log.verbose("device#systemInfo#_getSoftwareInfo():", "success");
175
- returnObj.nodejs_versions = resultValue.nodejs_versions;
176
- next(null, _makeReturnTxt(returnObj));
177
- } else {
178
- // handle if the target device does not support softwareInfo/query
179
- return next(null, "nodejs_versions : " + "not supported");
180
- }
181
- }, next);
182
- }
183
-
184
- function _makeReturnTxt(resultValue) {
185
- let returnTxt = "";
186
-
187
- for (const key in resultValue) {
188
- if (resultValue[key] === undefined) {
189
- resultValue[key] = "(unknown)";
190
- }
191
- returnTxt += key + " : " + resultValue[key] + "\n";
192
- }
193
- return returnTxt.trim();
194
- }
195
- },
196
- /**
197
- * Print session information of the given device
198
- * @property options {String} device the device to connect to
199
- */
200
- sessionInfo: function(options, next) {
201
- if (typeof next !== 'function') {
202
- throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
203
- }
204
- options = options || {};
205
- async.series([
206
- _makeSession,
207
- _getSessionList
208
- ], function(err, results) {
209
- log.silly("device#sessionInfo()", "err:", err, ", results:", results);
210
- let resultTxt = "";
211
-
212
- if (results[1] !== undefined) {
213
- if (typeof results[1] === "object") {
214
- if (results[1].length === 0) {
215
- return next(errHndl.getErrMsg("SELECT_PROFILE"));
216
- }
217
- for (let i = 0; i < results[1].length; i++) {
218
- resultTxt += convertJsonToList(results[1][i], 0) + '\n';
219
- }
220
- } else {
221
- resultTxt = results[1];
222
- }
223
- }
224
- next(err, {msg: resultTxt.trim()});
225
- });
226
-
227
- function _makeSession(next) {
228
- makeSession(options, next);
229
- }
230
-
231
- function _getSessionList(next) {
232
- log.info("device#sessionInfo#_getSessionList()");
233
- const target = options.session.getDevice(),
234
- addr = target.lunaAddr.getSessionList,
235
- param = {
236
- // luna param
237
- subscribe: false
238
- };
239
-
240
- luna.send(options, addr, param, function(lineObj, next) {
241
- if (lineObj.returnValue) {
242
- log.verbose("device#sessionInfo()#_getSessionList()", "success");
243
- next(null, lineObj.sessionList);
244
- } else {
245
- log.verbose("device#sessionInfo()#_getSessionList()", "failure");
246
- next(errHndl.getErrMsg("INVALID_OBJECT"));
247
- }
248
- }, next);
249
- }
250
- },
251
- /**
252
- * Print system information of the given device
253
- * @property options {String} device the device to connect to
254
- */
255
- tvSystemInfo: function(options, next) {
256
- if (typeof next !== 'function') {
257
- throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
258
- }
259
- options = options || {};
260
- async.series([
261
- _makeSession,
262
- _getSystemInfo,
263
- ], function(err, results) {
264
- log.silly("device#tvSystemInfo()", "err:", err, ", results:", results);
265
- next(err, {msg: results[1]});
266
- });
267
-
268
- function _makeSession(next) {
269
- makeSession(options, next);
270
- }
271
-
272
- function _getSystemInfo(next) {
273
- log.info("device#tvSystemInfo#_getSystemInfo()");
274
- const target = options.session.getDevice(),
275
- addr = target.lunaAddr.deviceInfoSystem,
276
- param = {
277
- // luna param
278
- keys: ["modelName", "sdkVersion", "firmwareVersion", "boardType", "otaId"],
279
- subscribe: false
280
- };
281
-
282
- luna.sendWithoutErrorHandle(options, addr, param, function (lineObj, next) {
283
- if (lineObj) {
284
- log.verbose("deviceInfo#systemInfo#_getSystemInfo():", "success");
285
- next(null, __makeReturnObj(lineObj, param.keys));
286
- } else {
287
- next(errHndl.getErrMsg("INVALID_OBJECT"));
288
- }
289
- }, next);
290
- }
291
-
292
- function __makeReturnObj(resultValue, paramkey) {
293
- let returnTxt = "";
294
-
295
- for (const key in paramkey) {
296
- if (Object.hasOwnProperty.call(resultValue, paramkey[key]))
297
- returnTxt += paramkey[key] + " : " + resultValue[paramkey[key]] + "\n";
298
- }
299
- log.verbose("deviceInfo#systemInfo#__makeReturnObj():", returnTxt);
300
- return returnTxt.trim();
301
- }
302
- },
303
- /**
304
- * Get all CPUs and memories usage of target device
305
- * @property options {String} device, interval
306
- */
307
- systemResource: function(options, next) {
308
- if (typeof next !== 'function') {
309
- throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
310
- }
311
- const systemGroup = {};
312
- systemGroup.initialExecution = true;
313
- options = options || {};
314
- options.destinationPath = "";
315
- options.fileName = "";
316
- options.csvPath = "";
317
- async.series([
318
- _createOutputPath,
319
- _makeSession,
320
- _getSystemResouceInfo
321
- ], function(err, results) {
322
- log.silly("device#systemResource()", "err:", err, ", results:", results);
323
- next(err);
324
- });
325
-
326
- function _createOutputPath(next) {
327
- if (options.save && options.csvPath === "") {
328
- makeCSVOutputPath(options, next);
329
- } else {
330
- next();
331
- }
332
- }
333
-
334
- function _makeSession(next) {
335
- makeSession(options, next);
336
- }
337
-
338
- function _getSystemResouceInfo(next) {
339
- log.info("device#systemResource()#_getSystemResouceInfo()");
340
-
341
- let timerId;
342
- if (!options.interval) {
343
- // If interval option is not given, call timer logic 2 times
344
- const defaultRepeat = 2;
345
- let repeatCount = 0;
346
- try {
347
- timerId = setTimeout(function repeat() {
348
- if (repeatCount < defaultRepeat) {
349
- _callSystemResourceInfoCmd();
350
- repeatCount++;
351
- timerId = setTimeout(repeat, 1000);
352
- } else {
353
- clearTimeout(timerId);
354
- return next();
355
- }
356
- }, 100);
357
- } catch (err) {
358
- log.silly("device#systemResource()#_getSystemResouceInfo()", "one timer. err:", err.toString());
359
- clearTimeout(timerId);
360
- // ignore timer logic error
361
- return next();
362
- }
363
- } else {
364
- try {
365
- // when interval option is given, print initial data at first
366
- const defaultRepeat = 1;
367
- let repeatCount = 0;
368
- timerId = setTimeout(function repeat() {
369
- if (repeatCount < defaultRepeat) {
370
- _callSystemResourceInfoCmd();
371
- repeatCount++;
372
- timerId = setTimeout(repeat, 1000);
373
- } else {
374
- _callSystemResourceInfoCmd();
375
- timerId = setTimeout(repeat, options.interval * 1000);
376
- }
377
- }, 100);
378
- } catch (err) {
379
- log.silly("device#systemResource()#_getSystemResouceInfo()", "repeat timer. err:", err.toString());
380
- clearTimeout(timerId);
381
- // ignore timer logic error
382
- return next();
383
- }
384
- }
385
- }
386
-
387
- function _callSystemResourceInfoCmd() {
388
- log.info("device#systemResource()#_callSystemResourceInfoCmd()");
389
-
390
- const wStream = new streamBuffers.WritableStreamBuffer();
391
- const cmd = 'date "+%Y-%m-%d %H:%M:%S"; grep -c ^processor /proc/cpuinfo; grep "cpu *" /proc/stat; free -k';
392
- try {
393
- options.session.run(cmd, null, wStream, null, function(err) {
394
- if (err) {
395
- // do not print error message to user
396
- // when user press Ctrl + C , the ssh connection is not completed, it makes error
397
- log.silly("device#systemResource()#_callSystemResourceInfoCmd()", "ssh call. err:"+ err.toString());
398
- return next();
399
- } else {
400
- const result = wStream.getContentsAsString();
401
- _setSystemResouceInfo(result);
402
- systemGroup.initialExecution = false;
403
- }
404
- });
405
- } catch (err) {
406
- // do not print error message to user
407
- // when user press Ctrl + C , the ssh connection is not completed, it makes error
408
- log.silly("device#systemResource()#_callSystemResourceInfoCmd()", "in try-catch. err:", err.toString());
409
- return next();
410
- }
411
- }
412
-
413
- function _setSystemResouceInfo(systemData) {
414
- log.info("device#systemResource()#_callSystemResourceInfoCmd()");
415
-
416
- const CPU_PATTERN = /\s+/,
417
- cpuinfo = {},
418
- meminfo = {};
419
- let sysinfo = {};
420
- try {
421
- const allvalues = systemData.split("\n"),
422
- date = allvalues[0], // Setup date
423
- pcore = +allvalues[1] * 100;
424
- let index,
425
- columns,
426
- isBuff_Cached = false; // This is to check the format version of kernel to find system memory parameter
427
- for (index = 2; index < (allvalues.length - 1); index++) {
428
- columns = allvalues[index].split(CPU_PATTERN);
429
- // setup CPU information
430
- if (columns[0].indexOf("cpu") === 0) {
431
- const prevTotal = "prev" + columns[0] + "Total",
432
- prevIdle = "prev" + columns[0] + "Idle",
433
- prevUser = "prev" + columns[0] + "User",
434
- prevkernel = "prev" + columns[0] + "Kernel",
435
- prevOther = "prev" + columns[0] + "Other";
436
- if (!systemGroup[prevTotal]) {
437
- systemGroup[prevTotal] = 0;
438
- systemGroup[prevIdle] = 0;
439
- systemGroup[prevUser] = 0;
440
- systemGroup[prevkernel] = 0;
441
- systemGroup[prevOther] = 0;
442
- }
443
- const user = parseInt(columns[1]),
444
- nice = parseInt(columns[2]),
445
- kernel = parseInt(columns[3]),
446
- idle = parseInt(columns[4]),
447
- other = nice + parseInt(columns[5]) + parseInt(columns[6]) + parseInt(columns[7]) + parseInt(columns[8]) +
448
- parseInt(columns[9]) + parseInt(columns[10]),
449
- subTotal = user + nice + kernel + idle + other;
450
-
451
- if (!systemGroup.initialExecution) {
452
- const diffIdle = idle - systemGroup[prevIdle],
453
- diffUser = user - systemGroup[prevUser],
454
- diffKernel = kernel - systemGroup[prevkernel],
455
- diffOther = other - systemGroup[prevOther],
456
- diffTotal = subTotal - systemGroup[prevTotal];
457
-
458
- let userModeCpuOccupation = (diffUser/diffTotal) * 100,
459
- kernelModeCpuOccupation = (diffKernel/diffTotal) * 100,
460
- otherModeCpuOccupation = (diffOther/diffTotal) * 100,
461
- overallCpuOccupation = ((diffTotal - diffIdle)/diffTotal) * 100;
462
-
463
- userModeCpuOccupation < 0 ? (userModeCpuOccupation = 0) : userModeCpuOccupation;
464
- userModeCpuOccupation > pcore ? (userModeCpuOccupation = pcore) : userModeCpuOccupation;
465
- kernelModeCpuOccupation < 0 ? (kernelModeCpuOccupation = 0) : kernelModeCpuOccupation;
466
- kernelModeCpuOccupation > pcore ? (kernelModeCpuOccupation = pcore) : kernelModeCpuOccupation;
467
- otherModeCpuOccupation < 0 ? (otherModeCpuOccupation = 0) : otherModeCpuOccupation;
468
- otherModeCpuOccupation > pcore ? (otherModeCpuOccupation = pcore) : otherModeCpuOccupation;
469
- overallCpuOccupation < 0 ? (overallCpuOccupation = 0) : overallCpuOccupation;
470
- overallCpuOccupation > pcore ? (overallCpuOccupation = pcore) : overallCpuOccupation;
471
-
472
- cpuinfo[columns[0]] = {
473
- "overall": +overallCpuOccupation.toFixed(2),
474
- "usermode": +userModeCpuOccupation.toFixed(2),
475
- "kernelmode": +kernelModeCpuOccupation.toFixed(2),
476
- "others": +otherModeCpuOccupation.toFixed(2)
477
- };
478
- }
479
- systemGroup[prevIdle] = idle;
480
- systemGroup[prevUser] = user;
481
- systemGroup[prevkernel] = kernel;
482
- systemGroup[prevOther] = other;
483
- systemGroup[prevTotal] = subTotal;
484
- }
485
-
486
- if (!systemGroup.initialExecution) {
487
- // setup memory infomation
488
- if (columns[5] && columns[5].indexOf('buff/cache') !== -1) {
489
- isBuff_Cached = true;
490
- }
491
- if (columns[0].indexOf('Mem:') === 0) {
492
- meminfo['memory'] = !isBuff_Cached ? {
493
- "total": +columns[1],
494
- "used": +columns[2],
495
- "free": +columns[3],
496
- "shared": +columns[4],
497
- "buffers": +columns[5],
498
- "cached": +columns[6]
499
- } : {
500
- "total": +columns[1],
501
- "used": +columns[2],
502
- "free": +columns[3],
503
- "shared": +columns[4],
504
- "buff_cache": +columns[5],
505
- "available": +columns[6]
506
- };
507
- }
508
- if (columns[0].indexOf('-/+') === 0) {
509
- meminfo['buffers'] = {
510
- "used": +columns[2],
511
- "free": +columns[3]
512
- };
513
- }
514
- if (columns[0].indexOf('Swap:') === 0) {
515
- meminfo['swap'] = {
516
- "total": +columns[1],
517
- "used": +columns[2],
518
- "free": +columns[3]
519
- };
520
- }
521
- }
522
- }
523
- if (!systemGroup.initialExecution) {
524
- sysinfo = {
525
- "date": date,
526
- "cpuinfo": cpuinfo,
527
- "meminfo": meminfo
528
- };
529
- _printSystemInfo(sysinfo);
530
- }
531
- } catch (err) {
532
- // do not print error message to user
533
- // when user press Ctrl + C , the ssh cmd data is not completed, it makes error
534
- log.silly("device#systemResource()#_setSystemResouceInfo()", "in try-catch. err:", err.toString());
535
- return;
536
- }
537
- }
538
-
539
- function _printSystemInfo(sysinfo) {
540
- const cpuinfo = sysinfo.cpuinfo,
541
- meminfo = sysinfo.meminfo,
542
- cpuinfoTable = new Table(),
543
- meminfoTable = new Table(),
544
- dataForCSV = [];
545
-
546
- // add CPU info to the table
547
- for (const key in cpuinfo) {
548
- cpuinfoTable.cell('(%)', key);
549
- cpuinfoTable.cell('overall', cpuinfo[key].overall);
550
- cpuinfoTable.cell('usermode', cpuinfo[key].usermode);
551
- cpuinfoTable.cell('kernelmode', cpuinfo[key].kernelmode);
552
- cpuinfoTable.cell('others', cpuinfo[key].others);
553
- cpuinfoTable.newRow();
554
-
555
- // Add csv array
556
- const obj = {
557
- time: sysinfo.date,
558
- cpu: key,
559
- overall: cpuinfo[key].overall,
560
- usermode: cpuinfo[key].usermode,
561
- kernelmode: cpuinfo[key].kernelmode,
562
- others: cpuinfo[key].others
563
- };
564
- dataForCSV.push(obj);
565
- }
566
- // add memoryInfo to the table
567
- for (const key in meminfo) {
568
- meminfoTable.cell('(KB)', key);
569
- meminfoTable.cell('total', meminfo[key].total);
570
- meminfoTable.cell('used', meminfo[key].used);
571
- meminfoTable.cell('free', meminfo[key].free);
572
- meminfoTable.cell('shared', meminfo[key].shared);
573
- meminfoTable.cell('buff/cache', meminfo[key].buff_cache);
574
- meminfoTable.cell('available', meminfo[key].available);
575
- meminfoTable.newRow();
576
-
577
- const obj = {
578
- time: sysinfo.date,
579
- memory: key,
580
- total: meminfo[key].total,
581
- used: meminfo[key].used,
582
- free: meminfo[key].free,
583
- shared: meminfo[key].shared,
584
- "buff/cache": meminfo[key].buff_cache,
585
- available: meminfo[key].available
586
- };
587
- dataForCSV.push(obj);
588
- }
589
- // write CSV file if user gives --save option
590
- if (options.save && options.csvPath) {
591
- // write csv file
592
- // when openMode is false, the new csv file will be created and "Header" add to the file
593
- let openMode = false;
594
- if (fs.existsSync(options.csvPath)) {
595
- openMode = true;
596
- }
597
-
598
- const csvWriter = createCsvWriter({
599
- path: options.csvPath,
600
- header: [
601
- {id: 'time', title: 'time'},
602
- {id: 'cpu', title: '(%)'},
603
- {id: 'overall', title: 'overall'},
604
- {id: 'usermode', title: 'usermode'},
605
- {id: 'kernelmode', title: 'kernelmode'},
606
- {id: 'others', title: 'others'},
607
- {id: 'memory', title: '(KB)'},
608
- {id: 'total', title: 'total'},
609
- {id: 'used', title: 'used'},
610
- {id: 'free', title: 'free'},
611
- {id: 'shared', title: 'shared'},
612
- {id: 'buff/cache', title: 'buff/cache'},
613
- {id: 'available', title: 'available'}
614
- ],
615
- append: openMode
616
- });
617
-
618
- csvWriter
619
- .writeRecords(dataForCSV)
620
- .then(function() {
621
- log.silly("device#systemResource()#_printSystemInfo()", "CSV file updated");
622
- // csv file has been created at first
623
- if (openMode === false) {
624
- const resultTxt = "Create " + chalk.green(options.fileName) + " to " + options.destinationPath;
625
- console.log(resultTxt);
626
- }
627
- __printTable();
628
- }).catch(function(err) {
629
- return setImmediate(next, errHndl.getErrMsg(err));
630
- });
631
- } else {
632
- __printTable();
633
- }
634
-
635
- function __printTable() {
636
- console.log(sysinfo.date + "\n");
637
- console.log(cpuinfoTable.toString());
638
- console.log(meminfoTable.toString());
639
- console.log("=================================================================");
640
- }
641
- }
642
- },
643
- /**
644
- * Get running apps and services CPUs and memories usage
645
- * @property options {String} device, interval
646
- */
647
- processResource: function(options, next) {
648
- if (typeof next !== 'function') {
649
- throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
650
- }
651
-
652
- const processGroup = {};
653
- processGroup.initialExecution = true;
654
- options = options || {};
655
- options.destinationPath = "";
656
- options.fileName = "";
657
- options.csvPath = "";
658
-
659
- async.series([
660
- _createOutputPath,
661
- _makeSession,
662
- _getProcessResouceInfo
663
- ], function(err, results) {
664
- log.silly("device#processResource()", "err:", err, ", results:", results);
665
- next(err);
666
- });
667
-
668
- function _createOutputPath(next) {
669
- if (options.save && options.csvPath === "") {
670
- makeCSVOutputPath(options, next);
671
- } else {
672
- next();
673
- }
674
- }
675
-
676
- function _makeSession(next) {
677
- makeSession(options, next);
678
- }
679
-
680
- function _getProcessResouceInfo(next) {
681
- log.info("device#processResource()#_getProcessResouceInfo()");
682
-
683
- let timerId;
684
- if (!options.interval) {
685
- // If interval option is not given, call timer logic 2 times
686
- const defaultRepeat = 2;
687
- let repeatCount = 0;
688
- try {
689
- timerId = setTimeout(function repeat() {
690
- if (repeatCount < defaultRepeat) {
691
- _callProcessInfoCmd();
692
- repeatCount++;
693
- timerId = setTimeout(repeat, 1000);
694
- } else {
695
- clearTimeout(timerId);
696
- return next();
697
- }
698
- }, 100);
699
- } catch (err) {
700
- log.silly("device#systemResource()#_getProcessResouceInfo()", "one timer. err:", err.toString());
701
- clearTimeout(timerId);
702
- // ignore timer logic error
703
- return next();
704
- }
705
- } else {
706
- try {
707
- // when interval option is given, print initial data at first
708
- const defaultRepeat = 1;
709
- let repeatCount = 0;
710
- timerId = setTimeout(function repeat() {
711
- if (repeatCount < defaultRepeat) {
712
- _callProcessInfoCmd();
713
- repeatCount++;
714
- timerId = setTimeout(repeat, 1000);
715
- } else {
716
- _callProcessInfoCmd();
717
- timerId = setTimeout(repeat, options.interval * 1000);
718
- }
719
- }, 100);
720
- } catch (err) {
721
- log.silly("device#systemResource()#_getProcessResouceInfo()", "repeat timer. err:", err.toString());
722
- clearTimeout(timerId);
723
- // ignore timer logic error
724
- return next();
725
- }
726
- }
727
- }
728
-
729
- function _callProcessInfoCmd() {
730
- log.info("device#processResource()#_callProcessInfoCmd()");
731
-
732
- const wStream = new streamBuffers.WritableStreamBuffer();
733
- const cmd = 'date "+%Y-%m-%d %H:%M:%S"; grep "cpu *" /proc/stat | sed "1d" | awk \'{for (i=0;i<NR;i++){if (i==NR-1){totalSum+=$2+$3+$4+$5+$6+$7+$8+$9+$10+$11;idleSum+=$5}}} END { for (i=0;i<NR;i++){if (i==NR-1){print idleSum;print totalSum}}}\'; cat /proc/[0-9]*/stat; echo \'psList\' ; ps -ax | sed "1d" | awk \'/ /{print $1 "\t"$5}\'; echo \'serviceStringStart\'; ls /media/developer/apps/usr/palm/services ; echo \'serviceStringEnd\'; luna-send-pub -n 1 -f luna://com.webos.applicationManager/dev/running \'{}\'; grep -c ^processor /proc/cpuinfo';
734
- try {
735
- options.session.run(cmd, null, wStream, null, function(err) {
736
- if (err) {
737
- // do not print error message to user
738
- // when user press Ctrl + C , the ssh connection is not completed, it makes error
739
- log.silly("device#processResource()#_callProcessInfoCmd()", "ssh call. err:", err.toString());
740
- return next(null);
741
- } else {
742
- const result = wStream.getContentsAsString();
743
- _setProcessInfo(result);
744
- processGroup.initialExecution = false;
745
- }
746
- });
747
- } catch (err) {
748
- // do not print error message to user
749
- // when user press Ctrl + C , the ssh connection is not completed, it makes error
750
- log.silly("device#processResource()#_callProcessInfoCmd()", "in try-catch. err:", err.toString());
751
- return next(null);
752
- }
753
- }
754
-
755
- function _setProcessInfo(processData) {
756
- log.info("device#processResource()#_setProcessInfo()");
757
- const PROC_GROUP_INFO_PATTERN = /\s+/;
758
- try {
759
- // Intialize temporary groups with values
760
- const processList = ["Service", "System"],
761
- groupProcessList = [],
762
- tempProcGrps = {},
763
- arrActiveServices = [];
764
- // loop through all the categories and create groups
765
- for (let i = 0; i < processList.length; i++) {
766
- tempProcGrps[processList[i]] = {};
767
- tempProcGrps[processList[i]]["pid"] = 0;
768
- tempProcGrps[processList[i]]["cputime"] = 0;
769
- tempProcGrps[processList[i]]["RSS"] = 0;
770
- tempProcGrps[processList[i]]["pmem"] = 0;
771
- }
772
-
773
- const processinfo = [],
774
- groupProcessinfo = [], // only for dev app & service info
775
- allvalues = processData.split("\n"),
776
- otherList = [],
777
- date = allvalues[0],
778
- lastIndex = allvalues.length;
779
-
780
- allvalues.splice(lastIndex - 1, 1);
781
- const pcore = +allvalues[allvalues.length-1] * 100;
782
- /* memCol[1] from 'grep "MemTotal *" /proc/meminfo' is not used */
783
- let totalRAM = 0;
784
- const idleCPUtime = +allvalues[1],
785
- totalCPUtime = +allvalues[2],
786
- psListStartIndex = allvalues.indexOf("psList", 2),
787
- serviceStartIndex = allvalues.indexOf("serviceStringStart", 2), // from where to start (2)
788
- serviceEndIndex = allvalues.indexOf("serviceStringEnd", 2); // from where to start (2)
789
-
790
- const arryInstalledServices = [];
791
- for (let i = serviceStartIndex + 1; i < serviceEndIndex; i++) {
792
- arryInstalledServices[i-serviceStartIndex-1] = allvalues[i];
793
- }
794
-
795
- // get processid of external service on ps list
796
- let arrayCount = 0;
797
- for (let k = psListStartIndex+1 ; k < serviceStartIndex ;k++) {
798
- const columns = allvalues[k].trim().split(PROC_GROUP_INFO_PATTERN),
799
- pid = parseInt(columns[0]),
800
- procname = columns[1].trim();
801
-
802
- if (arryInstalledServices.indexOf(procname) !== -1) {
803
- const ObjService = {
804
- "processid": pid,
805
- "id": procname
806
- };
807
- arrActiveServices[arrayCount++] = ObjService;
808
- }
809
- }
810
-
811
- const appStartIndex = allvalues.indexOf("{", 2); // From where to start (2)
812
- // some times specific platform does not gives list of running info itself then appStartIndex becomes -1
813
- if (appStartIndex < 0) {
814
- // do not print error message to user
815
- // when user press Ctrl + C , the ssh cmd data is not completed, it makes error
816
- log.silly("device#processResource()#_setProcessInfo()", "running app list is invalid");
817
- return;
818
- }
819
- const appEndIndex = allvalues.length-1;
820
- let strActiveApps = "",
821
- objActiveApps;
822
- for (let i = appStartIndex; i < appEndIndex; i++) {
823
- strActiveApps += allvalues[i];
824
- }
825
- try {
826
- objActiveApps = JSON.parse(strActiveApps);
827
- } catch (err) {
828
- // do not print error message to user
829
- // when user press Ctrl + C , the ssh cmd data is not completed, it makes error
830
- log.silly("device#processResource()#_setProcessInfo()", "active app parsing. err:", err.toString());
831
- return;
832
- }
833
-
834
- if (objActiveApps.returnValue === false) {
835
- const errValue = objActiveApps["errorText"] || "running app list is invalid";
836
- return next(errHndl.getErrMsg("FAILED_CALL_LUNA", errValue, null, "com.webos.applicationManager"));
837
- }
838
-
839
- const arrActiveApps = objActiveApps["running"],
840
- groupObjList = {};
841
-
842
- // 1st row is date, 2nd row is total CPU time and last row is total RAM(Meminfo) hence ignore it
843
- // check process group info until "psList" string
844
- for (let k = 3; k < psListStartIndex; k++) {
845
- const columns = allvalues[k].trim().split(PROC_GROUP_INFO_PATTERN),
846
- procname = columns[1].trim().split(/.*\(|\)/gi)[1],
847
- grpname = _getProcessGrp(procname),
848
- pid = parseInt(columns[0]),
849
- pname = procname,
850
- ppid = parseInt(columns[3]),
851
- cputime = parseInt(columns[13]) + parseInt(columns[14]),
852
- rss = parseInt(columns[23]) * 4,
853
- pmem = (rss * 100);
854
- // sum total used RSS
855
- totalRAM += rss;
856
- if (grpname === "Other") {
857
- const objOther = {};
858
- objOther["pid"] = pid;
859
- objOther["pname"] = pname;
860
- objOther["ppid"] = ppid;
861
- objOther["cputime"] = cputime;
862
- objOther["RSS"] = rss;
863
- objOther["pmem"] = pmem;
864
- otherList.push(objOther);
865
- } else {
866
- tempProcGrps[grpname]["pid"] = pid;
867
- tempProcGrps[grpname]["cputime"] += cputime;
868
- tempProcGrps[grpname]["RSS"] += rss;
869
- tempProcGrps[grpname]["pmem"] += pmem;
870
- }
871
- }
872
- // get the Children of Service
873
- for (const k in tempProcGrps) {
874
- const attrName = k;
875
- if (attrName === "System") {
876
- continue;
877
- }
878
- const objOther = tempProcGrps[k];
879
- for (let i = 0; i < otherList.length; i++) {
880
- if (objOther["pid"] !== otherList[i]["ppid"]) {
881
- continue;
882
- }
883
- }
884
- }
885
-
886
- // this variable will mantain the aggregate pcpuVal of Service + dynamic apps
887
- let aggcpuVal = 0;
888
- // get the Web App processes data
889
- if (arrActiveApps.length === 0) {
890
- // get only the existing categories(3) if no running apps.
891
- // dispose all the existing process variables
892
- for (const name in processGroup) {
893
- // if propertyName starts with "prev_" then dispose it
894
- if (!Object.prototype.hasOwnProperty.call(processGroup, name)) {
895
- continue;
896
- }
897
- if (name.indexOf("prev_app_") >= 0) {
898
- processGroup[name] = undefined;
899
- }
900
- }
901
- } else {
902
- // loop through each of the running apps
903
- // in loop - Check if app is newly running app (or) already existing running app
904
- for (let j = 0; j < arrActiveApps.length; j++) {
905
- const objActApp = arrActiveApps[j],
906
- webprocId = objActApp["webprocessid"],
907
- procId = objActApp["processid"],
908
- displayId = objActApp["displayId"] || 0;
909
- let processId;
910
- if (webprocId !== "" && webprocId !== undefined && webprocId !== "undefined") {
911
- processId = webprocId;
912
- } else if (procId !== "" && procId !== undefined && procId !== "undefined") {
913
- processId = procId;
914
- } else {
915
- break;
916
- }
917
-
918
- const prevcpuTime = "prev_app_" + processId + "cputime",
919
- appid = parseInt(processId);
920
- let pcputime = 0;
921
- // get the cputime from otherList
922
- for (let l = 0; l < otherList.length; l++) {
923
- if (otherList[l]["pid"] !== appid) {
924
- continue;
925
- }
926
- pcputime = otherList[l]["cputime"];
927
- if (!processGroup[prevcpuTime]) {
928
- processGroup[prevcpuTime] = pcputime;
929
- break;
930
- }
931
- let webpcpuval = ((pcputime - processGroup[prevcpuTime]) * 100/(totalCPUtime - processGroup.prevTotalcputime));
932
- // restrict showing the negative % values by making lowest to be zero.
933
- if (webpcpuval < 0 || webpcpuval === undefined || isNaN(webpcpuval)) webpcpuval = 0;
934
- aggcpuVal += webpcpuval;
935
- const groupListAppKey = objActApp["id"]+ "-" + appid;
936
- groupObjList[groupListAppKey] = {
937
- "id": objActApp["id"],
938
- "pid": appid,
939
- "cpu": webpcpuval,
940
- "memory": {
941
- "size": otherList[l]["RSS"],
942
- "percent": otherList[l]["pmem"].toFixed(2)
943
- },
944
- "displayId": displayId
945
- };
946
- processGroup[prevcpuTime] = pcputime;
947
- otherList.splice(l, 1);
948
- break;
949
- }
950
- }
951
- }
952
- // get the service processes data
953
- if (arrActiveServices.length === 0) {
954
- // get only the existing categories(3) if no running apps.
955
- // dispose all the existing process variables
956
- for (const name in processGroup) {
957
- // if propertyName starts with "prev_" then dispose it
958
- if (!Object.prototype.hasOwnProperty.call(processGroup, name)) {
959
- continue;
960
- }
961
- if (name.indexOf("prev_svc_") >= 0) {
962
- processGroup[name] = undefined;
963
- }
964
- }
965
- } else {
966
- // loop through each of the running apps
967
- // in loop - Check if app is newly running app (or) already existing running app
968
- for (let j = 0; j < arrActiveServices.length; j++) {
969
- const objActService = arrActiveServices[j],
970
- processId = objActService["processid"],
971
- prevcpuTime = "prev_svc_" + processId + "cputime",
972
- appid = parseInt(processId);
973
- let pcputime = 0;
974
- // get the cputime from otherList
975
- for (let l = 0; l < otherList.length; l++) {
976
- if (otherList[l]["pid"] !== appid) {
977
- continue;
978
- }
979
- pcputime = otherList[l]["cputime"];
980
- if (!processGroup[prevcpuTime]) {
981
- processGroup[prevcpuTime] = pcputime;
982
- break;
983
- }
984
- let svcpcpuval = ((pcputime - processGroup[prevcpuTime]) * 100/(totalCPUtime - processGroup.prevTotalcputime));
985
- // restrict showing the negative % values by making lowest to be zero.
986
- if (svcpcpuval < 0 || svcpcpuval === undefined || isNaN(svcpcpuval)) svcpcpuval = 0;
987
- aggcpuVal+= svcpcpuval;
988
- groupObjList[objActService["id"]] = {
989
- "pid": appid,
990
- "cpu": svcpcpuval,
991
- "memory": {
992
- "size": otherList[l]["RSS"],
993
- "percent": otherList[l]["pmem"].toFixed(2)
994
- }
995
- };
996
- processGroup[prevcpuTime] = pcputime;
997
- otherList.splice(l, 1);
998
- break;
999
- }
1000
- }
1001
- }
1002
- // get the remaining System Category processes
1003
- for (let i = 0; i < otherList.length; i++) {
1004
- tempProcGrps["System"]["pid"] = otherList[i]["pid"];
1005
- tempProcGrps["System"]["cputime"]+= otherList[i]["cputime"];
1006
- tempProcGrps["System"]["RSS"]+= otherList[i]["RSS"];
1007
- tempProcGrps["System"]["pmem"]+= otherList[i]["pmem"];
1008
- }
1009
- if (!processGroup.initialExecution) {
1010
- const diffIdle = idleCPUtime - processGroup.prevIdlecputime,
1011
- diffTotal = totalCPUtime - processGroup.prevTotalcputime,
1012
- overallCpuOccupation = ((diffTotal - diffIdle)/diffTotal) * 100;
1013
- // assign all the values to return Object
1014
- for (const key in tempProcGrps) {
1015
- const processName = key;
1016
- let tempPcpuval = 0;
1017
- if (processName === "Service") {
1018
- tempPcpuval = ((tempProcGrps[processName]["cputime"] - processGroup.prevServicecputime) * 100/diffTotal);
1019
- }
1020
- // restrict showing the negative % values by making lowest to be zero.
1021
- if (tempPcpuval < 0 || tempPcpuval === undefined || isNaN(tempPcpuval)) tempPcpuval = 0;
1022
- aggcpuVal += tempPcpuval;
1023
- // system = overallCpuOccupation - (Service used + dynamic apps used);
1024
- if (processName === "System") {
1025
- tempPcpuval = overallCpuOccupation - aggcpuVal;
1026
- }
1027
- // restrict Negative/peak values due to cores fluctuation
1028
- tempPcpuval < 0 ? (tempPcpuval = 0) : tempPcpuval;
1029
- tempPcpuval > pcore ? (tempPcpuval = pcore) : tempPcpuval;
1030
- tempProcGrps[processName]["pmem"] /= totalRAM;
1031
- const procinfo = {
1032
- "pid": tempProcGrps[processName]["pid"],
1033
- "appid": processName,
1034
- "cpu": parseFloat(tempPcpuval.toFixed(2)),
1035
- "memory": {
1036
- "size": tempProcGrps[processName]["RSS"],
1037
- "percent": tempProcGrps[processName]["pmem"].toFixed(2)
1038
- }
1039
- };
1040
- processinfo.push(procinfo);
1041
- }
1042
- // push the calculated groups into list
1043
- for (const propertyName in groupObjList) {
1044
- if (!Object.prototype.hasOwnProperty.call(groupObjList, propertyName)) {
1045
- continue;
1046
- }
1047
-
1048
- const procObj = groupObjList[propertyName];
1049
- let pcpuval = parseFloat(procObj["cpu"].toFixed(2));
1050
- if (pcpuval === undefined || isNaN(pcpuval)) {
1051
- pcpuval = 0;
1052
- }
1053
- procObj["memory"]["percent"] /= totalRAM;
1054
- const procinfo = {
1055
- "pid": procObj["pid"],
1056
- "appid": procObj["id"] || propertyName,
1057
- "cpu": pcpuval,
1058
- "memory": {
1059
- "size": procObj["memory"]["size"],
1060
- "percent": parseFloat(procObj["memory"]["percent"]).toFixed(2)
1061
- },
1062
- "displayId": procObj["displayId"]
1063
- };
1064
-
1065
- processinfo.push(procinfo);
1066
- // copy only app and service info to group for printing
1067
- groupProcessinfo.push(procinfo);
1068
-
1069
- if (processinfo.indexOf(propertyName) < 0) {
1070
- processList.push(propertyName);
1071
- groupProcessList.push(propertyName);
1072
- }
1073
- }
1074
- }
1075
- processGroup.prevIdlecputime = idleCPUtime;
1076
- processGroup.prevTotalcputime = totalCPUtime;
1077
- processGroup.prevServicecputime = tempProcGrps["Service"]["cputime"];
1078
-
1079
- if (!processGroup.initialExecution) {
1080
- const processgrpinfo = {
1081
- "date": date,
1082
- "processinfo": groupProcessinfo,
1083
- "processList": groupProcessList
1084
- };
1085
- _printProcessList(processgrpinfo);
1086
- }
1087
- } catch (err) {
1088
- // do not print error message to user
1089
- // when user press Ctrl + C , the ssh cmd data is not completed, it makes error
1090
- log.silly("device#processResource()#_setProcessInfo()", "in try-catch. err:", err.toString());
1091
- return;
1092
- }
1093
- }
1094
-
1095
- function _getProcessGrp(pname) {
1096
- let group;
1097
- switch (pname) {
1098
- case 'ls-hubd':
1099
- group = 'Service'; break;
1100
- default:
1101
- group = 'Other'; // it could be children of above categories or System
1102
- }
1103
- return group;
1104
- }
1105
-
1106
- function _printProcessList(processgrpinfo) {
1107
- log.info("device#processResource()#_printProcessList()", JSON.stringify(processgrpinfo));
1108
-
1109
- const processinfo = processgrpinfo.processinfo,
1110
- processinfoTable = new Table();
1111
-
1112
- let found = false;
1113
- if (options.id) {
1114
- processinfo.forEach(function(process) {
1115
- if (options.id === process.appid) {
1116
- found = true;
1117
- }
1118
- });
1119
- if (found === false) {
1120
- // print guide message to user
1121
- console.log("<" + options.id + ">" + " is not running. Please launch the app or service.");
1122
- return;
1123
- }
1124
- }
1125
- if (processgrpinfo.processList.length === 0) {
1126
- // print guide message to user
1127
- console.log("There are no running apps or services. Please launch any app or service.");
1128
- return;
1129
- }
1130
-
1131
- // add process list to table
1132
- const dataForCSV = [];
1133
- if (Array.isArray(processinfo)) {
1134
- processinfo.forEach(function(process) {
1135
- // if user gives ID, print only the ID's information
1136
- if (options.id && options.id !== process.appid) {
1137
- return;
1138
- }
1139
- processinfoTable.cell('PID', process.pid);
1140
- processinfoTable.cell('ID', process.appid);
1141
- processinfoTable.cell('DISPLAY ID', process.displayId);
1142
- processinfoTable.cell('CPU(%)', process.cpu);
1143
-
1144
- const meminfo = process.memory;
1145
- processinfoTable.cell('MEMORY(%)', meminfo.percent);
1146
- processinfoTable.cell('MEMORY(KB)', meminfo.size);
1147
- processinfoTable.newRow();
1148
-
1149
- // add data object
1150
- const obj = {
1151
- time: processgrpinfo.date,
1152
- pid: process.pid,
1153
- id: process.appid,
1154
- displayId: process.displayId,
1155
- cpu: process.cpu,
1156
- memory: meminfo.percent,
1157
- memory_size: meminfo.size
1158
- };
1159
- dataForCSV.push(obj);
1160
- });
1161
- }
1162
- // write CSV file if user gives --save option
1163
- if (options.save && options.csvPath) {
1164
- // write csv file
1165
- // when openMode is false, the new csv file will be created and "Header" add to the file
1166
- let openMode = false;
1167
- if (fs.existsSync(options.csvPath)) {
1168
- openMode = true;
1169
- }
1170
- const csvWriter = createCsvWriter({
1171
- path: options.csvPath,
1172
- header: [
1173
- {id: 'time', title: 'TIME'},
1174
- {id: 'pid', title: 'PID'},
1175
- {id: 'id', title: 'ID'},
1176
- {id: 'displayId', title: 'DISPLAY ID'},
1177
- {id: 'cpu', title: 'CPU(%)'},
1178
- {id: 'memory', title: 'MEMORY(%)'},
1179
- {id: 'memory_size', title: 'MEMORY(KB)'}
1180
- ],
1181
- append: openMode
1182
- });
1183
-
1184
- csvWriter
1185
- .writeRecords(dataForCSV)
1186
- .then(function() {
1187
- log.silly("device#processResource()#_printProcessList()", "CSV file updated");
1188
- // csv file has been created at first
1189
- if (openMode === false) {
1190
- const resultTxt = "Create " + chalk.green(options.fileName) + " to " + options.destinationPath;
1191
- console.log(resultTxt);
1192
- }
1193
- __printTable();
1194
- }).catch(function(err) {
1195
- return setImmediate(next, errHndl.getErrMsg(err));
1196
- });
1197
- } else {
1198
- __printTable();
1199
- }
1200
-
1201
- function __printTable() {
1202
- // Print resullt to terminal
1203
- console.log(processgrpinfo.date + "\n");
1204
- console.log(processinfoTable.toString());
1205
- console.log("======================================================================");
1206
- }
1207
- }
1208
- },
1209
- /**
1210
- * get screen capture of the given device
1211
- * @property options {String} device, display, outputPath
1212
- */
1213
- captureScreen: function(options, next) {
1214
- if (typeof next !== 'function') {
1215
- throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
1216
- }
1217
- options = options || {};
1218
- async.series([
1219
- _makeSession,
1220
- _makeCaptureOption,
1221
- _captureScreenFile,
1222
- _copyFileToLocal
1223
- ], function(err, results) {
1224
- log.silly("device#captureScreen()", "err:", err, ", results:", results);
1225
- const resultTxt = "Create " + chalk.green(options.captureFileName) + " to " + options.destinationPath +"\nSuccess";
1226
-
1227
- // clean up /tmp/aresCapture directory in target device
1228
- if (options.createdTmpDir) {
1229
- _removeTmpDir(function finish(removeErr) {
1230
- next(err ? err : removeErr, {msg: resultTxt});
1231
- });
1232
- } else {
1233
- next(err, {msg: resultTxt});
1234
- }
1235
- });
1236
-
1237
- function _makeSession(next) {
1238
- makeSession(options, next);
1239
- }
1240
-
1241
- function _makeCaptureOption(next) {
1242
- log.info("device#captureScreen()#_makeCaptureOption()");
1243
-
1244
- const captureFormat = "PNG", // PNG is default format
1245
- fileNameSeperator = "_";
1246
-
1247
- let captureFileName = options.session.target.name + "_" + "display" + options.display + "_",
1248
- destinationPath = "";
1249
-
1250
- if (options.outputPath === null) {
1251
- captureFileName += createDateFileName(fileNameSeperator, captureFormat.toLowerCase());
1252
- destinationPath = path.resolve('.');
1253
- } else {
1254
- // get directory path, file path, file Extenstion from given path
1255
- const parseDirPath = path.dirname(options.outputPath),
1256
- parseBase = path.parse(options.outputPath).base;
1257
-
1258
- let parseExt = path.parse(options.outputPath).ext;
1259
-
1260
- parseExt = parseExt.split('.').pop();
1261
- log.info("device#captureScreen()#_makeCaptureOption()" + "dir name:" + parseDirPath
1262
- + " ,file name:" + parseBase + " ,inputFormat:" + parseExt);
1263
-
1264
- // if specific path is given
1265
- if (parseBase) {
1266
- captureFileName = parseBase;
1267
- destinationPath = path.resolve(parseDirPath);
1268
- // parseBase is [filename].[ext] format
1269
- if (parseExt === "") {
1270
- // paresBase does not have file extesntion, add .png format
1271
- captureFileName += "." + captureFormat.toLowerCase();
1272
- } else if (parseExt !== "png" && parseExt !== "bmp" && parseExt !== "jpg") {
1273
- return next(errHndl.getErrMsg("INVALID_CAPTURE_FORMAT"));
1274
- }
1275
- } else if (parseDirPath) {
1276
- // the path has only "directory" without parseBase
1277
- // for example, "ares-device -c /"
1278
- captureFileName = createDateFileName(fileNameSeperator, captureFormat.toLowerCase());
1279
- destinationPath = path.resolve(parseDirPath);
1280
- }
1281
- }
1282
-
1283
- options.captureFormat = captureFormat;
1284
- options.captureFileName = captureFileName;
1285
- options.captureDirPath = "/tmp/aresCapture/";
1286
- options.sourcePath = options.captureDirPath + captureFileName;
1287
- options.destinationPath = destinationPath;
1288
- options.ignore = true;
1289
- options.silent = true;
1290
-
1291
- next();
1292
- }
1293
-
1294
- function _captureScreenFile(next) {
1295
- log.info("device#captureScreen()#_captureScreenFile()");
1296
- const cmd = "/bin/mkdir -p " + options.captureDirPath + " && chmod 777 " + options.captureDirPath;
1297
- options.session.run(cmd, null, null, null, function(err) {
1298
- if (err) {
1299
- return setImmediate(next, err);
1300
- } else {
1301
- options.createdTmpDir = true;
1302
- const target = options.session.getDevice(),
1303
- addr = target.lunaAddr.captureCompositorOutput,
1304
- param = {
1305
- // luna param
1306
- subscribe: false,
1307
- output: options.sourcePath,
1308
- format: options.captureFormat,
1309
- displayId: options.display
1310
- };
1311
-
1312
- luna.send(options, addr, param, function(lineObj, next) {
1313
- if (lineObj.returnValue) {
1314
- log.verbose("device#captureScreen()#_captureScreenFile()","Capture file in target:" + lineObj.output);
1315
- next(null, {});
1316
- } else {
1317
- log.verbose("device#captureScreen()#_captureScreenFile()", "failure");
1318
- next(errHndl.getErrMsg("INVALID_OBJECT"));
1319
- }
1320
- }, next);
1321
- }
1322
- });
1323
- }
1324
-
1325
- function _copyFileToLocal(next) {
1326
- log.info("device#captureScreen()#_copyFileToLocal()");
1327
- pullLib.pull(options.sourcePath, options.destinationPath, options, next);
1328
- }
1329
-
1330
- function _removeTmpDir(next) {
1331
- log.info("device#captureScreen()#_removeTmpDir()");
1332
- const cmd = '/bin/rm -rf ' + options.captureDirPath;
1333
- options.session.run(cmd, null, null, null, function(err) {
1334
- if (err) {
1335
- return setImmediate(next, err);
1336
- } else {
1337
- next();
1338
- }
1339
- });
1340
- }
1341
- }
1342
- };
1343
-
1344
- function makeSession(options, next) {
1345
- options.nReplies = 1; // -n 1
1346
- if (!options.session) {
1347
- log.info("device#makeSession()", "need to make new session");
1348
- const printTarget = true;
1349
- options.session = new novacom.Session(options.device, printTarget, next);
1350
- } else {
1351
- log.info("device#makeSession()", "already exist session");
1352
- next();
1353
- }
1354
- }
1355
-
1356
- function makeCSVOutputPath(options, next) {
1357
- const csvFormat = "csv", // csv is default format
1358
- fileNameSeperator = "_";
1359
-
1360
- if (options.outputPath === null) {
1361
- options.fileName = createDateFileName(fileNameSeperator, csvFormat);
1362
- options.destinationPath = path.resolve('.');
1363
- } else {
1364
- // get directory path, file path, file Extenstion from given path
1365
- const parseDirPath = path.dirname(options.outputPath),
1366
- parseBase = path.parse(options.outputPath).base;
1367
-
1368
- let parseExt = path.parse(options.outputPath).ext;
1369
-
1370
- parseExt = parseExt.split('.').pop();
1371
- log.info("device#captureScreen()#_makeCaptureOption()" + "dir name:" + parseDirPath
1372
- + " ,file name:" + parseBase + " ,inputFormat:" + parseExt);
1373
-
1374
- // if specific path is given
1375
- if (parseBase) {
1376
- options.fileName = parseBase;
1377
- options.destinationPath = path.resolve(parseDirPath);
1378
- // parseBase is [filename].[ext] format
1379
- if (parseExt === "") {
1380
- // paresBase does not have file extesntion, add .png format
1381
- options.fileName += "." + csvFormat;
1382
- } else if (parseExt !== csvFormat) {
1383
- return next(errHndl.getErrMsg("INVALID_CSV_FORMAT"));
1384
- }
1385
- } else if (parseDirPath) {
1386
- // the path has only "directory" without parseBase
1387
- // for example, "ares-device -r -s /"
1388
- options.fileName = createDateFileName(fileNameSeperator, csvFormat);
1389
- options.destinationPath = path.resolve(parseDirPath);
1390
- }
1391
- }
1392
-
1393
- options.csvPath = path.resolve(options.destinationPath, options.fileName);
1394
- log.verbose("device#makeCSVOutputPath()", "csvPath:", options.csvPath);
1395
-
1396
- fs.open(options.csvPath, 'w', function(err, fd) {
1397
- if (err) {
1398
- return next(errHndl.getErrMsg(err));
1399
- }
1400
- fs.close(fd, function(error) {
1401
- if (error) {
1402
- return next(errHndl.getErrMsg(error));
1403
- }
1404
- log.verbose("device#makeCSVOutputPath()", options.csvPath + " is closed");
1405
-
1406
- // Defense code
1407
- if (fs.existsSync(options.csvPath)) {
1408
- fs.unlinkSync(options.csvPath);
1409
- }
1410
- log.verbose("device#makeCSVOutputPath()", options.csvPath + " is exist: " + fs.existsSync(options.csvPath));
1411
- next();
1412
- });
1413
- });
1414
- }
1415
-
1416
- if (typeof module !== 'undefined' && module.exports) {
1417
- module.exports = device;
1418
- }
1419
- }());
1
+ /*
2
+ * Copyright (c) 2020-2024 LG Electronics Inc.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ const async = require('async'),
8
+ chalk = require('chalk'),
9
+ createCsvWriter = require('csv-writer').createObjectCsvWriter,
10
+ fs = require('fs'),
11
+ npmlog = require('npmlog'),
12
+ path = require('path'),
13
+ streamBuffers = require('stream-buffers'),
14
+ Table = require('easy-table'),
15
+ util = require('util'),
16
+ pullLib = require('./pull'),
17
+ errHndl = require('./base/error-handler'),
18
+ luna = require('./base/luna'),
19
+ novacom = require('./base/novacom'),
20
+ createDateFileName = require('./util/createFileName').createDateFileName,
21
+ convertJsonToList = require('./util/json').convertJsonToList;
22
+
23
+ (function() {
24
+ const log = npmlog;
25
+ log.heading = 'device';
26
+ log.level = 'warn';
27
+
28
+ const device = {
29
+
30
+ /**
31
+ * @property {Object} log an npm log instance
32
+ */
33
+ log: log,
34
+
35
+ /**
36
+ * Print system information of the given device
37
+ * @property options {String} device the device to connect to
38
+ */
39
+ systemInfo: function(options, next) {
40
+ if (typeof next !== 'function') {
41
+ throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
42
+ }
43
+ options = options || {};
44
+ async.series([
45
+ _makeSession,
46
+ _getOsInfo,
47
+ _getDeviceInfo,
48
+ _getChromiumVersion,
49
+ _getQtbaseVersion,
50
+ _getSoftwareInfo
51
+ ], function(err, results) {
52
+ log.silly("device#systemInfo()", "err:", err, ", results:", results);
53
+ let resultTxt = "";
54
+ for (let i = 1; i < results.length; i++) {
55
+ resultTxt += results[i] + "\n";
56
+ }
57
+ next(err, {msg: resultTxt.trim()});
58
+ });
59
+
60
+ function _makeSession(next) {
61
+ makeSession(options, next);
62
+ }
63
+
64
+ function _getOsInfo(next) {
65
+ log.info("device#systemInfo()#_getOsInfo()");
66
+ const target = options.session.getDevice(),
67
+ addr = target.lunaAddr.osInfo,
68
+ param = {
69
+ // luna param
70
+ parameters:["webos_build_id","webos_imagename","webos_name","webos_release",
71
+ "webos_manufacturing_version", "core_os_kernel_version"],
72
+ subscribe: false
73
+ };
74
+
75
+ luna.send(options, addr, param, function(lineObj, next) {
76
+ const resultValue = lineObj;
77
+
78
+ if (resultValue.returnValue) {
79
+ log.verbose("device#systemInfo()#_getOsInfo()", "success");
80
+ delete resultValue.returnValue; // remove unnecessary data
81
+ next(null, _makeReturnTxt(resultValue));
82
+ } else {
83
+ log.verbose("device#systemInfo()#_getOsInfo()", "failure");
84
+ next(errHndl.getErrMsg("INVALID_OBJECT"));
85
+ }
86
+ }, next);
87
+ }
88
+
89
+ function _getDeviceInfo(next) {
90
+ log.info("device#systemInfo()#_getDeviceInfo()");
91
+ const target = options.session.getDevice(),
92
+ addr = target.lunaAddr.deviceInfo,
93
+ param = {
94
+ // luna param
95
+ subscribe: false
96
+ };
97
+
98
+ luna.send(options, addr, param, function(lineObj, next) {
99
+ const resultValue = lineObj,
100
+ returnObj ={};
101
+
102
+ if (resultValue.returnValue) {
103
+ log.verbose("device#systemInfo()#_getDeviceInfo()", "success");
104
+ returnObj.device_name = resultValue.device_name;
105
+ returnObj.device_id = resultValue.device_id;
106
+ next(null, _makeReturnTxt(returnObj));
107
+ } else {
108
+ log.verbose("device#systemInfo()#_getDeviceInfo()", "failure");
109
+ next(errHndl.getErrMsg("INVALID_OBJECT"));
110
+ }
111
+ }, next);
112
+ }
113
+
114
+ function _getChromiumVersion(next) {
115
+ log.info("device#systemInfo()#_getChromiumInfo()");
116
+
117
+ // opkg is required permission as root.
118
+ if (options.session.getDevice().username !== 'root') {
119
+ return next(null, "chromium_version : " + "not supported");
120
+ } else {
121
+ const cmd = '/usr/bin/opkg list-installed webruntime*';
122
+ options.session.run(cmd, null, __data, null, function(err) {
123
+ if (err) {
124
+ return next(err);
125
+ }
126
+ });
127
+ }
128
+ function __data(data) {
129
+ const str = (Buffer.isBuffer(data)) ? data.toString() : data,
130
+ exp = /\d*\.\d*\.\d*\.\d*/,
131
+ version = str.match(exp);
132
+
133
+ next(null, "chromium_version : " + version);
134
+ }
135
+ }
136
+
137
+ function _getQtbaseVersion(next) {
138
+ log.info("device#systemInfo()#_getQtbaseInfo()");
139
+
140
+ // opkg is required permission as root.
141
+ if (options.session.getDevice().username !== 'root') {
142
+ return next(null, "qt_version : " + "not supported");
143
+ } else {
144
+ const cmd = '/usr/bin/opkg list-installed qtbase';
145
+ options.session.run(cmd, null, __data, null, function(err) {
146
+ if (err) {
147
+ return next(err);
148
+ }
149
+ });
150
+ }
151
+ function __data(data) {
152
+ const str = (Buffer.isBuffer(data)) ? data.toString() : data,
153
+ exp = /\d*\.\d*\.\d*/,
154
+ version = str.match(exp);
155
+ next(null, "qt_version : " + version);
156
+ }
157
+ }
158
+
159
+ function _getSoftwareInfo(next) {
160
+ log.info("device#systemInfo#_getSoftwareInfo()");
161
+ const target = options.session.getDevice(),
162
+ addr = target.lunaAddr.softwareInfo,
163
+ param = {
164
+ parameters: ["nodejs_versions"]
165
+ };
166
+
167
+ luna.sendWithoutErrorHandle(options, addr, param, function(lineObj, next) {
168
+ log.silly("device#systemInfo#_getSoftwareInfo():", "lineObj:", lineObj);
169
+
170
+ const resultValue = lineObj,
171
+ returnObj ={};
172
+
173
+ if (resultValue.returnValue) {
174
+ log.verbose("device#systemInfo#_getSoftwareInfo():", "success");
175
+ returnObj.nodejs_versions = resultValue.nodejs_versions;
176
+ next(null, _makeReturnTxt(returnObj));
177
+ } else {
178
+ // handle if the target device does not support softwareInfo/query
179
+ return next(null, "nodejs_versions : " + "not supported");
180
+ }
181
+ }, next);
182
+ }
183
+
184
+ function _makeReturnTxt(resultValue) {
185
+ let returnTxt = "";
186
+
187
+ for (const key in resultValue) {
188
+ if (resultValue[key] === undefined) {
189
+ resultValue[key] = "(unknown)";
190
+ }
191
+ returnTxt += key + " : " + resultValue[key] + "\n";
192
+ }
193
+ return returnTxt.trim();
194
+ }
195
+ },
196
+ /**
197
+ * Print session information of the given device
198
+ * @property options {String} device the device to connect to
199
+ */
200
+ sessionInfo: function(options, next) {
201
+ if (typeof next !== 'function') {
202
+ throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
203
+ }
204
+ options = options || {};
205
+ async.series([
206
+ _makeSession,
207
+ _getSessionList
208
+ ], function(err, results) {
209
+ log.silly("device#sessionInfo()", "err:", err, ", results:", results);
210
+ let resultTxt = "";
211
+
212
+ if (results[1] !== undefined) {
213
+ if (typeof results[1] === "object") {
214
+ if (results[1].length === 0) {
215
+ return next(errHndl.getErrMsg("SELECT_PROFILE"));
216
+ }
217
+ for (let i = 0; i < results[1].length; i++) {
218
+ resultTxt += convertJsonToList(results[1][i], 0) + '\n';
219
+ }
220
+ } else {
221
+ resultTxt = results[1];
222
+ }
223
+ }
224
+ next(err, {msg: resultTxt.trim()});
225
+ });
226
+
227
+ function _makeSession(next) {
228
+ makeSession(options, next);
229
+ }
230
+
231
+ function _getSessionList(next) {
232
+ log.info("device#sessionInfo#_getSessionList()");
233
+ const target = options.session.getDevice(),
234
+ addr = target.lunaAddr.getSessionList,
235
+ param = {
236
+ // luna param
237
+ subscribe: false
238
+ };
239
+
240
+ luna.send(options, addr, param, function(lineObj, next) {
241
+ if (lineObj.returnValue) {
242
+ log.verbose("device#sessionInfo()#_getSessionList()", "success");
243
+ next(null, lineObj.sessionList);
244
+ } else {
245
+ log.verbose("device#sessionInfo()#_getSessionList()", "failure");
246
+ next(errHndl.getErrMsg("INVALID_OBJECT"));
247
+ }
248
+ }, next);
249
+ }
250
+ },
251
+ /**
252
+ * Print system information of the given device
253
+ * @property options {String} device the device to connect to
254
+ */
255
+ tvSystemInfo: function(options, next) {
256
+ if (typeof next !== 'function') {
257
+ throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
258
+ }
259
+ options = options || {};
260
+ async.series([
261
+ _makeSession,
262
+ _getSystemInfo,
263
+ ], function(err, results) {
264
+ log.silly("device#tvSystemInfo()", "err:", err, ", results:", results);
265
+ next(err, {msg: results[1]});
266
+ });
267
+
268
+ function _makeSession(next) {
269
+ makeSession(options, next);
270
+ }
271
+
272
+ function _getSystemInfo(next) {
273
+ log.info("device#tvSystemInfo#_getSystemInfo()");
274
+ const target = options.session.getDevice(),
275
+ addr = target.lunaAddr.deviceInfoSystem,
276
+ param = {
277
+ // luna param
278
+ keys: ["modelName", "sdkVersion", "firmwareVersion", "boardType", "otaId"],
279
+ subscribe: false
280
+ };
281
+
282
+ luna.sendWithoutErrorHandle(options, addr, param, function (lineObj, next) {
283
+ if (lineObj) {
284
+ log.verbose("deviceInfo#systemInfo#_getSystemInfo():", "success");
285
+ next(null, __makeReturnObj(lineObj, param.keys));
286
+ } else {
287
+ next(errHndl.getErrMsg("INVALID_OBJECT"));
288
+ }
289
+ }, next);
290
+ }
291
+
292
+ function __makeReturnObj(resultValue, paramkey) {
293
+ let returnTxt = "";
294
+
295
+ for (const key in paramkey) {
296
+ if (Object.hasOwnProperty.call(resultValue, paramkey[key]))
297
+ returnTxt += paramkey[key] + " : " + resultValue[paramkey[key]] + "\n";
298
+ }
299
+ log.verbose("deviceInfo#systemInfo#__makeReturnObj():", returnTxt);
300
+ return returnTxt.trim();
301
+ }
302
+ },
303
+ /**
304
+ * Get all CPUs and memories usage of target device
305
+ * @property options {String} device, interval
306
+ */
307
+ systemResource: function(options, next) {
308
+ if (typeof next !== 'function') {
309
+ throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
310
+ }
311
+ const systemGroup = {};
312
+ systemGroup.initialExecution = true;
313
+ options = options || {};
314
+ options.destinationPath = "";
315
+ options.fileName = "";
316
+ options.csvPath = "";
317
+ async.series([
318
+ _createOutputPath,
319
+ _makeSession,
320
+ _getSystemResouceInfo
321
+ ], function(err, results) {
322
+ log.silly("device#systemResource()", "err:", err, ", results:", results);
323
+ next(err);
324
+ });
325
+
326
+ function _createOutputPath(next) {
327
+ if (options.save && options.csvPath === "") {
328
+ makeCSVOutputPath(options, next);
329
+ } else {
330
+ next();
331
+ }
332
+ }
333
+
334
+ function _makeSession(next) {
335
+ makeSession(options, next);
336
+ }
337
+
338
+ function _getSystemResouceInfo(next) {
339
+ log.info("device#systemResource()#_getSystemResouceInfo()");
340
+
341
+ let timerId;
342
+ if (!options.interval) {
343
+ // If interval option is not given, call timer logic 2 times
344
+ const defaultRepeat = 2;
345
+ let repeatCount = 0;
346
+ try {
347
+ timerId = setTimeout(function repeat() {
348
+ if (repeatCount < defaultRepeat) {
349
+ _callSystemResourceInfoCmd();
350
+ repeatCount++;
351
+ timerId = setTimeout(repeat, 1000);
352
+ } else {
353
+ clearTimeout(timerId);
354
+ return next();
355
+ }
356
+ }, 100);
357
+ } catch (err) {
358
+ log.silly("device#systemResource()#_getSystemResouceInfo()", "one timer. err:", err.toString());
359
+ clearTimeout(timerId);
360
+ // ignore timer logic error
361
+ return next();
362
+ }
363
+ } else {
364
+ try {
365
+ // when interval option is given, print initial data at first
366
+ const defaultRepeat = 1;
367
+ let repeatCount = 0;
368
+ timerId = setTimeout(function repeat() {
369
+ if (repeatCount < defaultRepeat) {
370
+ _callSystemResourceInfoCmd();
371
+ repeatCount++;
372
+ timerId = setTimeout(repeat, 1000);
373
+ } else {
374
+ _callSystemResourceInfoCmd();
375
+ timerId = setTimeout(repeat, options.interval * 1000);
376
+ }
377
+ }, 100);
378
+ } catch (err) {
379
+ log.silly("device#systemResource()#_getSystemResouceInfo()", "repeat timer. err:", err.toString());
380
+ clearTimeout(timerId);
381
+ // ignore timer logic error
382
+ return next();
383
+ }
384
+ }
385
+ }
386
+
387
+ function _callSystemResourceInfoCmd() {
388
+ log.info("device#systemResource()#_callSystemResourceInfoCmd()");
389
+
390
+ const wStream = new streamBuffers.WritableStreamBuffer();
391
+ const cmd = 'date "+%Y-%m-%d %H:%M:%S"; grep -c ^processor /proc/cpuinfo; grep "cpu *" /proc/stat; free -k';
392
+ try {
393
+ options.session.run(cmd, null, wStream, null, function(err) {
394
+ if (err) {
395
+ // do not print error message to user
396
+ // when user press Ctrl + C , the ssh connection is not completed, it makes error
397
+ log.silly("device#systemResource()#_callSystemResourceInfoCmd()", "ssh call. err:"+ err.toString());
398
+ return next();
399
+ } else {
400
+ const result = wStream.getContentsAsString();
401
+ _setSystemResouceInfo(result);
402
+ systemGroup.initialExecution = false;
403
+ }
404
+ });
405
+ } catch (err) {
406
+ // do not print error message to user
407
+ // when user press Ctrl + C , the ssh connection is not completed, it makes error
408
+ log.silly("device#systemResource()#_callSystemResourceInfoCmd()", "in try-catch. err:", err.toString());
409
+ return next();
410
+ }
411
+ }
412
+
413
+ function _setSystemResouceInfo(systemData) {
414
+ log.info("device#systemResource()#_callSystemResourceInfoCmd()");
415
+
416
+ const CPU_PATTERN = /\s+/,
417
+ cpuinfo = {},
418
+ meminfo = {};
419
+ let sysinfo = {};
420
+ try {
421
+ const allvalues = systemData.split("\n"),
422
+ date = allvalues[0], // Setup date
423
+ pcore = +allvalues[1] * 100;
424
+ let index,
425
+ columns,
426
+ isBuff_Cached = false; // This is to check the format version of kernel to find system memory parameter
427
+ for (index = 2; index < (allvalues.length - 1); index++) {
428
+ columns = allvalues[index].split(CPU_PATTERN);
429
+ // setup CPU information
430
+ if (columns[0].indexOf("cpu") === 0) {
431
+ const prevTotal = "prev" + columns[0] + "Total",
432
+ prevIdle = "prev" + columns[0] + "Idle",
433
+ prevUser = "prev" + columns[0] + "User",
434
+ prevkernel = "prev" + columns[0] + "Kernel",
435
+ prevOther = "prev" + columns[0] + "Other";
436
+ if (!systemGroup[prevTotal]) {
437
+ systemGroup[prevTotal] = 0;
438
+ systemGroup[prevIdle] = 0;
439
+ systemGroup[prevUser] = 0;
440
+ systemGroup[prevkernel] = 0;
441
+ systemGroup[prevOther] = 0;
442
+ }
443
+ const user = parseInt(columns[1]),
444
+ nice = parseInt(columns[2]),
445
+ kernel = parseInt(columns[3]),
446
+ idle = parseInt(columns[4]),
447
+ other = nice + parseInt(columns[5]) + parseInt(columns[6]) + parseInt(columns[7]) + parseInt(columns[8]) +
448
+ parseInt(columns[9]) + parseInt(columns[10]),
449
+ subTotal = user + nice + kernel + idle + other;
450
+
451
+ if (!systemGroup.initialExecution) {
452
+ const diffIdle = idle - systemGroup[prevIdle],
453
+ diffUser = user - systemGroup[prevUser],
454
+ diffKernel = kernel - systemGroup[prevkernel],
455
+ diffOther = other - systemGroup[prevOther],
456
+ diffTotal = subTotal - systemGroup[prevTotal];
457
+
458
+ let userModeCpuOccupation = (diffUser/diffTotal) * 100,
459
+ kernelModeCpuOccupation = (diffKernel/diffTotal) * 100,
460
+ otherModeCpuOccupation = (diffOther/diffTotal) * 100,
461
+ overallCpuOccupation = ((diffTotal - diffIdle)/diffTotal) * 100;
462
+
463
+ userModeCpuOccupation < 0 ? (userModeCpuOccupation = 0) : userModeCpuOccupation;
464
+ userModeCpuOccupation > pcore ? (userModeCpuOccupation = pcore) : userModeCpuOccupation;
465
+ kernelModeCpuOccupation < 0 ? (kernelModeCpuOccupation = 0) : kernelModeCpuOccupation;
466
+ kernelModeCpuOccupation > pcore ? (kernelModeCpuOccupation = pcore) : kernelModeCpuOccupation;
467
+ otherModeCpuOccupation < 0 ? (otherModeCpuOccupation = 0) : otherModeCpuOccupation;
468
+ otherModeCpuOccupation > pcore ? (otherModeCpuOccupation = pcore) : otherModeCpuOccupation;
469
+ overallCpuOccupation < 0 ? (overallCpuOccupation = 0) : overallCpuOccupation;
470
+ overallCpuOccupation > pcore ? (overallCpuOccupation = pcore) : overallCpuOccupation;
471
+
472
+ cpuinfo[columns[0]] = {
473
+ "overall": +overallCpuOccupation.toFixed(2),
474
+ "usermode": +userModeCpuOccupation.toFixed(2),
475
+ "kernelmode": +kernelModeCpuOccupation.toFixed(2),
476
+ "others": +otherModeCpuOccupation.toFixed(2)
477
+ };
478
+ }
479
+ systemGroup[prevIdle] = idle;
480
+ systemGroup[prevUser] = user;
481
+ systemGroup[prevkernel] = kernel;
482
+ systemGroup[prevOther] = other;
483
+ systemGroup[prevTotal] = subTotal;
484
+ }
485
+
486
+ if (!systemGroup.initialExecution) {
487
+ // setup memory infomation
488
+ if (columns[5] && columns[5].indexOf('buff/cache') !== -1) {
489
+ isBuff_Cached = true;
490
+ }
491
+ if (columns[0].indexOf('Mem:') === 0) {
492
+ meminfo['memory'] = !isBuff_Cached ? {
493
+ "total": +columns[1],
494
+ "used": +columns[2],
495
+ "free": +columns[3],
496
+ "shared": +columns[4],
497
+ "buffers": +columns[5],
498
+ "cached": +columns[6]
499
+ } : {
500
+ "total": +columns[1],
501
+ "used": +columns[2],
502
+ "free": +columns[3],
503
+ "shared": +columns[4],
504
+ "buff_cache": +columns[5],
505
+ "available": +columns[6]
506
+ };
507
+ }
508
+ if (columns[0].indexOf('-/+') === 0) {
509
+ meminfo['buffers'] = {
510
+ "used": +columns[2],
511
+ "free": +columns[3]
512
+ };
513
+ }
514
+ if (columns[0].indexOf('Swap:') === 0) {
515
+ meminfo['swap'] = {
516
+ "total": +columns[1],
517
+ "used": +columns[2],
518
+ "free": +columns[3]
519
+ };
520
+ }
521
+ }
522
+ }
523
+ if (!systemGroup.initialExecution) {
524
+ sysinfo = {
525
+ "date": date,
526
+ "cpuinfo": cpuinfo,
527
+ "meminfo": meminfo
528
+ };
529
+ _printSystemInfo(sysinfo);
530
+ }
531
+ } catch (err) {
532
+ // do not print error message to user
533
+ // when user press Ctrl + C , the ssh cmd data is not completed, it makes error
534
+ log.silly("device#systemResource()#_setSystemResouceInfo()", "in try-catch. err:", err.toString());
535
+ return;
536
+ }
537
+ }
538
+
539
+ function _printSystemInfo(sysinfo) {
540
+ const cpuinfo = sysinfo.cpuinfo,
541
+ meminfo = sysinfo.meminfo,
542
+ cpuinfoTable = new Table(),
543
+ meminfoTable = new Table(),
544
+ dataForCSV = [];
545
+
546
+ // add CPU info to the table
547
+ for (const key in cpuinfo) {
548
+ cpuinfoTable.cell('(%)', key);
549
+ cpuinfoTable.cell('overall', cpuinfo[key].overall);
550
+ cpuinfoTable.cell('usermode', cpuinfo[key].usermode);
551
+ cpuinfoTable.cell('kernelmode', cpuinfo[key].kernelmode);
552
+ cpuinfoTable.cell('others', cpuinfo[key].others);
553
+ cpuinfoTable.newRow();
554
+
555
+ // Add csv array
556
+ const obj = {
557
+ time: sysinfo.date,
558
+ cpu: key,
559
+ overall: cpuinfo[key].overall,
560
+ usermode: cpuinfo[key].usermode,
561
+ kernelmode: cpuinfo[key].kernelmode,
562
+ others: cpuinfo[key].others
563
+ };
564
+ dataForCSV.push(obj);
565
+ }
566
+ // add memoryInfo to the table
567
+ for (const key in meminfo) {
568
+ meminfoTable.cell('(KB)', key);
569
+ meminfoTable.cell('total', meminfo[key].total);
570
+ meminfoTable.cell('used', meminfo[key].used);
571
+ meminfoTable.cell('free', meminfo[key].free);
572
+ meminfoTable.cell('shared', meminfo[key].shared);
573
+ meminfoTable.cell('buff/cache', meminfo[key].buff_cache);
574
+ meminfoTable.cell('available', meminfo[key].available);
575
+ meminfoTable.newRow();
576
+
577
+ const obj = {
578
+ time: sysinfo.date,
579
+ memory: key,
580
+ total: meminfo[key].total,
581
+ used: meminfo[key].used,
582
+ free: meminfo[key].free,
583
+ shared: meminfo[key].shared,
584
+ "buff/cache": meminfo[key].buff_cache,
585
+ available: meminfo[key].available
586
+ };
587
+ dataForCSV.push(obj);
588
+ }
589
+ // write CSV file if user gives --save option
590
+ if (options.save && options.csvPath) {
591
+ // write csv file
592
+ // when openMode is false, the new csv file will be created and "Header" add to the file
593
+ let openMode = false;
594
+ if (fs.existsSync(options.csvPath)) {
595
+ openMode = true;
596
+ }
597
+
598
+ const csvWriter = createCsvWriter({
599
+ path: options.csvPath,
600
+ header: [
601
+ {id: 'time', title: 'time'},
602
+ {id: 'cpu', title: '(%)'},
603
+ {id: 'overall', title: 'overall'},
604
+ {id: 'usermode', title: 'usermode'},
605
+ {id: 'kernelmode', title: 'kernelmode'},
606
+ {id: 'others', title: 'others'},
607
+ {id: 'memory', title: '(KB)'},
608
+ {id: 'total', title: 'total'},
609
+ {id: 'used', title: 'used'},
610
+ {id: 'free', title: 'free'},
611
+ {id: 'shared', title: 'shared'},
612
+ {id: 'buff/cache', title: 'buff/cache'},
613
+ {id: 'available', title: 'available'}
614
+ ],
615
+ append: openMode
616
+ });
617
+
618
+ csvWriter
619
+ .writeRecords(dataForCSV)
620
+ .then(function() {
621
+ log.silly("device#systemResource()#_printSystemInfo()", "CSV file updated");
622
+ // csv file has been created at first
623
+ if (openMode === false) {
624
+ const resultTxt = "Create " + chalk.green(options.fileName) + " to " + options.destinationPath;
625
+ console.log(resultTxt);
626
+ }
627
+ __printTable();
628
+ }).catch(function(err) {
629
+ return setImmediate(next, errHndl.getErrMsg(err));
630
+ });
631
+ } else {
632
+ __printTable();
633
+ }
634
+
635
+ function __printTable() {
636
+ console.log(sysinfo.date + "\n");
637
+ console.log(cpuinfoTable.toString());
638
+ console.log(meminfoTable.toString());
639
+ console.log("=================================================================");
640
+ }
641
+ }
642
+ },
643
+ /**
644
+ * Get running apps and services CPUs and memories usage
645
+ * @property options {String} device, interval
646
+ */
647
+ processResource: function(options, next) {
648
+ if (typeof next !== 'function') {
649
+ throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
650
+ }
651
+
652
+ const processGroup = {};
653
+ processGroup.initialExecution = true;
654
+ options = options || {};
655
+ options.destinationPath = "";
656
+ options.fileName = "";
657
+ options.csvPath = "";
658
+
659
+ async.series([
660
+ _createOutputPath,
661
+ _makeSession,
662
+ _getProcessResouceInfo
663
+ ], function(err, results) {
664
+ log.silly("device#processResource()", "err:", err, ", results:", results);
665
+ next(err);
666
+ });
667
+
668
+ function _createOutputPath(next) {
669
+ if (options.save && options.csvPath === "") {
670
+ makeCSVOutputPath(options, next);
671
+ } else {
672
+ next();
673
+ }
674
+ }
675
+
676
+ function _makeSession(next) {
677
+ makeSession(options, next);
678
+ }
679
+
680
+ function _getProcessResouceInfo(next) {
681
+ log.info("device#processResource()#_getProcessResouceInfo()");
682
+
683
+ let timerId;
684
+ if (!options.interval) {
685
+ // If interval option is not given, call timer logic 2 times
686
+ const defaultRepeat = 2;
687
+ let repeatCount = 0;
688
+ try {
689
+ timerId = setTimeout(function repeat() {
690
+ if (repeatCount < defaultRepeat) {
691
+ _callProcessInfoCmd();
692
+ repeatCount++;
693
+ timerId = setTimeout(repeat, 1000);
694
+ } else {
695
+ clearTimeout(timerId);
696
+ return next();
697
+ }
698
+ }, 100);
699
+ } catch (err) {
700
+ log.silly("device#systemResource()#_getProcessResouceInfo()", "one timer. err:", err.toString());
701
+ clearTimeout(timerId);
702
+ // ignore timer logic error
703
+ return next();
704
+ }
705
+ } else {
706
+ try {
707
+ // when interval option is given, print initial data at first
708
+ const defaultRepeat = 1;
709
+ let repeatCount = 0;
710
+ timerId = setTimeout(function repeat() {
711
+ if (repeatCount < defaultRepeat) {
712
+ _callProcessInfoCmd();
713
+ repeatCount++;
714
+ timerId = setTimeout(repeat, 1000);
715
+ } else {
716
+ _callProcessInfoCmd();
717
+ timerId = setTimeout(repeat, options.interval * 1000);
718
+ }
719
+ }, 100);
720
+ } catch (err) {
721
+ log.silly("device#systemResource()#_getProcessResouceInfo()", "repeat timer. err:", err.toString());
722
+ clearTimeout(timerId);
723
+ // ignore timer logic error
724
+ return next();
725
+ }
726
+ }
727
+ }
728
+
729
+ function _callProcessInfoCmd() {
730
+ log.info("device#processResource()#_callProcessInfoCmd()");
731
+
732
+ const wStream = new streamBuffers.WritableStreamBuffer();
733
+ const cmd = 'date "+%Y-%m-%d %H:%M:%S"; grep "cpu *" /proc/stat | sed "1d" | awk \'{for (i=0;i<NR;i++){if (i==NR-1){totalSum+=$2+$3+$4+$5+$6+$7+$8+$9+$10+$11;idleSum+=$5}}} END { for (i=0;i<NR;i++){if (i==NR-1){print idleSum;print totalSum}}}\'; cat /proc/[0-9]*/stat; echo \'psList\' ; ps -ax | sed "1d" | awk \'/ /{print $1 "\t"$5}\'; echo \'serviceStringStart\'; ls /media/developer/apps/usr/palm/services ; echo \'serviceStringEnd\'; luna-send-pub -n 1 -f luna://com.webos.applicationManager/dev/running \'{}\'; grep -c ^processor /proc/cpuinfo';
734
+ try {
735
+ options.session.run(cmd, null, wStream, null, function(err) {
736
+ if (err) {
737
+ // do not print error message to user
738
+ // when user press Ctrl + C , the ssh connection is not completed, it makes error
739
+ log.silly("device#processResource()#_callProcessInfoCmd()", "ssh call. err:", err.toString());
740
+ return next(null);
741
+ } else {
742
+ const result = wStream.getContentsAsString();
743
+ _setProcessInfo(result);
744
+ processGroup.initialExecution = false;
745
+ }
746
+ });
747
+ } catch (err) {
748
+ // do not print error message to user
749
+ // when user press Ctrl + C , the ssh connection is not completed, it makes error
750
+ log.silly("device#processResource()#_callProcessInfoCmd()", "in try-catch. err:", err.toString());
751
+ return next(null);
752
+ }
753
+ }
754
+
755
+ function _setProcessInfo(processData) {
756
+ log.info("device#processResource()#_setProcessInfo()");
757
+ const PROC_GROUP_INFO_PATTERN = /\s+/;
758
+ try {
759
+ // Intialize temporary groups with values
760
+ const processList = ["Service", "System"],
761
+ groupProcessList = [],
762
+ tempProcGrps = {},
763
+ arrActiveServices = [];
764
+ // loop through all the categories and create groups
765
+ for (let i = 0; i < processList.length; i++) {
766
+ tempProcGrps[processList[i]] = {};
767
+ tempProcGrps[processList[i]]["pid"] = 0;
768
+ tempProcGrps[processList[i]]["cputime"] = 0;
769
+ tempProcGrps[processList[i]]["RSS"] = 0;
770
+ tempProcGrps[processList[i]]["pmem"] = 0;
771
+ }
772
+
773
+ const processinfo = [],
774
+ groupProcessinfo = [], // only for dev app & service info
775
+ allvalues = processData.split("\n"),
776
+ otherList = [],
777
+ date = allvalues[0],
778
+ lastIndex = allvalues.length;
779
+
780
+ allvalues.splice(lastIndex - 1, 1);
781
+ const pcore = +allvalues[allvalues.length-1] * 100;
782
+ /* memCol[1] from 'grep "MemTotal *" /proc/meminfo' is not used */
783
+ let totalRAM = 0;
784
+ const idleCPUtime = +allvalues[1],
785
+ totalCPUtime = +allvalues[2],
786
+ psListStartIndex = allvalues.indexOf("psList", 2),
787
+ serviceStartIndex = allvalues.indexOf("serviceStringStart", 2), // from where to start (2)
788
+ serviceEndIndex = allvalues.indexOf("serviceStringEnd", 2); // from where to start (2)
789
+
790
+ const arryInstalledServices = [];
791
+ for (let i = serviceStartIndex + 1; i < serviceEndIndex; i++) {
792
+ arryInstalledServices[i-serviceStartIndex-1] = allvalues[i];
793
+ }
794
+
795
+ // get processid of external service on ps list
796
+ let arrayCount = 0;
797
+ for (let k = psListStartIndex+1 ; k < serviceStartIndex ;k++) {
798
+ const columns = allvalues[k].trim().split(PROC_GROUP_INFO_PATTERN),
799
+ pid = parseInt(columns[0]),
800
+ procname = columns[1].trim();
801
+
802
+ if (arryInstalledServices.indexOf(procname) !== -1) {
803
+ const ObjService = {
804
+ "processid": pid,
805
+ "id": procname
806
+ };
807
+ arrActiveServices[arrayCount++] = ObjService;
808
+ }
809
+ }
810
+
811
+ const appStartIndex = allvalues.indexOf("{", 2); // From where to start (2)
812
+ // some times specific platform does not gives list of running info itself then appStartIndex becomes -1
813
+ if (appStartIndex < 0) {
814
+ // do not print error message to user
815
+ // when user press Ctrl + C , the ssh cmd data is not completed, it makes error
816
+ log.silly("device#processResource()#_setProcessInfo()", "running app list is invalid");
817
+ return;
818
+ }
819
+ const appEndIndex = allvalues.length-1;
820
+ let strActiveApps = "",
821
+ objActiveApps;
822
+ for (let i = appStartIndex; i < appEndIndex; i++) {
823
+ strActiveApps += allvalues[i];
824
+ }
825
+ try {
826
+ objActiveApps = JSON.parse(strActiveApps);
827
+ } catch (err) {
828
+ // do not print error message to user
829
+ // when user press Ctrl + C , the ssh cmd data is not completed, it makes error
830
+ log.silly("device#processResource()#_setProcessInfo()", "active app parsing. err:", err.toString());
831
+ return;
832
+ }
833
+
834
+ if (objActiveApps.returnValue === false) {
835
+ const errValue = objActiveApps["errorText"] || "running app list is invalid";
836
+ return next(errHndl.getErrMsg("FAILED_CALL_LUNA", errValue, null, "com.webos.applicationManager"));
837
+ }
838
+
839
+ const arrActiveApps = objActiveApps["running"],
840
+ groupObjList = {};
841
+
842
+ // 1st row is date, 2nd row is total CPU time and last row is total RAM(Meminfo) hence ignore it
843
+ // check process group info until "psList" string
844
+ for (let k = 3; k < psListStartIndex; k++) {
845
+ const columns = allvalues[k].trim().split(PROC_GROUP_INFO_PATTERN),
846
+ procname = columns[1].trim().split(/.*\(|\)/gi)[1],
847
+ grpname = _getProcessGrp(procname),
848
+ pid = parseInt(columns[0]),
849
+ pname = procname,
850
+ ppid = parseInt(columns[3]),
851
+ cputime = parseInt(columns[13]) + parseInt(columns[14]),
852
+ rss = parseInt(columns[23]) * 4,
853
+ pmem = (rss * 100);
854
+ // sum total used RSS
855
+ totalRAM += rss;
856
+ if (grpname === "Other") {
857
+ const objOther = {};
858
+ objOther["pid"] = pid;
859
+ objOther["pname"] = pname;
860
+ objOther["ppid"] = ppid;
861
+ objOther["cputime"] = cputime;
862
+ objOther["RSS"] = rss;
863
+ objOther["pmem"] = pmem;
864
+ otherList.push(objOther);
865
+ } else {
866
+ tempProcGrps[grpname]["pid"] = pid;
867
+ tempProcGrps[grpname]["cputime"] += cputime;
868
+ tempProcGrps[grpname]["RSS"] += rss;
869
+ tempProcGrps[grpname]["pmem"] += pmem;
870
+ }
871
+ }
872
+ // get the Children of Service
873
+ for (const k in tempProcGrps) {
874
+ const attrName = k;
875
+ if (attrName === "System") {
876
+ continue;
877
+ }
878
+ const objOther = tempProcGrps[k];
879
+ for (let i = 0; i < otherList.length; i++) {
880
+ if (objOther["pid"] !== otherList[i]["ppid"]) {
881
+ continue;
882
+ }
883
+ }
884
+ }
885
+
886
+ // this variable will mantain the aggregate pcpuVal of Service + dynamic apps
887
+ let aggcpuVal = 0;
888
+ // get the Web App processes data
889
+ if (arrActiveApps.length === 0) {
890
+ // get only the existing categories(3) if no running apps.
891
+ // dispose all the existing process variables
892
+ for (const name in processGroup) {
893
+ // if propertyName starts with "prev_" then dispose it
894
+ if (!Object.prototype.hasOwnProperty.call(processGroup, name)) {
895
+ continue;
896
+ }
897
+ if (name.indexOf("prev_app_") >= 0) {
898
+ processGroup[name] = undefined;
899
+ }
900
+ }
901
+ } else {
902
+ // loop through each of the running apps
903
+ // in loop - Check if app is newly running app (or) already existing running app
904
+ for (let j = 0; j < arrActiveApps.length; j++) {
905
+ const objActApp = arrActiveApps[j],
906
+ webprocId = objActApp["webprocessid"],
907
+ procId = objActApp["processid"],
908
+ displayId = objActApp["displayId"] || 0;
909
+ let processId;
910
+ if (webprocId !== "" && webprocId !== undefined && webprocId !== "undefined") {
911
+ processId = webprocId;
912
+ } else if (procId !== "" && procId !== undefined && procId !== "undefined") {
913
+ processId = procId;
914
+ } else {
915
+ break;
916
+ }
917
+
918
+ const prevcpuTime = "prev_app_" + processId + "cputime",
919
+ appid = parseInt(processId);
920
+ let pcputime = 0;
921
+ // get the cputime from otherList
922
+ for (let l = 0; l < otherList.length; l++) {
923
+ if (otherList[l]["pid"] !== appid) {
924
+ continue;
925
+ }
926
+ pcputime = otherList[l]["cputime"];
927
+ if (!processGroup[prevcpuTime]) {
928
+ processGroup[prevcpuTime] = pcputime;
929
+ break;
930
+ }
931
+ let webpcpuval = ((pcputime - processGroup[prevcpuTime]) * 100/(totalCPUtime - processGroup.prevTotalcputime));
932
+ // restrict showing the negative % values by making lowest to be zero.
933
+ if (webpcpuval < 0 || webpcpuval === undefined || isNaN(webpcpuval)) webpcpuval = 0;
934
+ aggcpuVal += webpcpuval;
935
+ const groupListAppKey = objActApp["id"]+ "-" + appid;
936
+ groupObjList[groupListAppKey] = {
937
+ "id": objActApp["id"],
938
+ "pid": appid,
939
+ "cpu": webpcpuval,
940
+ "memory": {
941
+ "size": otherList[l]["RSS"],
942
+ "percent": otherList[l]["pmem"].toFixed(2)
943
+ },
944
+ "displayId": displayId
945
+ };
946
+ processGroup[prevcpuTime] = pcputime;
947
+ otherList.splice(l, 1);
948
+ break;
949
+ }
950
+ }
951
+ }
952
+ // get the service processes data
953
+ if (arrActiveServices.length === 0) {
954
+ // get only the existing categories(3) if no running apps.
955
+ // dispose all the existing process variables
956
+ for (const name in processGroup) {
957
+ // if propertyName starts with "prev_" then dispose it
958
+ if (!Object.prototype.hasOwnProperty.call(processGroup, name)) {
959
+ continue;
960
+ }
961
+ if (name.indexOf("prev_svc_") >= 0) {
962
+ processGroup[name] = undefined;
963
+ }
964
+ }
965
+ } else {
966
+ // loop through each of the running apps
967
+ // in loop - Check if app is newly running app (or) already existing running app
968
+ for (let j = 0; j < arrActiveServices.length; j++) {
969
+ const objActService = arrActiveServices[j],
970
+ processId = objActService["processid"],
971
+ prevcpuTime = "prev_svc_" + processId + "cputime",
972
+ appid = parseInt(processId);
973
+ let pcputime = 0;
974
+ // get the cputime from otherList
975
+ for (let l = 0; l < otherList.length; l++) {
976
+ if (otherList[l]["pid"] !== appid) {
977
+ continue;
978
+ }
979
+ pcputime = otherList[l]["cputime"];
980
+ if (!processGroup[prevcpuTime]) {
981
+ processGroup[prevcpuTime] = pcputime;
982
+ break;
983
+ }
984
+ let svcpcpuval = ((pcputime - processGroup[prevcpuTime]) * 100/(totalCPUtime - processGroup.prevTotalcputime));
985
+ // restrict showing the negative % values by making lowest to be zero.
986
+ if (svcpcpuval < 0 || svcpcpuval === undefined || isNaN(svcpcpuval)) svcpcpuval = 0;
987
+ aggcpuVal+= svcpcpuval;
988
+ groupObjList[objActService["id"]] = {
989
+ "pid": appid,
990
+ "cpu": svcpcpuval,
991
+ "memory": {
992
+ "size": otherList[l]["RSS"],
993
+ "percent": otherList[l]["pmem"].toFixed(2)
994
+ }
995
+ };
996
+ processGroup[prevcpuTime] = pcputime;
997
+ otherList.splice(l, 1);
998
+ break;
999
+ }
1000
+ }
1001
+ }
1002
+ // get the remaining System Category processes
1003
+ for (let i = 0; i < otherList.length; i++) {
1004
+ tempProcGrps["System"]["pid"] = otherList[i]["pid"];
1005
+ tempProcGrps["System"]["cputime"]+= otherList[i]["cputime"];
1006
+ tempProcGrps["System"]["RSS"]+= otherList[i]["RSS"];
1007
+ tempProcGrps["System"]["pmem"]+= otherList[i]["pmem"];
1008
+ }
1009
+ if (!processGroup.initialExecution) {
1010
+ const diffIdle = idleCPUtime - processGroup.prevIdlecputime,
1011
+ diffTotal = totalCPUtime - processGroup.prevTotalcputime,
1012
+ overallCpuOccupation = ((diffTotal - diffIdle)/diffTotal) * 100;
1013
+ // assign all the values to return Object
1014
+ for (const key in tempProcGrps) {
1015
+ const processName = key;
1016
+ let tempPcpuval = 0;
1017
+ if (processName === "Service") {
1018
+ tempPcpuval = ((tempProcGrps[processName]["cputime"] - processGroup.prevServicecputime) * 100/diffTotal);
1019
+ }
1020
+ // restrict showing the negative % values by making lowest to be zero.
1021
+ if (tempPcpuval < 0 || tempPcpuval === undefined || isNaN(tempPcpuval)) tempPcpuval = 0;
1022
+ aggcpuVal += tempPcpuval;
1023
+ // system = overallCpuOccupation - (Service used + dynamic apps used);
1024
+ if (processName === "System") {
1025
+ tempPcpuval = overallCpuOccupation - aggcpuVal;
1026
+ }
1027
+ // restrict Negative/peak values due to cores fluctuation
1028
+ tempPcpuval < 0 ? (tempPcpuval = 0) : tempPcpuval;
1029
+ tempPcpuval > pcore ? (tempPcpuval = pcore) : tempPcpuval;
1030
+ tempProcGrps[processName]["pmem"] /= totalRAM;
1031
+ const procinfo = {
1032
+ "pid": tempProcGrps[processName]["pid"],
1033
+ "appid": processName,
1034
+ "cpu": parseFloat(tempPcpuval.toFixed(2)),
1035
+ "memory": {
1036
+ "size": tempProcGrps[processName]["RSS"],
1037
+ "percent": tempProcGrps[processName]["pmem"].toFixed(2)
1038
+ }
1039
+ };
1040
+ processinfo.push(procinfo);
1041
+ }
1042
+ // push the calculated groups into list
1043
+ for (const propertyName in groupObjList) {
1044
+ if (!Object.prototype.hasOwnProperty.call(groupObjList, propertyName)) {
1045
+ continue;
1046
+ }
1047
+
1048
+ const procObj = groupObjList[propertyName];
1049
+ let pcpuval = parseFloat(procObj["cpu"].toFixed(2));
1050
+ if (pcpuval === undefined || isNaN(pcpuval)) {
1051
+ pcpuval = 0;
1052
+ }
1053
+ procObj["memory"]["percent"] /= totalRAM;
1054
+ const procinfo = {
1055
+ "pid": procObj["pid"],
1056
+ "appid": procObj["id"] || propertyName,
1057
+ "cpu": pcpuval,
1058
+ "memory": {
1059
+ "size": procObj["memory"]["size"],
1060
+ "percent": parseFloat(procObj["memory"]["percent"]).toFixed(2)
1061
+ },
1062
+ "displayId": procObj["displayId"]
1063
+ };
1064
+
1065
+ processinfo.push(procinfo);
1066
+ // copy only app and service info to group for printing
1067
+ groupProcessinfo.push(procinfo);
1068
+
1069
+ if (processinfo.indexOf(propertyName) < 0) {
1070
+ processList.push(propertyName);
1071
+ groupProcessList.push(propertyName);
1072
+ }
1073
+ }
1074
+ }
1075
+ processGroup.prevIdlecputime = idleCPUtime;
1076
+ processGroup.prevTotalcputime = totalCPUtime;
1077
+ processGroup.prevServicecputime = tempProcGrps["Service"]["cputime"];
1078
+
1079
+ if (!processGroup.initialExecution) {
1080
+ const processgrpinfo = {
1081
+ "date": date,
1082
+ "processinfo": groupProcessinfo,
1083
+ "processList": groupProcessList
1084
+ };
1085
+ _printProcessList(processgrpinfo);
1086
+ }
1087
+ } catch (err) {
1088
+ // do not print error message to user
1089
+ // when user press Ctrl + C , the ssh cmd data is not completed, it makes error
1090
+ log.silly("device#processResource()#_setProcessInfo()", "in try-catch. err:", err.toString());
1091
+ return;
1092
+ }
1093
+ }
1094
+
1095
+ function _getProcessGrp(pname) {
1096
+ let group;
1097
+ switch (pname) {
1098
+ case 'ls-hubd':
1099
+ group = 'Service'; break;
1100
+ default:
1101
+ group = 'Other'; // it could be children of above categories or System
1102
+ }
1103
+ return group;
1104
+ }
1105
+
1106
+ function _printProcessList(processgrpinfo) {
1107
+ log.info("device#processResource()#_printProcessList()", JSON.stringify(processgrpinfo));
1108
+
1109
+ const processinfo = processgrpinfo.processinfo,
1110
+ processinfoTable = new Table();
1111
+
1112
+ let found = false;
1113
+ if (options.id) {
1114
+ processinfo.forEach(function(process) {
1115
+ if (options.id === process.appid) {
1116
+ found = true;
1117
+ }
1118
+ });
1119
+ if (found === false) {
1120
+ // print guide message to user
1121
+ console.log("<" + options.id + ">" + " is not running. Please launch the app or service.");
1122
+ return;
1123
+ }
1124
+ }
1125
+ if (processgrpinfo.processList.length === 0) {
1126
+ // print guide message to user
1127
+ console.log("There are no running apps or services. Please launch any app or service.");
1128
+ return;
1129
+ }
1130
+
1131
+ // add process list to table
1132
+ const dataForCSV = [];
1133
+ if (Array.isArray(processinfo)) {
1134
+ processinfo.forEach(function(process) {
1135
+ // if user gives ID, print only the ID's information
1136
+ if (options.id && options.id !== process.appid) {
1137
+ return;
1138
+ }
1139
+ processinfoTable.cell('PID', process.pid);
1140
+ processinfoTable.cell('ID', process.appid);
1141
+ processinfoTable.cell('DISPLAY ID', process.displayId);
1142
+ processinfoTable.cell('CPU(%)', process.cpu);
1143
+
1144
+ const meminfo = process.memory;
1145
+ processinfoTable.cell('MEMORY(%)', meminfo.percent);
1146
+ processinfoTable.cell('MEMORY(KB)', meminfo.size);
1147
+ processinfoTable.newRow();
1148
+
1149
+ // add data object
1150
+ const obj = {
1151
+ time: processgrpinfo.date,
1152
+ pid: process.pid,
1153
+ id: process.appid,
1154
+ displayId: process.displayId,
1155
+ cpu: process.cpu,
1156
+ memory: meminfo.percent,
1157
+ memory_size: meminfo.size
1158
+ };
1159
+ dataForCSV.push(obj);
1160
+ });
1161
+ }
1162
+ // write CSV file if user gives --save option
1163
+ if (options.save && options.csvPath) {
1164
+ // write csv file
1165
+ // when openMode is false, the new csv file will be created and "Header" add to the file
1166
+ let openMode = false;
1167
+ if (fs.existsSync(options.csvPath)) {
1168
+ openMode = true;
1169
+ }
1170
+ const csvWriter = createCsvWriter({
1171
+ path: options.csvPath,
1172
+ header: [
1173
+ {id: 'time', title: 'TIME'},
1174
+ {id: 'pid', title: 'PID'},
1175
+ {id: 'id', title: 'ID'},
1176
+ {id: 'displayId', title: 'DISPLAY ID'},
1177
+ {id: 'cpu', title: 'CPU(%)'},
1178
+ {id: 'memory', title: 'MEMORY(%)'},
1179
+ {id: 'memory_size', title: 'MEMORY(KB)'}
1180
+ ],
1181
+ append: openMode
1182
+ });
1183
+
1184
+ csvWriter
1185
+ .writeRecords(dataForCSV)
1186
+ .then(function() {
1187
+ log.silly("device#processResource()#_printProcessList()", "CSV file updated");
1188
+ // csv file has been created at first
1189
+ if (openMode === false) {
1190
+ const resultTxt = "Create " + chalk.green(options.fileName) + " to " + options.destinationPath;
1191
+ console.log(resultTxt);
1192
+ }
1193
+ __printTable();
1194
+ }).catch(function(err) {
1195
+ return setImmediate(next, errHndl.getErrMsg(err));
1196
+ });
1197
+ } else {
1198
+ __printTable();
1199
+ }
1200
+
1201
+ function __printTable() {
1202
+ // Print resullt to terminal
1203
+ console.log(processgrpinfo.date + "\n");
1204
+ console.log(processinfoTable.toString());
1205
+ console.log("======================================================================");
1206
+ }
1207
+ }
1208
+ },
1209
+ /**
1210
+ * get screen capture of the given device
1211
+ * @property options {String} device, display, outputPath
1212
+ */
1213
+ captureScreen: function(options, next) {
1214
+ if (typeof next !== 'function') {
1215
+ throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
1216
+ }
1217
+ options = options || {};
1218
+ async.series([
1219
+ _makeSession,
1220
+ _makeCaptureOption,
1221
+ _captureScreenFile,
1222
+ _copyFileToLocal
1223
+ ], function(err, results) {
1224
+ log.silly("device#captureScreen()", "err:", err, ", results:", results);
1225
+ const resultTxt = "Create " + chalk.green(options.captureFileName) + " to " + options.destinationPath +"\nSuccess";
1226
+
1227
+ // clean up /tmp/aresCapture directory in target device
1228
+ if (options.createdTmpDir) {
1229
+ _removeTmpDir(function finish(removeErr) {
1230
+ next(err ? err : removeErr, {msg: resultTxt});
1231
+ });
1232
+ } else {
1233
+ next(err, {msg: resultTxt});
1234
+ }
1235
+ });
1236
+
1237
+ function _makeSession(next) {
1238
+ makeSession(options, next);
1239
+ }
1240
+
1241
+ function _makeCaptureOption(next) {
1242
+ log.info("device#captureScreen()#_makeCaptureOption()");
1243
+
1244
+ const captureFormat = "PNG", // PNG is default format
1245
+ fileNameSeperator = "_";
1246
+
1247
+ let captureFileName = options.session.target.name + "_" + "display" + options.display + "_",
1248
+ destinationPath = "";
1249
+
1250
+ if (options.outputPath === null) {
1251
+ captureFileName += createDateFileName(fileNameSeperator, captureFormat.toLowerCase());
1252
+ destinationPath = path.resolve('.');
1253
+ } else {
1254
+ // get directory path, file path, file Extenstion from given path
1255
+ const parseDirPath = path.dirname(options.outputPath),
1256
+ parseBase = path.parse(options.outputPath).base;
1257
+
1258
+ let parseExt = path.parse(options.outputPath).ext;
1259
+
1260
+ parseExt = parseExt.split('.').pop();
1261
+ log.info("device#captureScreen()#_makeCaptureOption()" + "dir name:" + parseDirPath
1262
+ + " ,file name:" + parseBase + " ,inputFormat:" + parseExt);
1263
+
1264
+ // if specific path is given
1265
+ if (parseBase) {
1266
+ captureFileName = parseBase;
1267
+ destinationPath = path.resolve(parseDirPath);
1268
+ // parseBase is [filename].[ext] format
1269
+ if (parseExt === "") {
1270
+ // paresBase does not have file extesntion, add .png format
1271
+ captureFileName += "." + captureFormat.toLowerCase();
1272
+ } else if (parseExt !== "png" && parseExt !== "bmp" && parseExt !== "jpg") {
1273
+ return next(errHndl.getErrMsg("INVALID_CAPTURE_FORMAT"));
1274
+ }
1275
+ } else if (parseDirPath) {
1276
+ // the path has only "directory" without parseBase
1277
+ // for example, "ares-device -c /"
1278
+ captureFileName = createDateFileName(fileNameSeperator, captureFormat.toLowerCase());
1279
+ destinationPath = path.resolve(parseDirPath);
1280
+ }
1281
+ }
1282
+
1283
+ options.captureFormat = captureFormat;
1284
+ options.captureFileName = captureFileName;
1285
+ options.captureDirPath = "/tmp/aresCapture/";
1286
+ options.sourcePath = options.captureDirPath + captureFileName;
1287
+ options.destinationPath = destinationPath;
1288
+ options.ignore = true;
1289
+ options.silent = true;
1290
+
1291
+ next();
1292
+ }
1293
+
1294
+ function _captureScreenFile(next) {
1295
+ log.info("device#captureScreen()#_captureScreenFile()");
1296
+ const cmd = "/bin/mkdir -p " + options.captureDirPath + " && chmod 777 " + options.captureDirPath;
1297
+ options.session.run(cmd, null, null, null, function(err) {
1298
+ if (err) {
1299
+ return setImmediate(next, err);
1300
+ } else {
1301
+ options.createdTmpDir = true;
1302
+ const target = options.session.getDevice(),
1303
+ addr = target.lunaAddr.captureCompositorOutput,
1304
+ param = {
1305
+ // luna param
1306
+ subscribe: false,
1307
+ output: options.sourcePath,
1308
+ format: options.captureFormat,
1309
+ displayId: options.display
1310
+ };
1311
+
1312
+ luna.send(options, addr, param, function(lineObj, next) {
1313
+ if (lineObj.returnValue) {
1314
+ log.verbose("device#captureScreen()#_captureScreenFile()","Capture file in target:" + lineObj.output);
1315
+ next(null, {});
1316
+ } else {
1317
+ log.verbose("device#captureScreen()#_captureScreenFile()", "failure");
1318
+ next(errHndl.getErrMsg("INVALID_OBJECT"));
1319
+ }
1320
+ }, next);
1321
+ }
1322
+ });
1323
+ }
1324
+
1325
+ function _copyFileToLocal(next) {
1326
+ log.info("device#captureScreen()#_copyFileToLocal()");
1327
+ pullLib.pull(options.sourcePath, options.destinationPath, options, next);
1328
+ }
1329
+
1330
+ function _removeTmpDir(next) {
1331
+ log.info("device#captureScreen()#_removeTmpDir()");
1332
+ const cmd = '/bin/rm -rf ' + options.captureDirPath;
1333
+ options.session.run(cmd, null, null, null, function(err) {
1334
+ if (err) {
1335
+ return setImmediate(next, err);
1336
+ } else {
1337
+ next();
1338
+ }
1339
+ });
1340
+ }
1341
+ }
1342
+ };
1343
+
1344
+ function makeSession(options, next) {
1345
+ options.nReplies = 1; // -n 1
1346
+ if (!options.session) {
1347
+ log.info("device#makeSession()", "need to make new session");
1348
+ const printTarget = true;
1349
+ options.session = new novacom.Session(options.device, printTarget, next);
1350
+ } else {
1351
+ log.info("device#makeSession()", "already exist session");
1352
+ next();
1353
+ }
1354
+ }
1355
+
1356
+ function makeCSVOutputPath(options, next) {
1357
+ const csvFormat = "csv", // csv is default format
1358
+ fileNameSeperator = "_";
1359
+
1360
+ if (options.outputPath === null) {
1361
+ options.fileName = createDateFileName(fileNameSeperator, csvFormat);
1362
+ options.destinationPath = path.resolve('.');
1363
+ } else {
1364
+ // get directory path, file path, file Extenstion from given path
1365
+ const parseDirPath = path.dirname(options.outputPath),
1366
+ parseBase = path.parse(options.outputPath).base;
1367
+
1368
+ let parseExt = path.parse(options.outputPath).ext;
1369
+
1370
+ parseExt = parseExt.split('.').pop();
1371
+ log.info("device#captureScreen()#_makeCaptureOption()" + "dir name:" + parseDirPath
1372
+ + " ,file name:" + parseBase + " ,inputFormat:" + parseExt);
1373
+
1374
+ // if specific path is given
1375
+ if (parseBase) {
1376
+ options.fileName = parseBase;
1377
+ options.destinationPath = path.resolve(parseDirPath);
1378
+ // parseBase is [filename].[ext] format
1379
+ if (parseExt === "") {
1380
+ // paresBase does not have file extesntion, add .png format
1381
+ options.fileName += "." + csvFormat;
1382
+ } else if (parseExt !== csvFormat) {
1383
+ return next(errHndl.getErrMsg("INVALID_CSV_FORMAT"));
1384
+ }
1385
+ } else if (parseDirPath) {
1386
+ // the path has only "directory" without parseBase
1387
+ // for example, "ares-device -r -s /"
1388
+ options.fileName = createDateFileName(fileNameSeperator, csvFormat);
1389
+ options.destinationPath = path.resolve(parseDirPath);
1390
+ }
1391
+ }
1392
+
1393
+ options.csvPath = path.resolve(options.destinationPath, options.fileName);
1394
+ log.verbose("device#makeCSVOutputPath()", "csvPath:", options.csvPath);
1395
+
1396
+ fs.open(options.csvPath, 'w', function(err, fd) {
1397
+ if (err) {
1398
+ return next(errHndl.getErrMsg(err));
1399
+ }
1400
+ fs.close(fd, function(error) {
1401
+ if (error) {
1402
+ return next(errHndl.getErrMsg(error));
1403
+ }
1404
+ log.verbose("device#makeCSVOutputPath()", options.csvPath + " is closed");
1405
+
1406
+ // Defense code
1407
+ if (fs.existsSync(options.csvPath)) {
1408
+ fs.unlinkSync(options.csvPath);
1409
+ }
1410
+ log.verbose("device#makeCSVOutputPath()", options.csvPath + " is exist: " + fs.existsSync(options.csvPath));
1411
+ next();
1412
+ });
1413
+ });
1414
+ }
1415
+
1416
+ if (typeof module !== 'undefined' && module.exports) {
1417
+ module.exports = device;
1418
+ }
1419
+ }());