diff --git a/.gitignore b/.gitignore index b7b2e79c..272d4c32 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ CMakeCache.txt *.log /HyperionConfig.h /lib +.directory diff --git a/assets/webconfig/content/dashboard.html b/assets/webconfig/content/dashboard.html new file mode 100644 index 00000000..86dc848d --- /dev/null +++ b/assets/webconfig/content/dashboard.html @@ -0,0 +1,91 @@ +
+
+
+

Dashboard

+
+

The dashboard give you a quick overview about the status of Hyperion and show you the latest news of the Hyperion Blog.

+
+
+
+
+
+ + Information +
+
+ + + + + + + + + + + + + + + + + + + +
Your Hyperion version:unknown
Latest version:unknown
LED type:unknown
Device:
+
+ +
+
+
+
+
+
+ + Components status +
+
+ + + + + + + + + + + + + + + + + + + + + +
ComponentStatus
Kodi Watch
Blackborder
Booteffect
+
+
+
+
+
+
+ + Latest blog posts +
+
+ +
+
+
+ +
+ +
+ +
+ + diff --git a/assets/webconfig/content/effects.html b/assets/webconfig/content/effects.html new file mode 100644 index 00000000..6139942c --- /dev/null +++ b/assets/webconfig/content/effects.html @@ -0,0 +1,25 @@ +
+
+
+

Effects

+
+

The Effects remote enables you to set an effect for testing or demonstration purposes. Don't forget to stop it afterwards.

+
+
+
+ Stop Effect
+
+
+
+
+ + diff --git a/assets/webconfig/content/generalconf.html b/assets/webconfig/content/generalconf.html new file mode 100644 index 00000000..284b02e4 --- /dev/null +++ b/assets/webconfig/content/generalconf.html @@ -0,0 +1,106 @@ +
+
+
+

General

+
+

You can edit the general configuration here.

+
+
+
+
+
+ +
+
+
+
+ + + diff --git a/assets/webconfig/huebridge.html b/assets/webconfig/content/huebridge.html similarity index 100% rename from assets/webconfig/huebridge.html rename to assets/webconfig/content/huebridge.html diff --git a/assets/webconfig/content/input_selection.html b/assets/webconfig/content/input_selection.html new file mode 100644 index 00000000..8188915b --- /dev/null +++ b/assets/webconfig/content/input_selection.html @@ -0,0 +1,34 @@ +
+
+
+ + + + diff --git a/assets/webconfig/kodiconf.html b/assets/webconfig/content/kodiconf.html similarity index 100% rename from assets/webconfig/kodiconf.html rename to assets/webconfig/content/kodiconf.html diff --git a/assets/webconfig/lighttest.html b/assets/webconfig/content/lighttest.html similarity index 63% rename from assets/webconfig/lighttest.html rename to assets/webconfig/content/lighttest.html index 76829aac..b93d6d6e 100644 --- a/assets/webconfig/lighttest.html +++ b/assets/webconfig/content/lighttest.html @@ -1,7 +1,7 @@
-
-
-

Colors

+
+
+

Colors

Set color:
@@ -25,12 +25,13 @@ $('#cp2').colorpicker({ format: 'rgb', - colorSelectors: {'default': '#777777', + colorSelectors: { + 'default': '#777777', 'primary': '#337ab7', 'success': '#5cb85c', - 'info': '#5bc0de', + 'info' : '#5bc0de', 'warning': '#f0ad4e', - 'danger': '#d9534f' + 'danger' : '#d9534f' }, customClass: 'colorpicker-2x', sliders: { @@ -48,19 +49,10 @@ }); $('#cp2').colorpicker().on('changeColor', function(e) { - //console.log(e.color.toRGB()); - webSocket.send('{"command":"color", "color":['+e.color.toRGB().r+','+e.color.toRGB().g+','+e.color.toRGB().b+'], "priority":1}'); + color = e.color.toRGB(); + requestSetColor(color.r, color.g, color.b); }); }); - - $("#reset_color").on("click", function() { - webSocket.send('{"command":"clear", "priority":1}'); - }); - - - - webSocket.onmessage = function(event){ - console.log(event.data); - } + $("#reset_color").on("click", requestPriorityClear); diff --git a/assets/webconfig/content/remote_components.html b/assets/webconfig/content/remote_components.html new file mode 100644 index 00000000..e8a5765b --- /dev/null +++ b/assets/webconfig/content/remote_components.html @@ -0,0 +1,26 @@ +
+
+
+

Effects

+
+

The components remote enables you to disable and enable certain components of Hyperion during runtime. Keep in mind this persist just until the next reboot! To enable/disable components permament, use the configuration section.

+
+
+
+
+
+
+
+ + diff --git a/assets/webconfig/support.html b/assets/webconfig/content/support.html similarity index 99% rename from assets/webconfig/support.html rename to assets/webconfig/content/support.html index 0d96648b..fce63158 100644 --- a/assets/webconfig/support.html +++ b/assets/webconfig/content/support.html @@ -110,4 +110,4 @@
-
\ No newline at end of file +
diff --git a/assets/webconfig/content/update.html b/assets/webconfig/content/update.html new file mode 100644 index 00000000..853d1e23 --- /dev/null +++ b/assets/webconfig/content/update.html @@ -0,0 +1,23 @@ +
+
+
+

Update

+
+

This page gives you an overview of all Hyperion versions available. On top you could update or downgrade your version of Hyperion whenever you want. Sorted from newest to oldest

+
+
+

+
+
+
+
+
+
+ + diff --git a/assets/webconfig/effects.html b/assets/webconfig/effects.html deleted file mode 100644 index 917f4e92..00000000 --- a/assets/webconfig/effects.html +++ /dev/null @@ -1,39 +0,0 @@ -
-
-
-

Effects

-
-

The Effects remote enables you to set an effect for testing or demonstration purposes. Don't forget to stop it afterwards.

-
-
-
- Stop Effect
-
-
-
-
- - diff --git a/assets/webconfig/generalconf.html b/assets/webconfig/generalconf.html deleted file mode 100644 index b0d9fda4..00000000 --- a/assets/webconfig/generalconf.html +++ /dev/null @@ -1,105 +0,0 @@ -
-
-
-

General

-
-

You can edit the general configuration here.

-
-
-
-
-
- - -
-
-
-
- - - diff --git a/assets/webconfig/index.html b/assets/webconfig/index.html index 2d82cc24..fcbcd600 100644 --- a/assets/webconfig/index.html +++ b/assets/webconfig/index.html @@ -3,31 +3,32 @@ - - - - + + + + - Hyperion - WebUI + Hyperion - WebUI - + - + + - - + + - - + + - - + + @@ -49,481 +50,279 @@ - - + + - - + + - - + + - - + + - - - + + + -
+
- - - - + +
- - +
+ + +