mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
implement webui live video (#340)
* implement webui live video * add missing german translation
This commit is contained in:
@@ -13,11 +13,12 @@ var websocket = null;
|
||||
var hyperion = {};
|
||||
var wsTan = 1;
|
||||
var cronId = 0;
|
||||
var ledStreamActive=false;
|
||||
var loggingStreamActive=false;
|
||||
var ledStreamActive = false;
|
||||
var imageStreamActive = false;
|
||||
var loggingStreamActive = false;
|
||||
var loggingHandlerInstalled = false;
|
||||
var watchdog = 0;
|
||||
|
||||
var debugMessagesActive = true;
|
||||
//
|
||||
function cron()
|
||||
{
|
||||
@@ -168,6 +169,18 @@ function requestLedColorsStop()
|
||||
sendToHyperion("ledcolors", "ledstream-stop");
|
||||
}
|
||||
|
||||
function requestLedImageStart()
|
||||
{
|
||||
imageStreamActive=true;
|
||||
sendToHyperion("ledcolors", "imagestream-start");
|
||||
}
|
||||
|
||||
function requestLedImageStop()
|
||||
{
|
||||
imageStreamActive=false;
|
||||
sendToHyperion("ledcolors", "imagestream-stop");
|
||||
}
|
||||
|
||||
function requestPriorityClear()
|
||||
{
|
||||
sendToHyperion("clear", "", '"priority":1');
|
||||
@@ -205,6 +218,8 @@ function requestWriteConfig(config)
|
||||
});
|
||||
|
||||
var config_str = JSON.stringify(complete_config);
|
||||
console.log("save");
|
||||
console.log(config_str);
|
||||
sendToHyperion("config","setconfig", '"config":'+config_str);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user