From 75fd7ed8ba62aa233e2fe536a8c7367acd44f4cf Mon Sep 17 00:00:00 2001 From: b1rdhous3 Date: Mon, 15 Aug 2016 13:51:41 +0200 Subject: [PATCH] Initial Hue Bridge support & Small changes (#177) * Initial WebUI with sample functions * Changed folder structure * Light Reset Button and Translation fixing in Links * Indentation fixed * Reorganized menu and new function for setting effects * Styling fix * WebUI Initial Philips Hue support * Encoding, refactoring etc * Filename changes * Typo fix * Translation cleanup & adding * Added Favicon * Edited title --- assets/webconfig/effects.html | 3 +- assets/webconfig/favicon.ico | Bin 0 -> 1150 bytes assets/webconfig/huebridge.html | 113 ++++++++++++++++++ assets/webconfig/index.html | 96 ++++++++------- .../{confKodi.html => kodiconf.html} | 12 +- assets/webconfig/lang/de.json | 13 +- assets/webconfig/lighttest.html | 25 ++-- 7 files changed, 196 insertions(+), 66 deletions(-) create mode 100644 assets/webconfig/favicon.ico create mode 100644 assets/webconfig/huebridge.html rename assets/webconfig/{confKodi.html => kodiconf.html} (98%) diff --git a/assets/webconfig/effects.html b/assets/webconfig/effects.html index 4d5caae8..ac9c4116 100644 --- a/assets/webconfig/effects.html +++ b/assets/webconfig/effects.html @@ -5,7 +5,8 @@
Stop Effect
- + + diff --git a/assets/webconfig/index.html b/assets/webconfig/index.html index 440e898d..ec71dce7 100644 --- a/assets/webconfig/index.html +++ b/assets/webconfig/index.html @@ -9,40 +9,40 @@ - Hyperion - - + Hyperion - WebUI + + - + - + - + @@ -51,8 +51,9 @@ + - + @@ -78,7 +79,9 @@ + Redefine ambient light! + @@ -274,28 +277,32 @@
  • Dashboard
  • -
  • - Configuration - +
  • +
  • Support
  • + @@ -337,7 +344,7 @@ - + @@ -349,8 +356,8 @@ - - + + @@ -364,20 +371,25 @@ $(document).ready( function() { $("#load_lighttest").on("click", function() { - $("#page-wrapper").load("lighttest.html"); + $("#page-wrapper").load("lighttest.html"); }); - - $("#load_effects").on("click", function() { - $("#page-wrapper").load("effects.html"); - }); - $("#load_support").on("click", function() { - $("#page-wrapper").load("support.html"); - }); - $("#load_confKodi").on("click", function() { - $("#page-wrapper").load("confKodi.html"); - }); - }); + $("#load_effects").on("click", function() { + $("#page-wrapper").load("effects.html"); + }); + + $("#load_huebridge").on("click", function() { + $("#page-wrapper").load("huebridge.html"); + }); + + $("#load_support").on("click", function() { + $("#page-wrapper").load("support.html"); + }); + + $("#load_confKodi").on("click", function() { + $("#page-wrapper").load("kodiconf.html"); + }); + }); $(function(){ var sidebar = $('#side-menu'); // cache sidebar to a variable for performance diff --git a/assets/webconfig/confKodi.html b/assets/webconfig/kodiconf.html similarity index 98% rename from assets/webconfig/confKodi.html rename to assets/webconfig/kodiconf.html index 2c8e4717..862a3c72 100644 --- a/assets/webconfig/confKodi.html +++ b/assets/webconfig/kodiconf.html @@ -3,7 +3,7 @@

    Kodi Watch

    -
    +

    The Kodi Watcher enables you to enable and disable the screencapture depending on Kodi state. This is not limited to the same machine, you could observe also a Kodi on any other device at your network.

    - +
    - +
    @@ -41,7 +41,7 @@
    - +
    - +
    @@ -134,4 +134,4 @@
    -
    \ No newline at end of file + diff --git a/assets/webconfig/lang/de.json b/assets/webconfig/lang/de.json index b5cd58c1..acb422a2 100644 --- a/assets/webconfig/lang/de.json +++ b/assets/webconfig/lang/de.json @@ -1,19 +1,22 @@ { "token": { - "I am translated":"Ich bin übersetzt.", - "tokentest":"Ich bin ein Token Test", "English":"Englisch", "German":"Deutsch", "lighttesttoken":"Farbe: ", - "Light test":"Lichttest", "menulighttesttoken":"Lichttest", "buttoncolorresettoken":"Farbe zurücksetzen", "menueffectstoken":"Effekte", "buttoneffectstoptoken":"Stoppe Effekte", - "menuremotecontroltoken":"Fernbedienung" + "menuremotecontroltoken":"Fernbedienung", + "hue_failure_ip_token":"Bitte überprüfe deine IP Adresse.", + "Username:":"Benutzername:", + "hue_button_create_user_token":"Benutzer anlegen", + "hue_press_link_modal":"Link Taste auf der Hue Bridge drücken und mit Button bestätigen.", + "hue_press_link_modal_failure":"Bitte drücke die Link Taste auf deiner Hue Bridge.", + "hue_button_pair":"Verbinden" }, "regex": [ ["^Something at start of text", ""], ["This will be case insensitive", "i", ""] ] -} \ No newline at end of file +} diff --git a/assets/webconfig/lighttest.html b/assets/webconfig/lighttest.html index a9dbd226..dfdbc144 100644 --- a/assets/webconfig/lighttest.html +++ b/assets/webconfig/lighttest.html @@ -4,7 +4,7 @@
    -

    Light test

    +

    Light test

    Color:
    @@ -24,17 +24,18 @@ \ No newline at end of file +