2016-09-05 17:26:29 +02:00
2016-09-09 18:59:58 +02:00
< div class = "modal fade bs-pair-modal-lg" id = "pairmodal" tabindex = "-1" role = "dialog" aria-labelledby = "mySmallModalLabel" >
< div class = "modal-dialog modal-lg" role = "document" >
< div class = "modal-content" >
< div class = "modal-header" >
< h4 class = "modal-title" > Hue Bridge< / h4 >
< / div >
< div class = "modal-body" >
2016-12-04 19:32:23 +01:00
< span data-i18n = "hue_press_link_modal" > Please press link button on the Hue Bridge.< / span > < br / > < br / >
2016-09-09 18:59:58 +02:00
< center >
< span id = "connectionTime" > < / span > < br / >
< img src = "/img/hyperion/ring-alt.svg" / >
< center >
< / div >
< div class = "modal-footer" / >
< / div >
< / div >
< / div >
2016-09-07 20:10:37 +02:00
< div class = "container-fluid" >
2016-12-04 19:32:23 +01:00
< h2 class = "page-header" > < i class = "fa fa-lightbulb-o fa-fw" > < / i > < span data-i18n = "main_menu_leds_conf_token" > LED Hardware< / span > < / h2 >
2016-10-27 23:42:24 +02:00
< div class = "introd" >
2016-12-04 19:32:23 +01:00
< h4 data-i18n = "conf_leds_label_intro" > The LED controller of youre choice is your way to output the led data via Raspberry PI GPIO, USB or network! Choose one, define your led layout and enjoy the light!< / h4 >
2016-12-21 18:24:03 +01:00
< hr / >
2016-10-27 23:42:24 +02:00
< / div >
2016-12-21 18:24:03 +01:00
2016-09-06 10:14:54 +02:00
< ul id = "leds_cfg_nav" class = "nav nav-tabs" >
2016-12-04 19:32:23 +01:00
< li class = "active" > < a data-toggle = "tab" href = "#menu_controller" data-i18n = "conf_leds_nav_label_ledcontroller" > LED Controller< / a > < / li >
< li > < a data-toggle = "tab" href = "#menu_gencfg" data-i18n = "conf_leds_nav_label_ledlayout" > LED Layout< / a > < / li >
2016-09-06 10:14:54 +02:00
< / ul >
2016-09-05 17:26:29 +02:00
2016-09-06 10:14:54 +02:00
< div class = "tab-content" >
2016-09-05 17:26:29 +02:00
2016-09-07 20:10:37 +02:00
< div id = "menu_controller" class = "tab-pane fade in active" style = "padding-top:10px" >
2016-12-21 18:24:03 +01:00
< div class = "row" >
< div class = "col-lg-8" >
2016-09-07 20:10:37 +02:00
< div class = "panel panel-primary" >
2016-09-13 11:51:16 +02:00
< div class = "panel-heading form-group" style = "font-size:90%;white-space:nowrap;" >
2016-12-04 19:32:23 +01:00
< label for = "leddevices" data-i18n = "conf_leds_contr_label_contrtype" > Controller type:< / label >
2016-09-13 11:51:16 +02:00
< select id = "leddevices" class = "form-control" style = "color:black;width:auto;margin-left:10px;display:inline-block" / >
2016-09-09 18:59:58 +02:00
< / div >
2016-09-11 22:20:57 +02:00
2016-09-13 11:51:16 +02:00
< div class = "panel-body" >
< div id = "ledDeviceOptions" > < div id = 'editor_container' > < / div > < / div >
< div id = "huebridge" class = "container-fluid" style = "display:none" >
< hr / >
2016-12-04 19:32:23 +01:00
< button data-toggle = "collapse" class = "btn btn-success" data-target = "#huebridge_content" data-i18n = "hue_btn_setup_helper" > Hue Bridge Setup Helper< / button >
2016-09-13 11:51:16 +02:00
< div id = "huebridge_content" class = "collapse" >
2016-12-05 12:09:23 +01:00
< div class = "introd" style = "margin-top:20px;margin-bottom:20px" data-i18n = "hue_help_text" >
2016-09-13 11:51:16 +02:00
With this Setup Helper you can get a new User for your Hue Bridge and you can see your Lights with the IDs for Hyperion Configuration.
If you already have a working User you will see it below. But you can always create a new one as well.
< b > Remember:< / b > This is only a helper. You have to copy and paste them in your config above.
< / div >
< div class = "col-lg-12" >
2016-12-04 19:32:23 +01:00
< span id = "ip_alert" style = "display:none; color:red; font-weight: bold;" data-i18n = "hue_failure_ip_token" > Please check your IP Address.< / span >
< span id = "abortConnection" style = "display:none; color:red; font-weight: bold;" data-i18n = "hue_failure_connection_token" > Connection Timeout. Please press the button in time.< / span > < br / >
2016-09-13 11:51:16 +02:00
< div class = "form-group" >
2016-12-04 19:32:23 +01:00
< label for = "ip" data-i18n = "hue_label_ip" > Hue Bridge IP:< / label >
2016-09-13 11:51:16 +02:00
< input type = "text" class = "form-control" id = "ip" >
2016-12-04 19:32:23 +01:00
< label for = "user" data-i18n = "hue_label_username" > Hue Bridge Username:< / label >
2016-12-05 12:09:23 +01:00
< input type = "text" class = "form-control" id = "user" readonly = "readonly" >
2016-09-13 11:51:16 +02:00
< div id = "hue_lights" class = "row" > < / div >
2016-12-04 19:32:23 +01:00
< button type = "button" class = "btn btn-success" id = "create_user" > < i class = "fa fa-floppy-o" > < / i > < span data-i18n = "hue_button_create_user_token" > Create User< / span > < / button >
2016-09-13 11:51:16 +02:00
< / div >
< / div >
< / div >
2016-09-07 20:10:37 +02:00
< / div >
2016-09-13 11:51:16 +02:00
< / div >
2017-01-17 21:53:35 +01:00
< div class = "panel-footer" style = "text-align:right" >
< button id = 'btn_submit_controller' class = "btn btn-success" > < i class = "fa fa-fw fa-save" / > < span data-i18n = "general_button_savesettings" > Save Settings< / span > < / button >
2016-12-21 18:24:03 +01:00
< / div >
2016-09-07 20:10:37 +02:00
< / div >
< / div >
2016-12-21 18:24:03 +01:00
< / div >
< / div >
2016-09-11 22:20:57 +02:00
2016-09-07 20:10:37 +02:00
< div id = "menu_gencfg" class = "tab-pane fade" style = "padding-top:10px" >
2016-09-06 10:14:54 +02:00
2016-09-07 20:10:37 +02:00
< div class = "row" >
2016-11-30 17:32:12 +01:00
< div class = "col-lg-6 col-md-12" >
2016-09-07 20:10:37 +02:00
< div class = "panel-group" id = "accordion" >
< div class = "panel panel-primary" >
2016-11-18 18:39:27 +01:00
< div class = "panel-heading headcollapse" data-toggle = "collapse" data-parent = "#accordion" data-target = "#collapse1" >
2016-09-07 20:10:37 +02:00
< h4 class = "panel-title" >
2016-12-04 19:32:23 +01:00
< a > < i class = "fa fa-television fa-fw" > < / i > < span data-i18n = "conf_leds_layout_frame" > Classic Layout (LED Frame)< / span > < / a >
2016-09-07 20:10:37 +02:00
< / h4 >
< / div >
2017-01-17 21:53:35 +01:00
< div id = "collapse1" class = "panel-collapse collapse in" >
< div class = "panel-body" >
2016-12-21 18:24:03 +01:00
< table class = "table borderless" >
< tbody >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_cl_ledstop" data-i18n = "conf_leds_layout_cl_top" > Top< / label >
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_ledstop" type = "number" value = "10" min = "0" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_leds" > LEDs< / div >
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_cl_ledsbottom" data-i18n = "conf_leds_layout_cl_bottom" > Bottom< / label >
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_ledsbottom" type = "number" value = "10" min = "0" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_leds" > LEDs< / div >
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_cl_ledsleft" data-i18n = "conf_leds_layout_cl_left" > Left< / label >
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_ledsleft" type = "number" value = "6" min = "0" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_leds" > LEDs< / div >
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_cl_ledsright" data-i18n = "conf_leds_layout_cl_right" > Right< / label >
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_ledsright" type = "number" value = "6" min = "0" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_leds" > LEDs< / div >
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_cl_ledsglength" data-i18n = "conf_leds_layout_cl_gaglength" > Gap length< / label >
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_ledsglength" type = "number" value = "0" min = "0" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_leds" > LEDs< / div >
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_cl_ledsgpos" data-i18n = "conf_leds_layout_cl_gappos" > Gap position< / label >
< / td >
< td class = "itd" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_ledsgpos" type = "number" value = "0" min = "0" step = "1" >
2016-12-21 18:24:03 +01:00
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_cl_position" data-i18n = "conf_leds_layout_cl_inppos" > Input position< / label >
< / td >
< td class = "itd" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_position" type = "number" value = "0" step = "1" >
2016-12-21 18:24:03 +01:00
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_cl_reverse" data-i18n = "conf_leds_layout_cl_reversdir" > Reverse direction< / label >
< / td >
< td class = "itd" >
< div class = "checkbox" >
2017-01-17 21:53:35 +01:00
< input class = "ledCLconstr led_val_bool" id = "ip_cl_reverse" type = "checkbox" value = "false" > < / input >
2016-12-21 18:24:03 +01:00
< label > < / label >
2016-11-18 18:39:27 +01:00
< / div >
2016-12-21 18:24:03 +01:00
< / td >
< / tr >
< / tbody >
< / table >
< div class = "panel panel-default" >
< div class = "panel-heading headcollapse" data-toggle = "collapse" data-target = "#collapse3" >
< h4 class = "panel-title" >
< a > < span data-i18n = "conf_leds_layout_advanced" > Advanced settings< / span > < / a >
< / h4 >
< / div >
< div id = "collapse3" class = "panel-collapse collapse" >
< div class = "panel-body " >
< table class = "tableform borderless" >
< tbody >
< tr >
< td class = "ltd" >
2017-01-17 21:53:35 +01:00
< label class = "ltdlabel" for = "ip_cl_rawledshdepth" data-i18n = "conf_leds_layout_cl_hleddepth" > Horizontal LED depth< / label >
2016-12-21 18:24:03 +01:00
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_rawledshdepth" type = "number" value = "8" min = "1" max = "100" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_percent" > %< / div >
< / td >
< / tr >
< tr >
< td class = "ltd" >
2017-01-17 21:53:35 +01:00
< label class = "ltdlabel" for = "ip_cl_rawledsvdepth" data-i18n = "conf_leds_layout_cl_vleddepth" > Vertical LED depth< / label >
2016-12-21 18:24:03 +01:00
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_rawledsvdepth" type = "number" value = "5" min = "1" max = "100" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_percent" > %< / div >
< / td >
< / tr >
< tr >
< td class = "ltd" >
2017-01-17 21:53:35 +01:00
< label class = "ltdlabel" for = "ip_cl_rawledsedgegap" data-i18n = "conf_leds_layout_cl_edgegap" > Edge Gap< / label >
2016-12-21 18:24:03 +01:00
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_rawledsedgegap" type = "number" value = "0" min = "0" max = "50" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_percent" > %< / div >
< / td >
< / tr >
< tr >
< td class = "ltd" >
2017-01-17 21:53:35 +01:00
< label class = "ltdlabel" for = "ip_cl_rawledscornergap" data-i18n = "conf_leds_layout_cl_cornergap" > Corner Gap< / label >
2016-12-21 18:24:03 +01:00
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledCLconstr led_val_int" id = "ip_cl_rawledscornergap" type = "number" value = "0" min = "0" max = "50" step = "1" > < / input >
2016-12-21 18:24:03 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_percent" > %< / div >
< / td >
< / tr >
< / tbody >
< / table >
2016-11-18 18:39:27 +01:00
< / div >
< / div >
< / div >
< / div >
2017-01-17 21:53:35 +01:00
< div class = "panel-footer" style = "text-align:right;" >
< button id = "btn_cl_generate" class = "btn btn-warning" > < i class = "fa fa-fw fa-television" > < / i > < span data-i18n = "conf_leds_layout_cl_generate" > Generate LED configuration< / span > < / button >
< button id = "btn_cl_save" class = "btn btn-success" > < i class = "fa fa-fw fa-save" > < / i > < span data-i18n = "conf_leds_layout_button_savelay" > Save layout< / span > < / button >
2016-09-07 20:10:37 +02:00
< / div >
< / div >
2016-09-11 22:20:57 +02:00
< / div >
2016-12-21 18:24:03 +01:00
< div class = "panel panel-primary" >
2016-11-18 18:39:27 +01:00
< div class = "panel-heading headcollapse" data-toggle = "collapse" data-parent = "#accordion" data-target = "#collapse2" >
2016-09-07 20:10:37 +02:00
< h4 class = "panel-title" >
2016-12-04 19:32:23 +01:00
< a > < i class = "fa fa-th fa-fw" > < / i > < span data-i18n = "conf_leds_layout_matrix" > Matrix Configuration (LED wall)< / span > < / a >
2016-09-07 20:10:37 +02:00
< / h4 >
< / div >
< div id = "collapse2" class = "panel-collapse collapse" >
< div class = "panel-body" >
2016-12-21 18:24:03 +01:00
< table >
< tbody >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_ma_ledshoriz" data-i18n = "conf_leds_layout_ma_horiz" > Horizontal< / label >
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledMAconstr led_val_int" id = "ip_ma_ledshoriz" type = "number" value = "10" min = "1" step = "1" > < / input >
2016-12-04 19:32:23 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_leds" > LEDs< / div >
2016-12-21 18:24:03 +01:00
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_ma_ledsvert" data-i18n = "conf_leds_layout_ma_vert" > Vertical< / label >
< / td >
< td class = "itd input-group" >
2017-01-17 21:53:35 +01:00
< input class = "form-control ledMAconstr led_val_int" id = "ip_ma_ledsvert" type = "number" value = "10" min = "1" step = "1" > < / input >
2016-12-04 19:32:23 +01:00
< div class = "input-group-addon" data-i18n = "edt_append_leds" > LEDs< / div >
2016-12-21 18:24:03 +01:00
< / td >
< / tr >
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_ma_cabling" data-i18n = "conf_leds_layout_ma_cabling" > Cabling< / label >
< / td >
< td class = "itd" >
2017-01-17 21:53:35 +01:00
< select class = "form-control ledMAconstr led_val_string" id = "ip_ma_cabling" >
2016-12-04 19:32:23 +01:00
< option value = "snake" data-i18n = "conf_leds_layout_ma_optsnake" > Snake< / option >
< option value = "parallel" data-i18n = "conf_leds_layout_ma_optparallel" > Parallel< / option >
2016-11-18 18:39:27 +01:00
< / select >
2016-12-21 18:24:03 +01:00
< / td >
< / tr >
<!-- - <tr>
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_ma_order" data-i18n = "conf_leds_layout_ma_order" > Order< / label >
< / td >
< td class = "itd" >
2016-11-18 18:39:27 +01:00
< select class = "form-control ledMAconstr" id = "ip_ma_order" >
2016-12-04 19:32:23 +01:00
< option value = "horizontal" data-i18n = "conf_leds_layout_ma_opthoriz" > Horizontal< / option >
< option value = "vertical" data-i18n = "conf_leds_layout_ma_optvert" > Vertical< / option >
2016-11-18 18:39:27 +01:00
< / select >
2016-12-21 18:24:03 +01:00
< / td >
< / tr >
2016-11-18 18:39:27 +01:00
--->
2016-12-21 18:24:03 +01:00
< tr >
< td class = "ltd" >
< label class = "ltdlabel" for = "ip_ma_start" data-i18n = "conf_leds_layout_ma_position" > Input< / label >
< / td >
< td class = "itd" >
2017-01-17 21:53:35 +01:00
< select class = "form-control ledMAconstr led_val_string" id = "ip_ma_start" >
2016-12-04 19:32:23 +01:00
< option value = "top-left" data-i18n = "conf_leds_layout_ma_opttopleft" > Top left< / option >
< option value = "top-right" data-i18n = "conf_leds_layout_ma_opttopright" > Top right< / option >
< option value = "bottom-left" data-i18n = "conf_leds_layout_ma_optbottomleft" > Bottom left< / option >
< option value = "bottom-right" data-i18n = "conf_leds_layout_ma_optbottomright" > Bottom right< / option >
2016-11-18 18:39:27 +01:00
< / select >
2016-12-21 18:24:03 +01:00
< / td >
< / tr >
< / tbody >
< / table >
2016-11-18 18:39:27 +01:00
< / div >
2017-01-17 21:53:35 +01:00
< div class = "panel-footer" style = "text-align:right;" >
< button id = "btn_ma_generate" class = "btn btn-warning" > < i class = "fa fa-fw fa-th" > < / i > < span data-i18n = "conf_leds_layout_cl_generate" > Generate LED configuration< / span > < / button >
< button id = "btn_ma_save" class = "btn btn-success" > < i class = "fa fa-fw fa-save" > < / i > < span data-i18n = "conf_leds_layout_button_savelay" > Save layout< / span > < / button >
2016-11-18 18:39:27 +01:00
< / div >
< / div >
2016-12-21 18:24:03 +01:00
< / div >
2017-01-17 21:53:35 +01:00
< div id = "texfield_panel" class = "panel panel-primary" >
< div class = "panel-heading headcollapse" data-toggle = "collapse" data-parent = "#accordion" data-target = "#collapse4" >
< h4 class = "panel-title" >
< a > < i class = "fa fa-wrench fa-fw" > < / i > < span data-i18n = "conf_leds_layout_generatedconf" > Generated/Actual LED Configuration< / span > < / a >
< / h4 >
< / div >
< div id = "collapse4" class = "panel-collapse collapse" >
< div class = "panel-body" >
< p data-i18n = "conf_leds_layout_textf1" > This textfield shows by default your current loaded layout and will be overwritten if you generate a new one above. Optional you could perform further edits.< / p >
< b > < p data-i18n = "conf_leds_layout_textf2" > Don't forget to save!< / p > < / b >
< textarea rows = "25" id = "ledconfig" class = "form-control" > < / textarea >
< / div >
< div class = "panel-footer" >
< button type = "button" class = "btn btn-warning" id = "leds_custom_updsim" > < i class = "fa fa-search fa-fw" > < / i > < span data-i18n = "conf_leds_layout_button_updsim" > Update preview< / span > < / button >
< button type = "button" class = "btn btn-success pull-right" id = "leds_custom_save" > < i class = "fa fa-fw fa-save" > < / i > < span data-i18n = "conf_leds_layout_button_savelay" > Save layout< / span > < / button >
< / div >
< / div >
< / div >
2016-11-18 18:39:27 +01:00
< / div >
2016-12-21 18:24:03 +01:00
< / div > <!-- accordion -->
< div class = "col-lg-6 col-md-12" >
< div class = "panel panel-primary" >
< div class = "panel-heading" >
< h4 class = "panel-title" > < i class = "fa fa-search fa-fw" > < / i > < span data-i18n = "conf_leds_layout_peview" > LED Layout preview< / span > < / h4 >
< / div >
< div class = "panel-body" >
2017-01-17 21:53:35 +01:00
< p id = "previewcreator" style = "font-weight:bold" > < / p >
< p id = "previewledcount" style = "font-weight:bold" > < / p >
2016-12-21 18:24:03 +01:00
< div class = "col-lg-12 st_helper" style = "padding-left:0px; padding-right:0px" >
< div id = "leds_preview" > < / div >
< / div >
< / div >
< div class = "panel-footer" >
2017-01-17 21:53:35 +01:00
< button type = "button" class = "btn btn-danger" id = "leds_prev_toggle_num" > < i class = "fa fa-info fa-fw" > < / i > < span data-i18n = "main_ledsim_btn_togglelednumber" > toggle led numbers< / span > < / button >
2016-09-07 20:10:37 +02:00
< / div >
2016-11-30 17:32:12 +01:00
< / div >
< / div >
2016-12-21 18:24:03 +01:00
< / div >
2016-09-07 20:10:37 +02:00
< / div > <!-- row layout -->
< / div >
2016-12-21 18:24:03 +01:00
< / div >
2016-09-07 20:10:37 +02:00
2016-09-05 17:26:29 +02:00
2016-09-06 10:14:54 +02:00
< / div > <!-- tab content -->
2016-09-07 20:10:37 +02:00
< / div >
2016-09-05 17:26:29 +02:00
2016-09-06 10:14:54 +02:00
< script src = "/js/content_leds.js" > < / script >
2016-09-09 18:59:58 +02:00
< script src = "/js/content_huebridge.js" > < / script >