2016-08-31 17:19:41 +02:00
<!DOCTYPE html>
2016-08-13 20:05:01 +02:00
< html lang = "en" >
2016-06-12 22:27:24 +02:00
< head >
2016-08-13 20:05:01 +02:00
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< meta name = "description" content = "" >
2016-08-15 13:51:41 +02:00
< title > Hyperion - WebUI< / title >
2016-08-20 16:36:01 +02:00
<!-- jQuery -->
2016-08-23 19:42:16 +02:00
< script src = "js/lib/jquery.min.js" > < / script >
2016-08-20 16:36:01 +02:00
< script src = "js/hyperion.js" > < / script >
2016-08-23 19:42:16 +02:00
<!-- Colorpicker -->
< script src = "js/lib/bootstrap-colorpicker.min.js" > < / script >
< link href = "css/bootstrap-colorpicker.min.css" rel = "stylesheet" >
2016-08-20 16:36:01 +02:00
<!-- Bootstrap Switch -->
2016-08-23 19:42:16 +02:00
< script src = "js/lib/bootstrap-switch.min.js" > < / script >
2016-08-20 16:36:01 +02:00
< link href = "css/bootstrap-switch.min.css" rel = "stylesheet" >
2016-08-13 20:05:01 +02:00
2016-08-18 21:14:50 +02:00
<!-- JSONForm -->
2016-08-31 17:19:41 +02:00
<!-- <script src="js/lib/underscore.js"></script>
< script src = "js/lib/jsonform.js" > < / script > -->
2016-08-30 23:49:21 +02:00
< script src = "js/lib/jsoneditor.min.js" > < / script >
2016-08-13 20:05:01 +02:00
<!-- Language Support -->
2016-08-23 19:42:16 +02:00
< script src = "js/lib/jquery-lang.js" charset = "utf-8" type = "text/javascript" > < / script >
< script src = "js/lib/js.cookie.js" > < / script >
2016-08-15 13:51:41 +02:00
2016-08-13 20:05:01 +02:00
< script type = "text/javascript" >
// Create language switcher instance
var lang = new Lang();
lang.dynamic('de', 'lang/de.json');
lang.init({
defaultLang: 'en',
cookie: {
name: 'langCookie',
expiry: 365,
path: '/'
},
allowCookieOverride: true
});
< / script >
2016-08-15 13:51:41 +02:00
2016-08-13 20:05:01 +02:00
<!-- Bootstrap Core CSS -->
2016-08-18 21:14:50 +02:00
< link href = "css/bootstrap.css" rel = "stylesheet" >
2016-08-15 13:51:41 +02:00
2016-08-13 20:05:01 +02:00
<!-- Flags -->
< link href = "css/flag-icon.min.css" rel = "stylesheet" >
<!-- MetisMenu CSS -->
< link href = "css/metisMenu.css" rel = "stylesheet" >
<!-- Custom CSS -->
< link href = "css/sb-admin-2.css" rel = "stylesheet" >
2016-08-15 13:51:41 +02:00
2016-08-13 22:01:07 +02:00
< link href = "css/hyperion.css" rel = "stylesheet" >
2016-08-15 13:51:41 +02:00
2016-08-13 20:05:01 +02:00
<!-- Custom Fonts -->
< link href = "css/font-awesome.min.css" rel = "stylesheet" type = "text/css" >
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!-- [if lt IE 9]>
< script src = "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" > < / script >
< script src = "https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" > < / script >
<![endif]-->
2016-06-12 22:27:24 +02:00
< / head >
2016-08-13 20:05:01 +02:00
2016-06-12 22:27:24 +02:00
< body >
2016-08-13 20:05:01 +02:00
< div id = "wrapper" >
<!-- Navigation -->
< nav class = "navbar navbar-default navbar-static-top" role = "navigation" style = "margin-bottom: 0" >
< div class = "navbar-header" >
< button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = ".navbar-collapse" >
< span class = "sr-only" > Toggle navigation< / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
2016-08-15 13:51:41 +02:00
2016-08-13 22:01:07 +02:00
< a class = "navbar-brand" href = "index.html" > < img src = "img/hyperion/hyperionlogo.png" alt = "Redefine ambient light!" > < / a >
2016-08-15 13:51:41 +02:00
2016-06-12 22:27:24 +02:00
< / div >
2016-08-13 20:05:01 +02:00
<!-- /.navbar - header -->
< ul class = "nav navbar-top-links navbar-right" >
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" href = "#" >
< i class = "fa fa-globe fa-fw" > < / i > < i class = "fa fa-caret-down" > < / i >
< / a >
< ul class = "dropdown-menu dropdown-language" >
< li >
2016-08-16 00:20:31 +02:00
< a href = "#lang-en" onclick = "window.lang.change('en'); return false;" > < span lang = "en" class = "flag-icon flag-icon-gb" data-lang-token = "general_speech_en" >   English< / span > < / a >
2016-08-13 20:05:01 +02:00
< / li >
< li class = "divider" > < / li >
< li >
2016-08-16 00:20:31 +02:00
< a href = "#lang-de" onclick = "window.lang.change('de'); return false;" > < span lang = "en" class = "flag-icon flag-icon-de" data-lang-token = "general_speech_de" >   German< / span > < / a >
2016-08-13 20:05:01 +02:00
< / li >
< / ul >
<!-- /.dropdown - language -->
< / li >
<!-- /.dropdown -->
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" href = "#" >
< i class = "fa fa-tasks fa-fw" > < / i > < i class = "fa fa-caret-down" > < / i >
< / a >
< ul class = "dropdown-menu dropdown-tasks" >
< li >
< a href = "#" >
< div >
< p >
< strong > Task 1< / strong >
< span class = "pull-right text-muted" > 40% Complete< / span >
< / p >
< div class = "progress progress-striped active" >
< div class = "progress-bar progress-bar-success" role = "progressbar" aria-valuenow = "40" aria-valuemin = "0" aria-valuemax = "100" style = "width: 40%" >
< span class = "sr-only" > 40% Complete (success)< / span >
< / div >
< / div >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a href = "#" >
< div >
< p >
< strong > Task 2< / strong >
< span class = "pull-right text-muted" > 20% Complete< / span >
< / p >
< div class = "progress progress-striped active" >
< div class = "progress-bar progress-bar-info" role = "progressbar" aria-valuenow = "20" aria-valuemin = "0" aria-valuemax = "100" style = "width: 20%" >
< span class = "sr-only" > 20% Complete< / span >
< / div >
< / div >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a href = "#" >
< div >
< p >
< strong > Task 3< / strong >
< span class = "pull-right text-muted" > 60% Complete< / span >
< / p >
< div class = "progress progress-striped active" >
< div class = "progress-bar progress-bar-warning" role = "progressbar" aria-valuenow = "60" aria-valuemin = "0" aria-valuemax = "100" style = "width: 60%" >
< span class = "sr-only" > 60% Complete (warning)< / span >
< / div >
< / div >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a href = "#" >
< div >
< p >
< strong > Task 4< / strong >
< span class = "pull-right text-muted" > 80% Complete< / span >
< / p >
< div class = "progress progress-striped active" >
< div class = "progress-bar progress-bar-danger" role = "progressbar" aria-valuenow = "80" aria-valuemin = "0" aria-valuemax = "100" style = "width: 80%" >
< span class = "sr-only" > 80% Complete (danger)< / span >
< / div >
< / div >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a class = "text-center" href = "#" >
< strong > See All Tasks< / strong >
< i class = "fa fa-angle-right" > < / i >
< / a >
< / li >
< / ul >
<!-- /.dropdown - tasks -->
< / li >
<!-- /.dropdown -->
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" href = "#" >
< i class = "fa fa-bell fa-fw" > < / i > < i class = "fa fa-caret-down" > < / i >
< / a >
< ul class = "dropdown-menu dropdown-alerts" >
< li >
< a href = "#" >
< div >
< i class = "fa fa-comment fa-fw" > < / i > New Comment
< span class = "pull-right text-muted small" > 4 minutes ago< / span >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a href = "#" >
< div >
< i class = "fa fa-twitter fa-fw" > < / i > 3 New Followers
< span class = "pull-right text-muted small" > 12 minutes ago< / span >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a href = "#" >
< div >
< i class = "fa fa-envelope fa-fw" > < / i > Message Sent
< span class = "pull-right text-muted small" > 4 minutes ago< / span >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a href = "#" >
< div >
< i class = "fa fa-tasks fa-fw" > < / i > New Task
< span class = "pull-right text-muted small" > 4 minutes ago< / span >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a href = "#" >
< div >
< i class = "fa fa-upload fa-fw" > < / i > Server Rebooted
< span class = "pull-right text-muted small" > 4 minutes ago< / span >
< / div >
< / a >
< / li >
< li class = "divider" > < / li >
< li >
< a class = "text-center" href = "#" >
< strong > See All Alerts< / strong >
< i class = "fa fa-angle-right" > < / i >
< / a >
< / li >
< / ul >
<!-- /.dropdown - alerts -->
< / li >
<!-- /.dropdown -->
< li class = "dropdown" >
< a class = "dropdown-toggle" data-toggle = "dropdown" href = "#" >
< i class = "fa fa-user fa-fw" > < / i > < i class = "fa fa-caret-down" > < / i >
< / a >
< ul class = "dropdown-menu dropdown-user" >
2016-08-14 21:19:12 +02:00
< li > < a href = "#" > < i class = "fa fa-user fa-fw" > < / i > User Profile< / a >
2016-08-13 20:05:01 +02:00
< / li >
2016-08-14 21:19:12 +02:00
< li > < a href = "#" > < i class = "fa fa-gear fa-fw" > < / i > Settings< / a >
2016-08-13 20:05:01 +02:00
< / li >
< li class = "divider" > < / li >
2016-08-14 21:19:12 +02:00
< li > < a href = "login.html" > < i class = "fa fa-sign-out fa-fw" > < / i > Logout< / a >
2016-08-13 20:05:01 +02:00
< / li >
< / ul >
<!-- /.dropdown - user -->
< / li >
<!-- /.dropdown -->
< / ul >
<!-- /.navbar - top - links -->
< div class = "navbar-default sidebar" role = "navigation" >
< div class = "sidebar-nav navbar-collapse" >
< ul class = "nav" id = "side-menu" >
< li class = "sidebar-search" >
< div class = "input-group custom-search-form" >
< input type = "text" class = "form-control" placeholder = "Search..." >
< span class = "input-group-btn" >
< button class = "btn btn-default" type = "button" >
< i class = "fa fa-search" > < / i >
< / button >
< / span >
< / div >
<!-- /input - group -->
< / li >
< li >
2016-08-16 00:20:31 +02:00
< a class = "active" href = "index.html" > < i class = "fa fa-dashboard fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_dashboard_token" > Dashboard< / span > < / a >
2016-08-13 20:05:01 +02:00
< / li >
2016-08-24 20:09:27 +02:00
< li >
< a class = "inactive" href = "#" > < i class = "fa fa-cog fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_configuration_token" > Configuration< / span > < span class = "fa arrow" > < / span > < / a >
< ul class = "nav nav-second-level" >
< li >
< a class = "inactive" href = "#" id = "load_confGeneral" > < i class = "fa fa-play-circle-o fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_general_conf_token" > General< / span > < / a >
< / li >
< li >
< a class = "inactive" href = "#" id = "load_confKodi" > < i class = "fa fa-play-circle-o fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_kodiwatch_token" > Kodi Watch< / span > < / a >
< / li >
< li >
< a class = "inactive" href = "#" id = "load_huebridge" > < i class = "fa fa-cog fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_huebridge_token" > Hue Bridge< / span > < / a >
< / li >
< / ul >
< / li >
< li >
< a class = "inactive" href = "#" > < i class = "fa fa-lightbulb-o fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_remotecontrol_token" > Remote Control< / span > < span class = "fa arrow" > < / span > < / a >
< ul class = "nav nav-second-level" >
< li >
< a class = "inactive" href = "#" id = "load_lighttest" > < i class = "fa fa-lightbulb-o fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_colors_token" > Colors< / span > < / a >
< / li >
< li >
< a class = "inactive" href = "#" id = "load_effects" > < i class = "fa fa-certificate fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_effects_token" > Effects< / span > < / a >
< / li >
< li >
< a class = "inactive" href = "#" id = "load_components" > < i class = "fa fa-list fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_component_token" > Components< / span > < / a >
< / li >
< / ul >
< / li >
< li >
< a class = "inactive" href = "#" id = "load_support" > < i class = "fa fa-info fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_support_token" > Support< / span > < / a >
< / li >
< li >
< a class = "inactive" href = "#" > < i class = "fa fa-cog fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_system_token" > System< / span > < span class = "fa arrow" > < / span > < / a >
< ul class = "nav nav-second-level" >
< li >
< a class = "inactive" href = "#" id = "load_update" > < i class = "fa fa-download fa-fw" > < / i > < span lang = "en" data-lang-token = "main_menu_update_token" > Update< / span > < / a >
< / li >
< / ul >
< / li >
2016-08-15 13:51:41 +02:00
2016-08-13 20:05:01 +02:00
< / ul >
< / div >
<!-- /.sidebar - collapse -->
2016-06-12 22:27:24 +02:00
< / div >
2016-08-13 20:05:01 +02:00
<!-- /.navbar - static - side -->
< / nav >
<!-- Page Content -->
< div id = "page-wrapper" >
< div class = "container-fluid" >
< div class = "row" >
< div class = "col-lg-12" >
< h1 class = "page-header" > Dashboard< / h1 >
2016-08-16 00:20:31 +02:00
< div class = "introd" >
< h4 lang = "en" data-lang-token = "dashboard_label_intro" > The dashboard give you a quick overview about the status of Hyperion and show you the latest news of the Hyperion Blog.< / h4 >
< / div >
2016-08-30 23:25:27 +02:00
< hr >
< button type = "button" class = "btn btn-info" data-toggle = "modal" data-target = "#myModal" > Change JSON port< / button >
2016-08-16 00:20:31 +02:00
< hr >
2016-08-14 21:19:12 +02:00
< div class = "col-lg-4" >
< div class = "panel panel-default" >
< div class = "panel-heading" >
< i class = "fa fa-info-circle fa-fw" > < / i >
2016-08-16 00:20:31 +02:00
< span lang = "en" data-lang-token = "dashboard_label_infobox_title" > Information< / span >
2016-08-14 21:19:12 +02:00
< / div >
< div class = "panel-body" >
2016-08-23 20:17:50 +02:00
< table class = "table borderless" >
< tbody >
< tr >
< td lang = "en" data-lang-token = "dashboard_label_infobox_currenthyp" > Your Hyperion version:< / td >
2016-08-30 23:25:27 +02:00
< td id = "currentversion" > unknown< / td >
2016-08-23 20:17:50 +02:00
< / tr >
2016-08-30 23:25:27 +02:00
< tr >
2016-08-23 20:17:50 +02:00
< td lang = "en" data-lang-token = "dashboard_label_infobox_latesthyp" > Latest version:< / td >
2016-08-30 23:25:27 +02:00
< td id = "latestversion" > unknown< / td >
< / tr >
< tr >
< td lang = "en" data-lang-token = "dashboard_label_infobox_leddevice" > LED type:< / td >
< td id = "dash_leddevice" > unknown< / td >
2016-08-23 20:17:50 +02:00
< / tr >
< tr >
< td lang = "en" data-lang-token = "dashboard_label_infobox_device" > Device:< / td >
2016-08-30 23:25:27 +02:00
< td id = "dash_systeminfo" > < / td >
2016-08-23 20:17:50 +02:00
< / tr >
< / tbody >
< / table >
< hr >
< span id = "versioninforesult" > < / span >
2016-08-14 21:19:12 +02:00
< / div >
< / div >
< / div >
2016-08-16 00:20:31 +02:00
< div class = "col-lg-3" >
< div class = "panel panel-default" >
< div class = "panel-heading" >
< i class = "fa fa-eye fa-fw" > < / i >
< span lang = "en" data-lang-token = "dashboard_label_componentbox_title" > Components status< / span >
< / div >
< div class = "panel-body" >
< table class = "table" >
< thead >
< tr >
< th > Component< / th >
< th > Status< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td > Kodi Watch< / td >
< td > < i class = "fa fa-circle component-on" > < / i > < / td >
< / tr >
< tr >
< td > Blackborder< / td >
< td > < i class = "fa fa-circle component-off" > < / i > < / td >
< / tr >
< tr >
< td > Booteffect< / td >
< td > < i class = "fa fa-circle component-off" > < / i > < / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
< / div >
< div class = "col-lg-5" >
2016-08-14 21:19:12 +02:00
< div class = "panel panel-default" >
< div class = "panel-heading" >
< i class = "fa fa-newspaper-o fa-fw" > < / i >
2016-08-16 00:20:31 +02:00
< span lang = "en" data-lang-token = "dashboard_label_newsbox_title" > Latest blog posts< / span >
2016-08-14 21:19:12 +02:00
< / div >
< div class = "panel-body" >
< / div >
< / div >
< / div >
2016-08-15 13:51:41 +02:00
2016-08-13 20:05:01 +02:00
< / div >
<!-- /.col - lg - 12 -->
< / div >
<!-- /.row -->
2016-06-12 22:27:24 +02:00
< / div >
2016-08-13 20:05:01 +02:00
<!-- /.container - fluid -->
2016-08-14 21:19:12 +02:00
< / div >
2016-08-13 20:05:01 +02:00
<!-- /#page - wrapper -->
2016-06-12 22:27:24 +02:00
< / div >
2016-08-13 20:05:01 +02:00
<!-- /#wrapper -->
2016-08-15 13:51:41 +02:00
2016-08-30 23:25:27 +02:00
<!-- Modal -->
< div id = "myModal" class = "modal fade" role = "dialog" >
< div class = "modal-dialog" >
<!-- Modal content -->
< div class = "modal-content" >
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" > × < / button >
< h4 class = "modal-title" > Modal Test and port changer< / h4 >
< / div >
< div class = "modal-body" >
< p > Input the JSON port you want to connect and press reload< / p >
< form class = "form-inline" >
< div class = "form-group" >
< label for = "port" > Your JSON Port:< / label >
< input type = "number" min = "100" max = "65535" value = "19444" class = "form-control" id = "json_port" >
< / div >
< / form >
< / div >
< div class = "modal-footer" >
< button type = "button" onclick = "button_reloaddata()" class = "btn btn-primary" data-dismiss = "modal" > Reload!< / button >
< / div >
< / div >
< / div >
< / div >
< div id = "con_error_modal" class = "modal fade" role = "dialog" >
< div class = "modal-dialog" >
<!-- Modal content -->
< div class = "modal-content" id = "con_error_modal" >
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" > × < / button >
< h4 class = "modal-title" > Oh noes! Something went wrong!< / h4 >
< / div >
< div class = "modal-body" >
< p > We are sorry, the json port was not found. Just try another one!< / p >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-primary" data-dismiss = "modal" > Okay!< / button >
< / div >
< / div >
< / div >
< / div >
2016-08-13 20:05:01 +02:00
<!-- Bootstrap Core JavaScript -->
2016-08-23 19:42:16 +02:00
< script src = "js/lib/bootstrap.min.js" > < / script >
2016-08-13 20:05:01 +02:00
<!-- Metis Menu Plugin JavaScript -->
2016-08-23 19:42:16 +02:00
< script src = "js/lib/metisMenu.min.js" > < / script >
2016-08-13 20:05:01 +02:00
<!-- Custom Theme JavaScript -->
2016-08-23 19:42:16 +02:00
< script src = "js/lib/sb-admin-2.js" > < / script >
2016-08-13 20:05:01 +02:00
< script >
$(document).ready( function() {
$("#load_lighttest").on("click", function() {
2016-08-15 13:51:41 +02:00
$("#page-wrapper").load("lighttest.html");
2016-08-13 20:05:01 +02:00
});
$("#load_effects").on("click", function() {
2016-08-15 13:51:41 +02:00
$("#page-wrapper").load("effects.html");
2016-08-13 20:05:01 +02:00
});
2016-08-30 23:49:21 +02:00
2016-08-24 20:09:27 +02:00
$("#load_components").on("click", function() {
$("#page-wrapper").load("remote_components.html");
});
2016-08-15 13:51:41 +02:00
$("#load_huebridge").on("click", function() {
$("#page-wrapper").load("huebridge.html");
});
2016-08-14 21:19:12 +02:00
$("#load_support").on("click", function() {
2016-08-15 13:51:41 +02:00
$("#page-wrapper").load("support.html");
2016-08-14 21:19:12 +02:00
});
$("#load_confKodi").on("click", function() {
2016-08-15 13:51:41 +02:00
$("#page-wrapper").load("kodiconf.html");
2016-08-14 21:19:12 +02:00
});
2016-08-20 16:52:06 +02:00
$("#load_update").on("click", function() {
$("#page-wrapper").load("update.html");
});
2016-08-18 21:14:50 +02:00
$("#load_confGeneral").on("click", function() {
$("#page-wrapper").load("generalconf.html");
});
2016-08-20 16:36:01 +02:00
//Change all Checkboxes to Switches
$("[type='checkbox']").bootstrapSwitch();
2016-08-31 17:19:41 +02:00
loaddata();
2016-08-30 23:49:21 +02:00
2016-08-15 13:51:41 +02:00
});
2016-08-13 20:05:01 +02:00
$(function(){
var sidebar = $('#side-menu'); // cache sidebar to a variable for performance
sidebar.delegate('a.inactive','click',function(){
sidebar.find('.active').toggleClass('active inactive');
$(this).toggleClass('active inactive');
});
});
< / script >
2016-06-12 22:27:24 +02:00
< / body >
2016-08-13 20:05:01 +02:00
< / html >