issue #10 #11 Change to online mode to local-storage mode.

This commit is contained in:
paul kim
2024-07-04 16:23:31 +09:00
parent f2e0890c3d
commit 16ecff93d8
8 changed files with 149 additions and 90 deletions

View File

@@ -3,11 +3,11 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.ui_utils.css"> <link rel="stylesheet" href="./theme/hoteltv.ui_utils.css">
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.error.css"> <link rel="stylesheet" href="./theme/hoteltv.error.css">
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.carousel.min.css"> <link rel="stylesheet" href="./css/owlcarousel/owl.carousel.min.css">
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.theme.default.min.css"> <link rel="stylesheet" href="./css/owlcarousel/owl.theme.default.min.css">
<link rel="stylesheet" href="/procentric/application/css/acmeticker/style.css"> <link rel="stylesheet" href="./css/acmeticker/style.css">
<title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title> <title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title>
</head> </head>
@@ -365,28 +365,28 @@
<!-- Standard & 3rd party Library --> <!-- Standard & 3rd party Library -->
<script src="/procentric/application/lib/jquery-3.6.0.min.js"></script> <script src="./lib/jquery-3.6.0.min.js"></script>
<script src="/procentric/application/lib/jquery.color-2.1.2.min.js"></script> <script src="./lib/jquery.color-2.1.2.min.js"></script>
<script src="/procentric/application/lib/jquery.webticker.min.js"></script> <script src="./lib/jquery.webticker.min.js"></script>
<script src="/procentric/application/lib/xml2json.js"></script> <script src="./lib/xml2json.js"></script>
<script src="/procentric/application/lib/owl.carousel.min.js"></script> <script src="./lib/owl.carousel.min.js"></script>
<!-- LG HCAP Library --> <!-- LG HCAP Library -->
<script src="/procentric/application/lib/hcap.js"></script> <script src="./lib/hcap.js"></script>
<script src="/procentric/application/lib/idcap.js"></script> <script src="./lib/idcap.js"></script>
<!-- CENTIRM HOTELTV Library --> <!-- CENTIRM HOTELTV Library -->
<script src="/procentric/application/lib/hoteltv.js"></script> <script src="./lib/hoteltv.js"></script>
<script src="/procentric/application/lib/hoteltv.ui_utils.js"></script> <script src="./lib/hoteltv.ui_utils.js"></script>
<script src="/procentric/application/lib/hoteltv.ui_appfull.js"></script> <script src="./lib/hoteltv.ui_appfull.js"></script>
<script src="/procentric/application/lib/hoteltv.hcap.js"></script> <script src="./lib/hoteltv.hcap.js"></script>
<script src="/procentric/application/lib/hoteltv.api.js"></script> <script src="./lib/hoteltv.api.js"></script>
<!-- MQTT Library --> <!-- MQTT Library -->
<script src="/procentric/application/lib/mqtt.min.js"></script> <script src="./lib/mqtt.min.js"></script>
<!-- ACMETICKER Library --> <!-- ACMETICKER Library -->
<script src="/procentric/application/lib/acmeticker.js"></script> <script src="./lib/acmeticker.js"></script>
<script> <script>
@@ -410,7 +410,7 @@
"/hoteltv.app.full.popup.css"]; "/hoteltv.app.full.popup.css"];
for ( let _idx=0; _idx<needed_css_files.length; _idx++ ) for ( let _idx=0; _idx<needed_css_files.length; _idx++ )
{ {
$('head:first').append('<link rel="stylesheet" type="text/css" href="/procentric/application/theme/' $('head:first').append('<link rel="stylesheet" type="text/css" href="./theme/'
+ HotelTV.state['theme_root'] + needed_css_files[_idx] + '" />'); + HotelTV.state['theme_root'] + needed_css_files[_idx] + '" />');
} }
console.log("Documents loaded...") console.log("Documents loaded...")

View File

@@ -3,8 +3,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.ui_utils.css"> <link rel="stylesheet" href="./theme/hoteltv.ui_utils.css">
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.error.css"> <link rel="stylesheet" href="./theme/hoteltv.error.css">
<title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title> <title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title>
</head> </head>

View File

