mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
add calculation of max power consumption to led confi (#406)
This commit is contained in:
parent
72e2f0bf18
commit
a76abdaafe
BIN
assets/firmware/arduino/mega_pwm_led_driver.fzz
Normal file
BIN
assets/firmware/arduino/mega_pwm_led_driver.fzz
Normal file
Binary file not shown.
@ -286,6 +286,7 @@
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p id="previewcreator" style="font-weight:bold"></p>
|
<p id="previewcreator" style="font-weight:bold"></p>
|
||||||
<p id="previewledcount" style="font-weight:bold"></p>
|
<p id="previewledcount" style="font-weight:bold"></p>
|
||||||
|
<p id="previewledpower" style="font-weight:bold"></p>
|
||||||
<div id="led_vis_help"></div>
|
<div id="led_vis_help"></div>
|
||||||
<div class="col-lg-12 st_helper" style="padding-left:0px; padding-right:0px">
|
<div class="col-lg-12 st_helper" style="padding-left:0px; padding-right:0px">
|
||||||
<div id="leds_preview"></div>
|
<div id="leds_preview"></div>
|
||||||
|
@ -104,10 +104,10 @@
|
|||||||
"conf_leds_optgroup_usb" : "USB",
|
"conf_leds_optgroup_usb" : "USB",
|
||||||
"conf_leds_optgroup_debug" : "Debug",
|
"conf_leds_optgroup_debug" : "Debug",
|
||||||
"conf_leds_layout_btn_checklist" : "Zeige Checkliste",
|
"conf_leds_layout_btn_checklist" : "Zeige Checkliste",
|
||||||
"conf_leds_leyout_checkp1" : "Die schwarze eingefärbte LED ist die erste LED. Das ist der Punkt, an dem die Daten eingespeist werden.",
|
"conf_leds_layout_checkp1" : "Die schwarze eingefärbte LED ist die erste LED. Das ist der Punkt, an dem die Daten eingespeist werden.",
|
||||||
"conf_leds_leyout_checkp2" : "Das Layout ist die Ansicht vor dem Fernseher stehend, nicht dahinter.",
|
"conf_leds_layout_checkp2" : "Das Layout ist die Ansicht vor dem Fernseher stehend, nicht dahinter.",
|
||||||
"conf_leds_leyout_checkp3" : "Stelle sicher, dass die Richtung richtig eingestellt ist, dazu ist die zweite und dritte LED grau markiert um den Datenfluss anzuzeigen.",
|
"conf_leds_layout_checkp3" : "Stelle sicher, dass die Richtung richtig eingestellt ist, dazu ist die zweite und dritte LED grau markiert um den Datenfluss anzuzeigen.",
|
||||||
"conf_leds_leyout_checkp4" : "Vorgang Lücke: Solltest du eine Lücke benötigen, ignoriere diese bei der LED Angabe Oben/Unten/Rechts/Links und gebe anschließend unter Lückenlänge an, wieviel LEDs du abziehen möchtest. Verändere jetzt die Lückenposition, um die Lücke an die richtige Stelle zu rücken.",
|
"conf_leds_layout_checkp4" : "Vorgang Lücke: Solltest du eine Lücke benötigen, ignoriere diese bei der LED Angabe Oben/Unten/Rechts/Links und gebe anschließend unter Lückenlänge an, wieviel LEDs du abziehen möchtest. Verändere jetzt die Lückenposition, um die Lücke an die richtige Stelle zu rücken.",
|
||||||
"conf_leds_layout_frame" : "Klassisches Layout (Rahmen)",
|
"conf_leds_layout_frame" : "Klassisches Layout (Rahmen)",
|
||||||
"conf_leds_layout_matrix" : "Matrix Layout (LED Wand)",
|
"conf_leds_layout_matrix" : "Matrix Layout (LED Wand)",
|
||||||
"conf_leds_layout_generatedconf" : "Generierte/Aktuelle LED Konfiguration",
|
"conf_leds_layout_generatedconf" : "Generierte/Aktuelle LED Konfiguration",
|
||||||
@ -119,6 +119,7 @@
|
|||||||
"conf_leds_layout_preview_originTEXT" : "Erstellt von: Textfeld",
|
"conf_leds_layout_preview_originTEXT" : "Erstellt von: Textfeld",
|
||||||
"conf_leds_layout_preview_originMA" : "Erstellt von: Matrix Layout (LED Wand)",
|
"conf_leds_layout_preview_originMA" : "Erstellt von: Matrix Layout (LED Wand)",
|
||||||
"conf_leds_layout_preview_totalleds" : "LEDs gesamt: $1",
|
"conf_leds_layout_preview_totalleds" : "LEDs gesamt: $1",
|
||||||
|
"conf_leds_layout_preview_ledpower" : "Max. Stromstärke: $1 A",
|
||||||
"conf_leds_layout_preview_l1" : "Das ist die erste LED (Einspeisung)",
|
"conf_leds_layout_preview_l1" : "Das ist die erste LED (Einspeisung)",
|
||||||
"conf_leds_layout_preview_l2" : "Das visualisiert die Richtung des Datenstroms (zweite/dritte LED)",
|
"conf_leds_layout_preview_l2" : "Das visualisiert die Richtung des Datenstroms (zweite/dritte LED)",
|
||||||
"conf_leds_layout_cl_top" : "Oben",
|
"conf_leds_layout_cl_top" : "Oben",
|
||||||
|
@ -104,10 +104,10 @@
|
|||||||
"conf_leds_optgroup_usb" : "USB",
|
"conf_leds_optgroup_usb" : "USB",
|
||||||
"conf_leds_optgroup_debug" : "Debug",
|
"conf_leds_optgroup_debug" : "Debug",
|
||||||
"conf_leds_layout_btn_checklist" : "Show checklist",
|
"conf_leds_layout_btn_checklist" : "Show checklist",
|
||||||
"conf_leds_leyout_checkp1" : "The black led is your first led, the first led is the point where you input your data signal.",
|
"conf_leds_layout_checkp1" : "The black led is your first led, the first led is the point where you input your data signal.",
|
||||||
"conf_leds_leyout_checkp2" : "The layout is always the front view of your TV, never the back view.",
|
"conf_leds_layout_checkp2" : "The layout is always the front view of your TV, never the back view.",
|
||||||
"conf_leds_leyout_checkp3" : "Make sure the direction is right. The grey leds indicate led number 2 and 3 to visualize the data direction.",
|
"conf_leds_layout_checkp3" : "Make sure the direction is right. The grey leds indicate led number 2 and 3 to visualize the data direction.",
|
||||||
"conf_leds_leyout_checkp4" : "Case Gap: To create a gap, ignore it first when you define Top/Bottom/Left/Right and set afterwards your gap length to remove a amount of leds. Modify the gap position until it matches.",
|
"conf_leds_layout_checkp4" : "Case Gap: To create a gap, ignore it first when you define Top/Bottom/Left/Right and set afterwards your gap length to remove a amount of leds. Modify the gap position until it matches.",
|
||||||
"conf_leds_layout_frame" : "Classic Layout (LED Frame)",
|
"conf_leds_layout_frame" : "Classic Layout (LED Frame)",
|
||||||
"conf_leds_layout_matrix" : "Matrix Layout (LED Wall)",
|
"conf_leds_layout_matrix" : "Matrix Layout (LED Wall)",
|
||||||
"conf_leds_layout_generatedconf" : "Generated/Current LED Configuration",
|
"conf_leds_layout_generatedconf" : "Generated/Current LED Configuration",
|
||||||
@ -118,7 +118,8 @@
|
|||||||
"conf_leds_layout_preview_originCL" : "Created from: Classic Layout (LED Frame)",
|
"conf_leds_layout_preview_originCL" : "Created from: Classic Layout (LED Frame)",
|
||||||
"conf_leds_layout_preview_originTEXT" : "Created from: Textfield",
|
"conf_leds_layout_preview_originTEXT" : "Created from: Textfield",
|
||||||
"conf_leds_layout_preview_originMA" : "Created from: Matrix Layout(LED wall)",
|
"conf_leds_layout_preview_originMA" : "Created from: Matrix Layout(LED wall)",
|
||||||
"conf_leds_layout_preview_totalleds" : "Totel LEDs: $1",
|
"conf_leds_layout_preview_totalleds" : "Amount of LEDs: $1",
|
||||||
|
"conf_leds_layout_preview_ledpower" : "Max. power consumption: $1 A",
|
||||||
"conf_leds_layout_preview_l1" : "This is your first led (input position)",
|
"conf_leds_layout_preview_l1" : "This is your first led (input position)",
|
||||||
"conf_leds_layout_preview_l2" : "This visualizes the data direction (second/third led)",
|
"conf_leds_layout_preview_l2" : "This visualizes the data direction (second/third led)",
|
||||||
"conf_leds_layout_cl_top" : "Top",
|
"conf_leds_layout_cl_top" : "Top",
|
||||||
|
@ -94,10 +94,10 @@
|
|||||||
"conf_leds_optgroup_usb": "USB",
|
"conf_leds_optgroup_usb": "USB",
|
||||||
"conf_leds_optgroup_debug": "Depurar",
|
"conf_leds_optgroup_debug": "Depurar",
|
||||||
"conf_leds_layout_btn_checklist": "Mostrar lista",
|
"conf_leds_layout_btn_checklist": "Mostrar lista",
|
||||||
"conf_leds_leyout_checkp1": "El led negro es tu primer led, el primer led es el punto donde introduces tu señal de datos.",
|
"conf_leds_layout_checkp1": "El led negro es tu primer led, el primer led es el punto donde introduces tu señal de datos.",
|
||||||
"conf_leds_leyout_checkp2": "La disposición es siempre la vista delantera de tu TV, nunca la visión posterior.",
|
"conf_leds_layout_checkp2": "La disposición es siempre la vista delantera de tu TV, nunca la visión posterior.",
|
||||||
"conf_leds_leyout_checkp3": "Asegúrate de que la dirección es correcta. Los leds grises indican los led números 2 y 3 para visualizar la dirección de los datos.",
|
"conf_leds_layout_checkp3": "Asegúrate de que la dirección es correcta. Los leds grises indican los led números 2 y 3 para visualizar la dirección de los datos.",
|
||||||
"conf_leds_leyout_checkp4": "Caso Hueco: Para crear un hueco, ignóralo primero cuando definas Superior/Inferior/Izquieda/Derecha y ajusta después su longitud de hueco para eliminar una cantidad de leds. Modifica la posición del hueco hasta que coincida.",
|
"conf_leds_layout_checkp4": "Caso Hueco: Para crear un hueco, ignóralo primero cuando definas Superior/Inferior/Izquieda/Derecha y ajusta después su longitud de hueco para eliminar una cantidad de leds. Modifica la posición del hueco hasta que coincida.",
|
||||||
"conf_leds_layout_frame": "Disposición Clásica (Marco LED)",
|
"conf_leds_layout_frame": "Disposición Clásica (Marco LED)",
|
||||||
"conf_leds_layout_matrix": "Disposición de Matriz (Pared LED)",
|
"conf_leds_layout_matrix": "Disposición de Matriz (Pared LED)",
|
||||||
"conf_leds_layout_generatedconf": "Configuración LED Generada/Actual",
|
"conf_leds_layout_generatedconf": "Configuración LED Generada/Actual",
|
||||||
@ -109,6 +109,7 @@
|
|||||||
"conf_leds_layout_preview_originTEXT": "Creado a partir de: Cuadro de texto",
|
"conf_leds_layout_preview_originTEXT": "Creado a partir de: Cuadro de texto",
|
||||||
"conf_leds_layout_preview_originMA": "Creado a partir de: Disposición en Matriz (Pared LED)",
|
"conf_leds_layout_preview_originMA": "Creado a partir de: Disposición en Matriz (Pared LED)",
|
||||||
"conf_leds_layout_preview_totalleds": "Total de LEDs:$1",
|
"conf_leds_layout_preview_totalleds": "Total de LEDs:$1",
|
||||||
|
"conf_leds_layout_preview_ledpower" : "Máximo consumo de energía: $1 A",
|
||||||
"conf_leds_layout_preview_l1": "Este es tu primer led (posición de entrada)",
|
"conf_leds_layout_preview_l1": "Este es tu primer led (posición de entrada)",
|
||||||
"conf_leds_layout_preview_l2": "Esto visualiza la dirección de datos (segundo/tercer led)",
|
"conf_leds_layout_preview_l2": "Esto visualiza la dirección de datos (segundo/tercer led)",
|
||||||
"conf_leds_layout_cl_top": "Superior",
|
"conf_leds_layout_cl_top": "Superior",
|
||||||
|
@ -35,6 +35,7 @@ function createLedPreview(leds, origin){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('#previewledcount').html($.i18n('conf_leds_layout_preview_totalleds', leds.length));
|
$('#previewledcount').html($.i18n('conf_leds_layout_preview_totalleds', leds.length));
|
||||||
|
$('#previewledpower').html($.i18n('conf_leds_layout_preview_ledpower', (leds.length * 0.06).toFixed(1)));
|
||||||
|
|
||||||
$('.st_helper').css("border", "8px solid grey");
|
$('.st_helper').css("border", "8px solid grey");
|
||||||
|
|
||||||
@ -498,7 +499,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
// open checklist
|
// open checklist
|
||||||
$('#leds_prev_checklist').off().on("click", function() {
|
$('#leds_prev_checklist').off().on("click", function() {
|
||||||
var liList = [$.i18n('conf_leds_leyout_checkp1'),$.i18n('conf_leds_leyout_checkp3'),$.i18n('conf_leds_leyout_checkp2'),$.i18n('conf_leds_leyout_checkp4')];
|
var liList = [$.i18n('conf_leds_layout_checkp1'),$.i18n('conf_leds_layout_checkp3'),$.i18n('conf_leds_layout_checkp2'),$.i18n('conf_leds_layout_checkp4')];
|
||||||
var ul = document.createElement("ul");
|
var ul = document.createElement("ul");
|
||||||
ul.className = "checklist"
|
ul.className = "checklist"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user