This commit is contained in:
@@ -602,27 +602,18 @@ HotelTV.LoadAppFull = async function() {
|
||||
let recvMsg = e.data;
|
||||
//console.log(`Recv Msg[${recvMsg.event}]::> ${recvMsg.ret} ::> ${recvMsg.data}`);
|
||||
//console.log(`Recv Msg[${recvMsg.event}]::> ${recvMsg.ret}`);
|
||||
if (recvMsg.event == "update_epg") {
|
||||
if (recvMsg.ret === "OK") {
|
||||
HotelTV.epg = recvMsg.data;
|
||||
HotelTV.ui_appfull.UpdateEpg();
|
||||
}
|
||||
} else if (recvMsg.event == "update_flight") {
|
||||
if (recvMsg.ret === "OK") {
|
||||
HotelTV.flight = { "count": recvMsg.data.count, "info": recvMsg.data.items };
|
||||
}
|
||||
} else if (recvMsg.event == "update_weather") {
|
||||
|
||||
// if (recvMsg.event == "update_epg") {
|
||||
// if (recvMsg.ret === "OK") {
|
||||
// HotelTV.epg = recvMsg.data;
|
||||
// HotelTV.ui_appfull.UpdateEpg();
|
||||
// }
|
||||
// } else if (recvMsg.event == "update_news") {
|
||||
// if (recvMsg.ret === "OK") {
|
||||
// HotelTV.news = recvMsg.data;
|
||||
// }
|
||||
// } else if (recvMsg.event == "update_flight") {
|
||||
// if (recvMsg.ret === "OK") {
|
||||
// let x2js = new X2JS();
|
||||
// _rspJson = x2js.xml2json($.parseXML(recvMsg.data));
|
||||
// HotelTV.flight = { "count": Number(_rspJson.response.body.totalCount), "info": _rspJson.response.body.items.item };
|
||||
// }
|
||||
// } else if (recvMsg.event == "update_weather") {
|
||||
|
||||
// }
|
||||
|
||||
if (recvMsg.event == "update_report") {
|
||||
} else if (recvMsg.event == "update_report") {
|
||||
HotelTV.hcap.GetUptime();
|
||||
HotelTV.hcap.GetDeviceUsage().then(_usage => {
|
||||
//console.log(`USAGE::> CPU[${_usage.cpu}%]`);
|
||||
|
||||
Reference in New Issue
Block a user