@@ -667,6 +667,39 @@ HotelTV.hal = (function() {
__hcapfxn_Reboot(); __hcapfxn_Reboot();
}, },
GetNetworkStatus: function() {
return new Promise((resolve, reject) => {
hcap.network.getNetworkInformation({
"onSuccess" : function(s) {
console.log("onSuccess : network_mode = " + s.network_mode +
"\n ssid = " + s.ssid +
"\n eth_speed = " + s.eth_speed +
"\n eth_duplex = " + s.eth_duplex +
"\n local_network_available = " + s.local_network_available +
"\n internet_available = " + s.internet_available +
"\n wifi_mode = " + s.wifi_mode +
"\n wireless_security_type = " + s.wireless_security_type +
"\n wifi_pass_key = " + s.wifi_pass_key +
"\n using_dhcp = " + s.using_dhcp +
"\n ip_address = " + s.ip_address +
"\n subnet_mask = " + s.subnet_mask +
"\n gateway = " + s.gateway +
"\n dns1_address = " + s.dns1_address +
"\n dns2_address = " + s.dns2_address +
"\n dns_dhcp = " + s.dns_dhcp +
"\n ethernet_plugged = " + s.ethernet_plugged +
"\n wifi_plugged = " + s.wifi_plugged +
"\n dhcp_state = " + s.dhcp_state);
resolve({ "error": false, "info": s });
},
"onFailure" : function(f) {
console.log("onFailure : errorMessage = " + f.errorMessage);
resolve({ "error": true, "info": null });
}
});
});
},
GetDevInfo: function() { GetDevInfo: function() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {

View File

@@ -212,11 +212,57 @@ HotelTV.Init = async function() {
//STEP#03::> Get Device Info //STEP#03::> Get Device Info
HotelTV.ui_utils.SetBusy(true); HotelTV.ui_utils.SetBusy(true);
const __ifxn_showFatalErr_Network = function() {
let _tmval = 10;
setTimeout(HotelTV.hal.Reboot, 10000);
HotelTV.ui_utils.SetBusy(false);
HotelTV.ui_utils.ShowErrMsg(true,
"system.error.get-devinfo",
"SYSTEM ERROR",
"Network is un-available.\r\nplease contact your system administrator.", {
"timeout": _tmval,
"cb_disp": function() {
_tmval -= 1;
console.log("time..." + _tmval);
if ($('.error #countdown').css("display") == "none") {
$('.error #countdown').fadeIn(1000);
}
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
},
"cb_eoe": null
});
}
try {
//
let __netStatus = await HotelTV.hal.GetNetworkStatus();
if ( __netStatus.info==null || __netStatus.error==true ){
console.info("aa");
__ifxn_showFatalErr_Network();
return;
} else {
console.info("bb");
if ( __netStatus.info.ip_address=="0.0.0.0" || __netStatus.info.gateway=="0.0.0.0" ) {
console.info("Fatall.......");
__ifxn_showFatalErr_Network();
return;
}
}
} catch ( _err ) {
console.info("cc");
__ifxn_showFatalErr_Network();
return;
}
try { try {
await HotelTV.hal.GetDevInfo(); await HotelTV.hal.GetDevInfo();
//await HotelTV.hal.ShowDevInfo(); //await HotelTV.hal.ShowDevInfo();
} catch (_error) { } catch (_error) {
let _tmval = 50; let _tmval = 50;
setTimeout(HotelTV.hal.Reboot, 49000);
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.error.get-devinfo", "system.error.get-devinfo",
"SYSTEM ERROR", "SYSTEM ERROR",
@@ -230,9 +276,7 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
} }
@@ -244,6 +288,7 @@ HotelTV.Init = async function() {
HotelTV.state['registration'] = await HotelTV.api.CheckRegistration(); HotelTV.state['registration'] = await HotelTV.api.CheckRegistration();
} catch (_error) { } catch (_error) {
let _tmval = 50; let _tmval = 50;
setTimeout(HotelTV.hal.Reboot, 49000);
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.error.check-registration", "system.error.check-registration",
"SYSTEM ERROR", "SYSTEM ERROR",
@@ -257,9 +302,7 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
} }
@@ -278,6 +321,7 @@ HotelTV.Init = async function() {
HotelTV.ui_utils.SetBusy(false); HotelTV.ui_utils.SetBusy(false);
let _tmval = 20; let _tmval = 20;
setTimeout(HotelTV.hal.Reboot, 20000);
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.info.change-configuration", "system.info.change-configuration",
"SYSTEM INFO", "SYSTEM INFO",
@@ -291,14 +335,13 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`System will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
return; return;
} }
} catch (_error) { } catch (_error) {
let _tmval = 50; let _tmval = 50;
setTimeout(HotelTV.hal.Reboot, 49000);
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.set-devinfo", "system.set-devinfo",
"SYSTEM ERROR", "SYSTEM ERROR",
@@ -312,9 +355,7 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
} }
@@ -322,6 +363,7 @@ HotelTV.Init = async function() {
HotelTV.hotelinfo = await HotelTV.api.GetHotelInfo(); HotelTV.hotelinfo = await HotelTV.api.GetHotelInfo();
} catch (_error) { } catch (_error) {
let _tmval = 50; let _tmval = 50;
setTimeout(HotelTV.hal.Reboot, 49000);
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.error.get-hotelinfo", "system.error.get-hotelinfo",
"SYSTEM ERROR", "SYSTEM ERROR",
@@ -335,9 +377,7 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
} }
// state[theme_root] 정의 // state[theme_root] 정의
@@ -351,6 +391,7 @@ HotelTV.Init = async function() {
HotelTV.guestinfo = await HotelTV.api.GetGuestInfo(); HotelTV.guestinfo = await HotelTV.api.GetGuestInfo();
} catch (_error) { } catch (_error) {
let _tmval = 50; let _tmval = 50;
setTimeout(HotelTV.hal.Reboot, 49000);
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.error.get-guestinfo", "system.error.get-guestinfo",
"SYSTEM ERROR", "SYSTEM ERROR",
@@ -364,9 +405,7 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
} }
@@ -374,6 +413,7 @@ HotelTV.Init = async function() {
HotelTV.opening = await HotelTV.api.GetOpeningCtz(); HotelTV.opening = await HotelTV.api.GetOpeningCtz();
} catch (_error) { } catch (_error) {
let _tmval = 50; let _tmval = 50;
setTimeout(HotelTV.hal.Reboot, 49000);
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.error.get-openingctzinfo", "system.error.get-openingctzinfo",
"SYSTEM ERROR", "SYSTEM ERROR",
@@ -387,9 +427,7 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
} }
@@ -409,6 +447,7 @@ HotelTV.Init = async function() {
HotelTV.widget = await HotelTV.api.GetWidgetCtz(); HotelTV.widget = await HotelTV.api.GetWidgetCtz();
} catch (_error) { } catch (_error) {
let _tmval = 50; let _tmval = 50;
setTimeout(HotelTV.hal.Reboot, 49000);
//console.log("Display Error page for get widget info"); //console.log("Display Error page for get widget info");
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.error.get-widget", "system.error.get-widget",
@@ -423,9 +462,7 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
} }
@@ -433,6 +470,7 @@ HotelTV.Init = async function() {
HotelTV.tvguide = await HotelTV.api.GetProgramCtz(); HotelTV.tvguide = await HotelTV.api.GetProgramCtz();
} catch (_error) { } catch (_error) {
let _tmval = 50; let _tmval = 50;
setTimeout(HotelTV.hal.Reboot, 49000);
//console.log("Display Error page for get tvguide info"); //console.log("Display Error page for get tvguide info");
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.error.get-tvguideinfo", "system.error.get-tvguideinfo",
@@ -447,9 +485,7 @@ HotelTV.Init = async function() {
} }
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`); $('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": null
setTimeout(HotelTV.hal.Reboot, 500);
}
}); });
} }
@@ -516,6 +552,7 @@ HotelTV.Init = async function() {
} }
} else { } else {
let _tmval = 60; let _tmval = 60;
setTimeout(HotelTV.hal.Reboot, 59000);
HotelTV.ui_utils.ShowErrMsg(true, HotelTV.ui_utils.ShowErrMsg(true,
"system.error.unregistered-device", "system.error.unregistered-device",
"SYSTEM ERROR", "SYSTEM ERROR",
@@ -529,17 +566,14 @@ HotelTV.Init = async function() {
$('.error #countdown').fadeIn(1000); $('.error #countdown').fadeIn(1000);
} }
}, },
"cb_eoe": function() { "cb_eoe": null
$('.error #countdown #message').text(`The Device ID is ${HotelTV.devinfo.serial_number}.\r\n\r\nSystem will be reboot`);
setTimeout(HotelTV.hal.Reboot, 500);
}
} }
); );
} }
console.log("Initialization:: Done"); console.log("Initialization:: Done");
HotelTV.ui_utils.SetBusy(false); HotelTV.ui_utils.SetBusy(false);
SpatialNavigation.init(); //SpatialNavigation.init();
}; };
HotelTV.LoadWelCome = async function() { HotelTV.LoadWelCome = async function() {

View File

@@ -7532,6 +7532,7 @@ HotelTV.ui_appfull = (function() {
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
setTimeout(HotelTV.hal.Reboot, 12000);
HotelTV.ui_utils.ShowSysNoticeMsg(true, HotelTV.ui_utils.ShowSysNoticeMsg(true,
"notice", "notice",
"SYSTEM NOTICE", "SYSTEM NOTICE",
@@ -7546,7 +7547,6 @@ HotelTV.ui_appfull = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
@@ -7555,6 +7555,7 @@ HotelTV.ui_appfull = (function() {
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
setTimeout(HotelTV.hal.Reboot, 12000);
HotelTV.ui_utils.ShowSysNoticeMsg(true, HotelTV.ui_utils.ShowSysNoticeMsg(true,
"notice", "notice",
"SYSTEM NOTICE", "SYSTEM NOTICE",
@@ -7569,7 +7570,6 @@ HotelTV.ui_appfull = (function() {
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`); $('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
@@ -7578,6 +7578,8 @@ HotelTV.ui_appfull = (function() {
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
setTimeout(HotelTV.hal.Reboot, 32000);
HotelTV.ui_utils.ShowSysNoticeMsg(true, HotelTV.ui_utils.ShowSysNoticeMsg(true,
"notice", "notice",
"SYSTEM NOTICE", "SYSTEM NOTICE",
@@ -7592,8 +7594,6 @@ HotelTV.ui_appfull = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
//setTimeout(HotelTV.hal.PwrOff, 500);
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
@@ -7603,7 +7603,7 @@ HotelTV.ui_appfull = (function() {
let _tmval = 30; let _tmval = 30;
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
setTimeout(HotelTV.hal.Reboot, 32000);
HotelTV.ui_utils.ShowSysNoticeMsg(true, HotelTV.ui_utils.ShowSysNoticeMsg(true,
"notice", "notice",
"SYSTEM NOTICE", "SYSTEM NOTICE",
@@ -7618,7 +7618,6 @@ HotelTV.ui_appfull = (function() {
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`); $('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });

View File

@@ -478,7 +478,7 @@ HotelTV.ui_welcome = (function() {
let _tmval = 10; let _tmval = 10;
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
setTimeout(HotelTV.hal.Reboot, 12000);
HotelTV.ui_utils.ShowSysNoticeMsg(true, HotelTV.ui_utils.ShowSysNoticeMsg(true,
"notice", "notice",
"SYSTEM NOTICE", "SYSTEM NOTICE",
@@ -493,7 +493,6 @@ HotelTV.ui_welcome = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
@@ -501,7 +500,7 @@ HotelTV.ui_welcome = (function() {
let _tmval = 10; let _tmval = 10;
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
setTimeout(HotelTV.hal.Reboot, 12000);
HotelTV.ui_utils.ShowSysNoticeMsg(true, HotelTV.ui_utils.ShowSysNoticeMsg(true,
"notice", "notice",
"SYSTEM NOTICE", "SYSTEM NOTICE",
@@ -516,7 +515,6 @@ HotelTV.ui_welcome = (function() {
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`); $('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
@@ -524,7 +522,7 @@ HotelTV.ui_welcome = (function() {
let _tmval = 30; let _tmval = 30;
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
setTimeout(HotelTV.hal.Reboot, 32000);
HotelTV.ui_utils.ShowSysNoticeMsg(true, HotelTV.ui_utils.ShowSysNoticeMsg(true,
"notice", "notice",
"SYSTEM NOTICE", "SYSTEM NOTICE",
@@ -539,8 +537,6 @@ HotelTV.ui_welcome = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`); $('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
//setTimeout(HotelTV.hal.PwrOff, 500);
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });
@@ -550,7 +546,7 @@ HotelTV.ui_welcome = (function() {
let _tmval = 30; let _tmval = 30;
let _state = HotelTV.state; let _state = HotelTV.state;
let _trTbl = HotelTV.translation; let _trTbl = HotelTV.translation;
setTimeout(HotelTV.hal.Reboot, 32000);
HotelTV.ui_utils.ShowSysNoticeMsg(true, HotelTV.ui_utils.ShowSysNoticeMsg(true,
"notice", "notice",
"SYSTEM NOTICE", "SYSTEM NOTICE",
@@ -565,7 +561,6 @@ HotelTV.ui_welcome = (function() {
$('.error #countdown #message').text(`System will be restart in ${_tmval} second...`); $('.error #countdown #message').text(`System will be restart in ${_tmval} second...`);
}, },
"cb_eoe": function() { "cb_eoe": function() {
setTimeout(HotelTV.hal.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}]) HotelTV.api.ReportEvent([{'power': false, 'location':null}])
} }
}); });

View File

@@ -5,9 +5,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 0px; padding: 0px;
/* background-image: url(./images/hoteltv_service_preparing.png); */ background-image: url(../images/hoteltv_service_preparing_joson.jpg);
background-image: url(/procentric/application/images/hoteltv_service_preparing_joson.jpg);
/* background-image: url(/procentric/application/images/hoteltv_service_preparing.png); */
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
} }

View File

@@ -3,10 +3,10 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.carousel.min.css"> <link rel="stylesheet" href="./css/owlcarousel/owl.carousel.min.css">
<link rel="stylesheet" href="/procentric/application/css/owlcarousel/owl.theme.default.min.css"> <link rel="stylesheet" href="./css/owlcarousel/owl.theme.default.min.css">
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.ui_utils.css"> <link rel="stylesheet" href="./theme/hoteltv.ui_utils.css">
<link rel="stylesheet" href="/procentric/application/theme/hoteltv.error.css"> <link rel="stylesheet" href="./theme/hoteltv.error.css">
<title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title> <title>CENTIRM LG-PROCENTRIC HOTEL SERVICE</title>
</head> </head>
@@ -67,25 +67,25 @@
<!-- Standard & 3rd party Library --> <!-- Standard & 3rd party Library -->
<script src="/procentric/application/lib/jquery-3.6.0.min.js"></script> <script src="./lib/jquery-3.6.0.min.js"></script>
<script src="/procentric/application/lib/jquery.color-2.1.2.min.js"></script> <script src="./lib/jquery.color-2.1.2.min.js"></script>
<script src="/procentric/application/lib/xml2json.js"></script> <script src="./lib/xml2json.js"></script>
<script src="/procentric/application/lib/spatial_navigation.js"></script> <script src="./lib/spatial_navigation.js"></script>
<script src="/procentric/application/lib/owl.carousel.js"></script> <script src="./lib/owl.carousel.js"></script>
<!-- LG HCAP Library --> <!-- LG HCAP Library -->
<script src="/procentric/application/lib/hcap.js"></script> <script src="./lib/hcap.js"></script>
<script src="/procentric/application/lib/idcap.js"></script> <script src="./lib/idcap.js"></script>
<!-- CENTIRM HOTELTV Library --> <!-- CENTIRM HOTELTV Library -->
<script src="/procentric/application/lib/hoteltv.js"></script> <script src="./lib/hoteltv.js"></script>
<script src="/procentric/application/lib/hoteltv.ui_utils.js"></script> <script src="./lib/hoteltv.ui_utils.js"></script>
<script src="/procentric/application/lib/hoteltv.ui_welcome.js"></script> <script src="./lib/hoteltv.ui_welcome.js"></script>
<script src="/procentric/application/lib/hoteltv.hcap.js"></script> <script src="./lib/hoteltv.hcap.js"></script>
<script src="/procentric/application/lib/hoteltv.api.js"></script> <script src="./lib/hoteltv.api.js"></script>
<!-- MQTT Library --> <!-- MQTT Library -->
<script src="/procentric/application/lib/mqtt.min.js"></script> <script src="./lib/mqtt.min.js"></script>
<script> <script>
window.addEventListener('cached', function() { window.addEventListener('cached', function() {
@@ -95,7 +95,7 @@
window.addEventListener('load', function() { window.addEventListener('load', function() {
console.log("loading"); console.log("loading");
HotelTV.state = JSON.parse(sessionStorage.getItem("state")); HotelTV.state = JSON.parse(sessionStorage.getItem("state"));
$('head:first').append('<link rel="stylesheet" type="text/css" href="/procentric/application/theme/' + HotelTV.state['theme_root'] + '/hoteltv.welcome.css" />'); $('head:first').append('<link rel="stylesheet" type="text/css" href="./theme/' + HotelTV.state['theme_root'] + '/hoteltv.welcome.css" />');
HotelTV.LoadWelCome(); HotelTV.LoadWelCome();
}); });