mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
update glcd
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0c2dcc9eb1
Author: redblue-pkt <redblue-pkt@orange.pl>
Date: 2020-06-19 (Fri, 19 Jun 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -55,6 +55,7 @@ install_DATA = channels.js \
|
||||
Y_Settings_automount.yhtm \
|
||||
Y_Settings_Backup.yhtm \
|
||||
Y_Settings_buttons.yhtm \
|
||||
Y_Settings_glcd.yhtm \
|
||||
Y_Settings_lcd.yhtm \
|
||||
Y_Settings_Live.yhtm \
|
||||
Y_Settings_Menue.yhtm \
|
||||
@@ -79,6 +80,7 @@ install_DATA = channels.js \
|
||||
Y_Tools_Cmd.yhtm \
|
||||
Y_Tools_Flash_Menue.yhtm \
|
||||
Y_Tools_Flash_Upload.yhtm \
|
||||
Y_Tools_Glcd_Screenshot.yhtm \
|
||||
Y_Tools_Info_Menue.yhtm \
|
||||
Y_Tools_Installer.yhtm \
|
||||
Y_Tools_lcshot.yhtm \
|
||||
|
@@ -505,3 +505,8 @@ function saveTextAsFile(content, filename, filetype)
|
||||
}
|
||||
downloadLink.click();
|
||||
}
|
||||
|
||||
function glcdscreenshot(_filename)
|
||||
{
|
||||
return loadSyncURL("/control/glcdscreenshot?name="+_filename);
|
||||
}
|
||||
|
@@ -148,6 +148,19 @@ function get_data(){
|
||||
<li>
|
||||
<a target="work" title="{=L:bc.menue.remote_desc=}" href="Y_Tools_Rcsim.yhtm">{=L:bc.menue.remote=}</a>
|
||||
</li>
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ SOLO4K~
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ DUO4K~
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ ULTIMO4K~
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ UNO4K~
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ UNO4KSE~
|
||||
<li>
|
||||
<a target="work" title="{=L:bc.menue.glcd_screenshot_desc=}" href="Y_Tools_Glcd_Screenshot.yhtm">{=L:bc.menue.glcd_screenshot=}</a>
|
||||
</li>
|
||||
~=}
|
||||
~=}
|
||||
~=}
|
||||
~=}
|
||||
~=}
|
||||
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
|
||||
<li>
|
||||
{=if-empty:{=var-get:lcshot=}~
|
||||
|
@@ -84,6 +84,21 @@ function init(){
|
||||
{=var-set:m_link_text={=L:set.menue.pictureviewer=}=}
|
||||
{=include-block:Y_Blocks.txt;management_link=}
|
||||
</li>
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ SOLO4K~
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ DUO4K~
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ ULTIMO4K~
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ UNO4K~
|
||||
{=if-not-equal:{=var-get:boxtype=}~VU+ UNO4KSE~
|
||||
<li>
|
||||
{=var-set:m_link_href=Y_Settings_glcd.yhtm=}
|
||||
{=var-set:m_link_text={=L:set.menue.glcd_display=}=}
|
||||
{=include-block:Y_Blocks.txt;management_link=}
|
||||
</li>
|
||||
~=}
|
||||
~=}
|
||||
~=}
|
||||
~=}
|
||||
~=}
|
||||
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
|
||||
<li>
|
||||
{=var-set:m_link_href=Y_Settings_video_audio.yhtm=}
|
||||
|
128
data/y-web/Y_Settings_glcd.yhtm
Normal file
128
data/y-web/Y_Settings_glcd.yhtm
Normal file
@@ -0,0 +1,128 @@
|
||||
{=include-block:Y_Blocks.txt;management_check_top=}
|
||||
{=include-block:Y_Blocks.txt;head=}
|
||||
<style type="text/css">
|
||||
/*<![CDATA[*/
|
||||
.alink {
|
||||
text-decoration: underline;
|
||||
}
|
||||
/*]]>*/
|
||||
</style>
|
||||
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
function do_init()
|
||||
{
|
||||
var val = "";
|
||||
obj_set_radio_value('glcd_enable', "{=ini-get:/etc/neutrino/config/neutrino.conf;glcd_enable;1~open=}");
|
||||
obj_set_radio_value('glcd_inverse', "{=ini-get:/etc/neutrino/config/neutrino.conf;glcd_inverse;0~cache=}");
|
||||
|
||||
val = "{=ini-get:/etc/neutrino/config/neutrino.conf;glcd_brightness_dim;5~cache=}";
|
||||
document.f.glcd_brightness_dim.value = val;
|
||||
val = "{=ini-get:/etc/neutrino/config/neutrino.conf;glcd_brightness_dim_time;15~cache=}";
|
||||
document.f.glcd_.brightness_dim_time.value = val;
|
||||
val = "{=ini-get:/etc/neutrino/config/neutrino.conf;glcd_brightness;7~cache=}";
|
||||
document.f.glcd_brightness.value = val;
|
||||
val = "{=ini-get:/etc/neutrino/config/neutrino.conf;glcd_brightness_standby;1~cache=}";
|
||||
document.f.glcd_brightness_standby.value = val;
|
||||
}
|
||||
|
||||
function setDefault()
|
||||
{
|
||||
document.f.glcd_brightness_dim.value = 5;
|
||||
document.f.glcd_brightness_dim_time.value = 15
|
||||
document.f.glcd_brightness.value = 7;
|
||||
document.f.glcd_brightness_standby.value = 1;
|
||||
}
|
||||
|
||||
function do_submit()
|
||||
{
|
||||
show_waitbox(true);
|
||||
if (document.f.glcd_brightness_dim.value > 10)
|
||||
document.f.glcd_brightness_dim.value = 10;
|
||||
else if (document.f.glcd_brightness_dim.value < 0)
|
||||
document.f.glcd_brightness_dim.value = 0;
|
||||
if (document.f.glcd_brightness_dim_time.value > 60)
|
||||
document.f.glcd_brightness_dim_time.value = 60;
|
||||
else if (document.f.glcd_brightness_dim_time.value < 0)
|
||||
document.f.glcd_brightness_dim_time.value = 0;
|
||||
if (document.f.glcd_brightness.value > 10)
|
||||
document.f.glcd_brightness.value = 10;
|
||||
else if (document.f.glcd_brightness.value < 0)
|
||||
document.f.glcd_brightness.value = 0;
|
||||
if (document.f.glcd_brightness_standby.value > 10)
|
||||
document.f.glcd_brightness_standby.value = 10;
|
||||
else if (document.f.glcd_brightness_standby.value < 0)
|
||||
document.f.glcd_brightness_standby.value = 0;
|
||||
document.f.submit();
|
||||
}
|
||||
/*]]>*/
|
||||
</script>
|
||||
</head>
|
||||
<body onload="do_init()">
|
||||
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
|
||||
<div class="work_box">
|
||||
<div class="work_box_head"><div class="work_box_head_h2">
|
||||
{=var-set:help_url=Help-Settings-LCD=}{=var-set:menu=GLCD Einstellungen=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
||||
<div class="work_box_body">
|
||||
<form name="f" class="y_form" action="">
|
||||
<table cellspacing="0" border="0" cellpadding="2" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="y_form_header">GLCD</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td title="glcd: off/on" width="35%">Power</td>
|
||||
<td>
|
||||
<input type="radio" name="glcd_enable" value="0" />AUS
|
||||
<input type="radio" name="glcd_enable" value="1" />EIN
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td title="inverse glcd: off/on">Invertieren</td>
|
||||
<td>
|
||||
<input type="radio" name="glcd_inverse" value="0" />AUS
|
||||
<input type="radio" name="glcd_inverse" value="1" />EIN
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td title="brightness after dimm-timeout">Helligkeit nach dimm-Timeout</td>
|
||||
<td>
|
||||
<input type="text" name="glcd_brightness_dim" size="3" maxlength="3" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td title="dimm-timeout">Dimm-Timeout</td>
|
||||
<td>
|
||||
<input type="text" name="glcd_brightness_dim_time" size="3" maxlength="3" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td title="lcd brightness normal 0-255">normale Helligkeit</td>
|
||||
<td>
|
||||
<input type="text" name="glcd_brightness" size="3" maxlength="3" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td title="lcd brightness standby 0-255">Standby Helligkeit</td>
|
||||
<td>
|
||||
<input type="text" name="glcd_brightness_standby" size="3" maxlength="3" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><a href="javascript:setDefault()" class="alink">Voreinstellung benutzen</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="y_form_header">Anzeige-Modi</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;glcd_save_settings;nix" />
|
||||
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">Speichern</button>
|
||||
<button type="button" ytype="refresh" onclick="dbox_reload_neutrino()">reload Neutrino</button>
|
||||
<a href="javascript:top.top_main.prim_menu.nav('info', 'Y_Info_Help.yhtm');" class="inlink">Hilfe</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{=include-block:Y_Blocks.txt;management_check_bottom=}
|
98
data/y-web/Y_Tools_Glcd_Screenshot.yhtm
Normal file
98
data/y-web/Y_Tools_Glcd_Screenshot.yhtm
Normal file
@@ -0,0 +1,98 @@
|
||||
|
||||
{=include-block:Y_Blocks.txt;head=}
|
||||
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
||||
<script type="text/javascript" src="/prototype.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var interval;
|
||||
|
||||
function do_snapshot() {
|
||||
|
||||
$('shot').hide();
|
||||
$('shot').src = "";
|
||||
$('buttons').hide();
|
||||
$('status').show();
|
||||
|
||||
var filename = "glcdscreenshot";
|
||||
if (id("filename").value != "") {
|
||||
filename = id("filename").value;
|
||||
}
|
||||
|
||||
loadSyncURL("/control/glcdscreenshot?name"+filename);
|
||||
|
||||
do_showshot(filename);
|
||||
}
|
||||
function do_showshot(_filename) {
|
||||
if (_filename == "")
|
||||
_filename = "glcdscreenshot";
|
||||
|
||||
$('status').hide();
|
||||
$('buttons').show();
|
||||
$('shot').src = "/tmp/"+_filename+".png?"+Math.random();
|
||||
$('shot').show();
|
||||
}
|
||||
function do_clearshot(){
|
||||
$('shot').hide();
|
||||
$('shot').src = "";
|
||||
|
||||
loadSyncURL("/control/exec?Y_Tools&screenshot_clear");
|
||||
}
|
||||
|
||||
function do_reload(){
|
||||
if (document.getElementById("checkReload").checked)
|
||||
interval = setInterval(do_snapshot, document.getElementById("inputReload").value + "000");
|
||||
else
|
||||
clearInterval(interval);
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
<body onload="do_snapshot();">
|
||||
<div class="work_box" id="work_box">
|
||||
<div class="work_box_head"><div class="work_box_head_h2">
|
||||
{=var-set:help_url==}{=var-set:menu={=L:bc.menue.screenshot=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
||||
<div class="work_box_body">
|
||||
<div id="screenshot_header">
|
||||
<div id="buttons" style="display: block">
|
||||
<div class="left">
|
||||
<button name="snapshot" ytype="snapshot" onclick="do_snapshot()">{=L:bc.screenshot.create=}</button>
|
||||
<button name="clearshot" ytype="clearshot" onclick="do_clearshot()">{=L:bc.screenshot.delete=}</button>
|
||||
</div>
|
||||
<div class="right">
|
||||
<form onsubmit="do_snapshot(); return false">
|
||||
{=L:filename=}: <input type="text" value="glcdscreenshot" id="filename" size="10" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="right">
|
||||
Reload: <input type="number" value="15" id="inputReload" min="1" max="180" title="{=L:bc.screenshot.reload_desc=}" disabled /> <input id="checkReload" name="checkReload" type="checkbox" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="status" style="display: none">
|
||||
<img src="/images/wait.gif" alt="{=L:bc.screenshot.wait_text=}"/>
|
||||
{=L:bc.screenshot.wait_text=}
|
||||
</div>
|
||||
</div>
|
||||
<table cellpadding="0" class="screenshot">
|
||||
<tr>
|
||||
<td class="shot">
|
||||
<img id="shot" src="" style="display: none" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('checkReload').onclick = function() {
|
||||
if (this.checked ) {
|
||||
interval = setInterval(do_snapshot, document.getElementById("inputReload").value + "000");
|
||||
document.getElementById("inputReload").disabled = false;
|
||||
} else {
|
||||
clearInterval(interval);
|
||||
document.getElementById("inputReload").disabled = true;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user