diff --git a/web-old/aqualink-black.png b/web-old/aqualink-black.png
deleted file mode 100644
index 53c5971..0000000
Binary files a/web-old/aqualink-black.png and /dev/null differ
diff --git a/web-old/aqualink-transparent.png b/web-old/aqualink-transparent.png
deleted file mode 100644
index 63235f6..0000000
Binary files a/web-old/aqualink-transparent.png and /dev/null differ
diff --git a/web-old/aqualinkd-new.png b/web-old/aqualinkd-new.png
deleted file mode 100644
index 9ffcfd0..0000000
Binary files a/web-old/aqualinkd-new.png and /dev/null differ
diff --git a/web-old/aqualinkd-white.png b/web-old/aqualinkd-white.png
deleted file mode 100644
index 876ab02..0000000
Binary files a/web-old/aqualinkd-white.png and /dev/null differ
diff --git a/web-old/aqualinkd.png b/web-old/aqualinkd.png
deleted file mode 100644
index 7cec6b4..0000000
Binary files a/web-old/aqualinkd.png and /dev/null differ
diff --git a/web-old/aqualinkd_62.png b/web-old/aqualinkd_62.png
deleted file mode 100644
index 5a498d9..0000000
Binary files a/web-old/aqualinkd_62.png and /dev/null differ
diff --git a/web-old/config.js b/web-old/config.js
deleted file mode 100644
index f80ce14..0000000
--- a/web-old/config.js
+++ /dev/null
@@ -1,120 +0,0 @@
-// Display order of devices. Tiles will be displayed in the order below,
- // any devices you don't want to see you can comment the ID. (with // e.g. `//"Solar_Heater",` )
- // If the device isn't listed below is will NOT be shown.
- // For a complete list returned from your particular aqualinkd instance
- // use the below URL and look at the ID value for each device.
- // http://aqualink.ip.address/?command=devices
- var devices = [
- "Filter_Pump",
- "Spa_Mode",
- "Aux_1",
- "Aux_2",
- "Aux_3",
- "Aux_4",
- "Aux_5",
- "Aux_6",
- "Aux_7",
- "Aux_B1",
- "Aux_B2",
- "Aux_B3",
- "Aux_B4",
- "Aux_B5",
- "Aux_B6",
- "Aux_B7",
- "Aux_B8",
- "Pool_Heater",
- "Spa_Heater",
- "SWG",
- //"SWG/Percent",
- "SWG/PPM",
- //"SWG/Boost",
- "Temperature/Air",
- "Temperature/Pool",
- "Temperature/Spa",
- "Pool_Water",
- "Spa_Water",
- "Freeze_Protect",
- "CHEM/pH",
- "CHEM/ORP"
- //"Solar_Heater",
- ];
-
- // This get's picked up by dynamic_config.js and used as mode 0
- var light_program = [
- "Voodoo Lounge - Show",
- "Blue Sea",
- "Royal Blue",
- "Afternoon Skies",
- "Aqua Green",
- "Emerald",
- "Cloud White",
- "Warm Red",
- "Flamingo",
- "Vivid Violet",
- "Sangria",
- "Twilight - Show",
- "Tranquility - Show",
- "Gemstone - Show",
- "USA - Show",
- "Mardi Gras - Show",
- "Cool Cabaret - Show"
- ];
-
- /*
- * BELOW IS NOT RELIVENT FOR simple.html or simple inteface
- *
- */
- // Background image, delete or leave blank for solid color
- //var background_url = "http://192.168.144.224/snap.jpeg";
- var background_url='hk/background.jpg';
- //var background_url='';
- // Reload background image every X seconds.(useful if camera snapshot)
- // 0 means only load once when page loads.
- //var background_reload = 10;
-
- // By default all Variable Speed Pumps will show RPM.
- // this will show GPM on VSP's that you can only set GPM (ie Jandy VF pumps)
- //var show_vsp_gpm=false;
-
- // By default all Temperatures & Value tiles are off.
- // this will turn them on
- var turn_on_sensortiles = true;
-
- // This will turn on/off the Spa Heater when you turn on/off Spa Mode.
- //var link_spa_and_spa_heater = true;
-
- // Change the slider for timers
- var timer_slider_min = 0;
- //var timer_slider_max = 360;
- //var timer_slider_step = 10;
- var timer_slider_max = 120;
- var timer_slider_step = 1;
-
- // Colors
- var body_background = "#EBEBEA";
- var body_text = "#000000";
-
- var options_pane_background = "#F5F5F5";
- var options_pane_bordercolor = "#7C7C7C";
- var options_slider_highlight = "#2196F3";
- var options_slider_lowlight = "#D3D3D3";
-
- var head_background = "#2B6A8F";
- var head_text = "#FFFFFF)";
- var error_background = "#8F2B2B";
-
- var tile_background = "#DCDCDC";
- var tile_text = "#6E6E6E";
- var tile_on_background = "#FFFFFF";
- var tile_on_text = "#000000";
- var tile_status_text = "#575757";
-
- // Dark colors
- // var body_background = "#000000";
- // var tile_background = "#646464";
- // var tile_text = "#B9B9B9";
- // var tile_status_text = "#B2B2B2";
- // var head_background = "#000D53";
-
- // REMOVE THIS.
- //document.writeln("");
\ No newline at end of file
diff --git a/web-old/config/index.html b/web-old/config/index.html
deleted file mode 100644
index e1c6107..0000000
--- a/web-old/config/index.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Hello
-
\ No newline at end of file
diff --git a/web-old/controller.html b/web-old/controller.html
deleted file mode 100644
index e4bf832..0000000
--- a/web-old/controller.html
+++ /dev/null
@@ -1,2029 +0,0 @@
-
-
-
-
-
- AqualinkD
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/web-old/controller.old.html b/web-old/controller.old.html
deleted file mode 100644
index 9b4aaf9..0000000
--- a/web-old/controller.old.html
+++ /dev/null
@@ -1,1212 +0,0 @@
-
-
-
-
-
- AqualinkD
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/web-old/debug.html b/web-old/debug.html
deleted file mode 100644
index 7e55ca7..0000000
--- a/web-old/debug.html
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-
-
-
- AqualinkD DEBUG
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  
- |
-
-
- |
-
- |
-
- |
-
-
-
-
- |
-
- |
-
- |
-
-
-
-
\ No newline at end of file
diff --git a/web-old/extra/audio-off.png b/web-old/extra/audio-off.png
deleted file mode 100644
index 0887d48..0000000
Binary files a/web-old/extra/audio-off.png and /dev/null differ
diff --git a/web-old/extra/audio-on.png b/web-old/extra/audio-on.png
deleted file mode 100644
index f1ff093..0000000
Binary files a/web-old/extra/audio-on.png and /dev/null differ
diff --git a/web-old/extra/extra.js b/web-old/extra/extra.js
deleted file mode 100644
index a5efb9e..0000000
--- a/web-old/extra/extra.js
+++ /dev/null
@@ -1,223 +0,0 @@
-
-
-/*
- // put in config.js
- if (navigator.userAgent.search('Android') != -1 || navigator.userAgent.search('Nook') != -1 ) {
- document.writeln("");
- }
- */
-
-GroupSwitchType = -99;
-GroupLightType = -98;
-GroupAudioType = -97;
-
-setTimeout(function() {
- //extra_domoticz('get', 'type=devices&rid=12'); // Absolute radio poller
- //extra_domoticz('get', 'type=devices&rid=281'); // Audiotron Switch
- //extra_domoticz('get', 'type=devices&rid=279'); // Audiotron Selector
- //extra_domoticz('get', 'type=scenes', 8, GroupAudioType);
- extra_domoticz('get', 'type=devices&rid=332'); // Patio audio virtual switch
- extra_domoticz('get', 'type=devices&rid=147');
- extra_domoticz('get', 'type=devices&rid=148');
- //extra_domoticz('get', 'type=devices&rid=21'); // Patio String Lights
- //extra_domoticz('get', 'type=devices&rid=55'); // Patio String Lights #2
- //extra_domoticz('get', 'type=devices&rid=193');
- extra_domoticz('get', 'type=scenes', 2, GroupLightType);
- extra_domoticz('get', 'type=scenes', 6, GroupLightType);
-}, 1000);
-
-function switchTileState_extra(id, idx, type) {
- // console.log("Click "+id+" "+idx);
- state = (document.getElementById(id).getAttribute('status') == 'off') ? 'on' : 'off';
- var switchval;
- // console.log("Status "+state);
-
- if (type == 19) // Reverse on off for doors
- switchval = ((state == 'on') ? 'Off' : 'On');
- else
- switchval = ((state == 'on') ? 'On' : 'Off');
-
- if (type == GroupSwitchType || type == GroupLightType || type == GroupAudioType)
- extra_domoticz('set', 'type=command¶m=switchscene&idx=' + idx + '&switchcmd=' + switchval);
- else if (type == 18) // selectorswitch
- //http://trident/json.htm?type=command¶m=switchlight&idx=279&switchcmd=Set%20Level&level=10
- extra_domoticz('set', 'type=command¶m=switchlight&idx=' + idx + '&switchcmd=Set%20Level&level=' + ((switchval=='On') ? 10 : 0) );
- else
- extra_domoticz('set', 'type=command¶m=switchlight&idx=' + idx + '&switchcmd=' + switchval);
-
- setTileOn(id, state);
-}
-
-function getLevelName(levelNames, levelIndex) {
- var names = decode64(levelNames).split("|");
- return names[levelIndex / 10];
-}
-
-function extra_updateDevice(data) {
- //console.log(data);
-
- var tile
- // console.log(data.Name+" - hw "+data.HardwareTypeVal+" - sw "+data.SwitchTypeVal);
- if ((tile = document.getElementById(data.ID)) == null) {
- // console.log(data.Name+" - create");
- switch (data.SwitchTypeVal) {
- case 0: // switch
- case GroupSwitchType: // Group switch
- if ( data.idx == "332" ) // If music switch change icon
- add_tile(data.ID, data.Name, data.Status, 'switch', 'switch', 'extra/switch_8-off.png', 'extra/switch_8-on.png');
- else
- add_tile(data.ID, data.Name, data.Status, 'switch', 'switch', 'extra/switch_0-off.png', 'extra/switch_0-on.png');
- break;
- case 21: // light
- case 7: // dimmable light
- case GroupLightType: // Group switch
- add_tile(data.ID, data.Name, data.Status, 'switch', 'switch', 'extra/switch_7-off.png', 'extra/switch_7-on.png');
- break;
- case GroupAudioType:
- add_tile(data.ID, data.Name, data.Status, 'switch', 'switch', 'extra/switch_8-off.png', 'extra/switch_8-on.png');
- break;
- case 19:
- add_tile(data.ID, data.Name, data.Status, 'switch', 'switch', 'extra/switch_19-off.png', 'extra/switch_19-on.png');
- break;
- case 18: // Selector switch
- add_tile(data.ID, data.Name, data.Status, 'switch', 'switch', 'extra/switch_0-off.png', 'extra/switch_0-on.png');
- break;
- case undefined:
- if (data.HardwareTypeVal == 15) {
- add_tile(data.ID, data.Name, 'off', 'value', 'temperature');
- }
- break;
- }
- subdiv = document.getElementById(data.ID);
- // subdiv.setAttribute('id', id + '_status');
- subdiv.setAttribute('onclick', "switchTileState_extra('" + data.ID + "', '" + data.idx + "', '" + data.SwitchTypeVal + "')");
- tile = document.getElementById(data.ID);
- } else {
- //console.log("ID exists "+data.ID);
- }
-
- status = tile.getAttribute('status');
- //console.log(data.Name+" status: "+status+" | data.status: "+data.Status);
- switch (data.SwitchTypeVal) {
- //case 0:
- case 7:
- //console.log(data.Name+" status: "+status+" | data.status: "+data.Status);
- if (data.Status.search('%') >= 0) // is status is 97% rather than on, don't change tile status. This stops flashing back on once turned off.
- break;
- case 0:
- case 21:
- case GroupSwitchType: // Group switch
- case GroupLightType: // Group light
- case GroupAudioType:
- if (status != ((data.Status == 'Off') ? 'off' : 'on')) {
- setTileOn(data.ID, ((data.Status == 'Off') ? 'off' : 'on'), null);
- }
- break;
- case 18: // Selector switch
- if (status != ((data.Status == 'Off') ? 'off' : 'on')) {
- setTileOn(data.ID, ((data.Status == 'Off') ? 'off' : 'on'), null);
- }
- level = getLevelName(data.LevelNames, data.Level);
- if (level != document.getElementById(data.ID + '_status').innerHTML) {
- document.getElementById(data.ID + '_status').innerHTML = level;
- }
- break;
- case 19:
- if (status != ((data.Status == 'Locked') ? 'off' : 'on')) {
- setTileOn(data.ID, ((data.Status == 'Locked') ? 'off' : 'on'), null);
- document.getElementById(data.ID + '_status').innerHTML = ((data.Data == 'Locked') ? 'Closed' : 'Open');
- }
- break;
- case undefined:
- if (data.HardwareTypeVal == 15) {
- setTileValue(data.ID, parseFloat(data.Data).toString());
- }
- // Check "Type" : "Group" = data.Type = "Group"
- break;
- }
-}
-
-function extra_domoticz(type, data, group_idx=0, group_type=0) {
- var http = new XMLHttpRequest();
- if (http) {
- http.onreadystatechange = function() {
- if (http.readyState === 4) {
- if (http.status == 200 && http.status < 300) {
- var data = JSON.parse(http.responseText);
- if (data.title == 'Devices')
- extra_updateDevice(data.result[0]);
- if (data.title == 'Scenes') { // this is Group
- for(var i = 0; i <= data.result.length; i++) {
- if(data.result[i].idx == group_idx) {
- if (group_type == 0)
- data.result[i].SwitchTypeVal = GroupSwitchType;
- else
- data.result[i].SwitchTypeVal = group_type;
-
- data.result[i].ID = "Group_"+group_idx;
- extra_updateDevice(data.result[i]);
- break;
- }
- }
- }
- } else if (http.status >= 400 || http.status == 0) {
- //document.getElementById('message-text').innerHTML = 'Error connecting to server';
- }
- }
- }
- };
-
- http.open('GET', 'http://trident/json.htm?' + data, true);
- http.send(null);
- if (type == 'get') {
- _poller = setTimeout(function() { extra_domoticz('get', data, group_idx, group_type); }, 5000);
- }
-}
-
-
-
-function decode64(input) {
-
- var keyStr = "ABCDEFGHIJKLMNOP" +
- "QRSTUVWXYZabcdef" +
- "ghijklmnopqrstuv" +
- "wxyz0123456789+/" +
- "=";
-
- var output = "";
- var chr1, chr2, chr3 = "";
- var enc1, enc2, enc3, enc4 = "";
- var i = 0;
-
- // remove all characters that are not A-Z, a-z, 0-9, +, /, or =
- var base64test = /[^A-Za-z0-9\+\/\=]/g;
- if (base64test.exec(input)) {
- alert("There were invalid base64 characters in the input text.\n" +
- "Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\n" +
- "Expect errors in decoding.");
- }
- input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
-
- do {
- enc1 = keyStr.indexOf(input.charAt(i++));
- enc2 = keyStr.indexOf(input.charAt(i++));
- enc3 = keyStr.indexOf(input.charAt(i++));
- enc4 = keyStr.indexOf(input.charAt(i++));
- chr1 = (enc1 << 2) | (enc2 >> 4);
- chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
- chr3 = ((enc3 & 3) << 6) | enc4;
- output = output + String.fromCharCode(chr1);
-
- if (enc3 != 64) {
- output = output + String.fromCharCode(chr2);
- }
- if (enc4 != 64) {
- output = output + String.fromCharCode(chr3);
- }
- chr1 = chr2 = chr3 = "";
- enc1 = enc2 = enc3 = enc4 = "";
- } while (i < input.length);
-
- return decodeURI(output);
-}
-
diff --git a/web-old/extra/garage-closed-grey.png b/web-old/extra/garage-closed-grey.png
deleted file mode 100644
index c7faa59..0000000
Binary files a/web-old/extra/garage-closed-grey.png and /dev/null differ
diff --git a/web-old/extra/garage-closed.png b/web-old/extra/garage-closed.png
deleted file mode 100644
index 36791c5..0000000
Binary files a/web-old/extra/garage-closed.png and /dev/null differ
diff --git a/web-old/extra/garage-open.png b/web-old/extra/garage-open.png
deleted file mode 100644
index 95ef32b..0000000
Binary files a/web-old/extra/garage-open.png and /dev/null differ
diff --git a/web-old/extra/light-off-grey.png b/web-old/extra/light-off-grey.png
deleted file mode 100644
index 6ce1961..0000000
Binary files a/web-old/extra/light-off-grey.png and /dev/null differ
diff --git a/web-old/extra/light-off.png b/web-old/extra/light-off.png
deleted file mode 100644
index 4ce8ca4..0000000
Binary files a/web-old/extra/light-off.png and /dev/null differ
diff --git a/web-old/extra/light-on.png b/web-old/extra/light-on.png
deleted file mode 100644
index 79fb6ca..0000000
Binary files a/web-old/extra/light-on.png and /dev/null differ
diff --git a/web-old/extra/old/garage-closed.png b/web-old/extra/old/garage-closed.png
deleted file mode 100644
index 9c87702..0000000
Binary files a/web-old/extra/old/garage-closed.png and /dev/null differ
diff --git a/web-old/extra/old/garage-open.png b/web-old/extra/old/garage-open.png
deleted file mode 100644
index e6bd973..0000000
Binary files a/web-old/extra/old/garage-open.png and /dev/null differ
diff --git a/web-old/extra/old/light-off.png b/web-old/extra/old/light-off.png
deleted file mode 100644
index a01750c..0000000
Binary files a/web-old/extra/old/light-off.png and /dev/null differ
diff --git a/web-old/extra/old/light-on.png b/web-old/extra/old/light-on.png
deleted file mode 100644
index 1a445b0..0000000
Binary files a/web-old/extra/old/light-on.png and /dev/null differ
diff --git a/web-old/extra/sprinkler-off.png b/web-old/extra/sprinkler-off.png
deleted file mode 100644
index 43b485e..0000000
Binary files a/web-old/extra/sprinkler-off.png and /dev/null differ
diff --git a/web-old/extra/sprinkler-on.png b/web-old/extra/sprinkler-on.png
deleted file mode 100644
index 5368a1a..0000000
Binary files a/web-old/extra/sprinkler-on.png and /dev/null differ
diff --git a/web-old/extra/sprinklerd.psd b/web-old/extra/sprinklerd.psd
deleted file mode 100644
index e69de29..0000000
diff --git a/web-old/extra/switch-off.png b/web-old/extra/switch-off.png
deleted file mode 100644
index 2e7afc7..0000000
Binary files a/web-old/extra/switch-off.png and /dev/null differ
diff --git a/web-old/extra/switch-on.png b/web-old/extra/switch-on.png
deleted file mode 100644
index 417c673..0000000
Binary files a/web-old/extra/switch-on.png and /dev/null differ
diff --git a/web-old/hk/Aux_1-off.png b/web-old/hk/Aux_1-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_1-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_1-on.png b/web-old/hk/Aux_1-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_1-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_12-on.png b/web-old/hk/Aux_12-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_12-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_2-off.png b/web-old/hk/Aux_2-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_2-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_2-on.png b/web-old/hk/Aux_2-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_2-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_3-off.png b/web-old/hk/Aux_3-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_3-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_3-on.png b/web-old/hk/Aux_3-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_3-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_4-off.png b/web-old/hk/Aux_4-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_4-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_4-on.png b/web-old/hk/Aux_4-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_4-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_5-off.png b/web-old/hk/Aux_5-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_5-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_5-on.png b/web-old/hk/Aux_5-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_5-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_6-off.png b/web-old/hk/Aux_6-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_6-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_6-on.png b/web-old/hk/Aux_6-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_6-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_7-off.png b/web-old/hk/Aux_7-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_7-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_7-on.png b/web-old/hk/Aux_7-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_7-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_8-off.png b/web-old/hk/Aux_8-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_8-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_8-on.png b/web-old/hk/Aux_8-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_8-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B1-off.png b/web-old/hk/Aux_B1-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_B1-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B1-on.png b/web-old/hk/Aux_B1-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_B1-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B2-off.png b/web-old/hk/Aux_B2-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_B2-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B2-on.png b/web-old/hk/Aux_B2-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_B2-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B3-off.png b/web-old/hk/Aux_B3-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_B3-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B3-on.png b/web-old/hk/Aux_B3-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_B3-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B4-off.png b/web-old/hk/Aux_B4-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_B4-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B4-on.png b/web-old/hk/Aux_B4-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_B4-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B5-off.png b/web-old/hk/Aux_B5-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_B5-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B5-on.png b/web-old/hk/Aux_B5-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_B5-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B6-off.png b/web-old/hk/Aux_B6-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_B6-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B6-on.png b/web-old/hk/Aux_B6-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_B6-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B7-off.png b/web-old/hk/Aux_B7-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_B7-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B7-on.png b/web-old/hk/Aux_B7-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_B7-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B8-off.png b/web-old/hk/Aux_B8-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Aux_B8-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Aux_B8-on.png b/web-old/hk/Aux_B8-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Aux_B8-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Filter_Pump-off.png b/web-old/hk/Filter_Pump-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Filter_Pump-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Filter_Pump-on.png b/web-old/hk/Filter_Pump-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Filter_Pump-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Pool_Heater-off.png b/web-old/hk/Pool_Heater-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Pool_Heater-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Pool_Heater-on.png b/web-old/hk/Pool_Heater-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Pool_Heater-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/SWG_Boost-off.png b/web-old/hk/SWG_Boost-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/SWG_Boost-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/SWG_Boost-on.png b/web-old/hk/SWG_Boost-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/SWG_Boost-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Solar_Heater-off.png b/web-old/hk/Solar_Heater-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Solar_Heater-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Solar_Heater-on.png b/web-old/hk/Solar_Heater-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Solar_Heater-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Spa_Heater-off.png b/web-old/hk/Spa_Heater-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Spa_Heater-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Spa_Heater-on.png b/web-old/hk/Spa_Heater-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Spa_Heater-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/Spa_Mode-off.png b/web-old/hk/Spa_Mode-off.png
deleted file mode 120000
index 6ccd9a9..0000000
--- a/web-old/hk/Spa_Mode-off.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-off.png
\ No newline at end of file
diff --git a/web-old/hk/Spa_Mode-on.png b/web-old/hk/Spa_Mode-on.png
deleted file mode 120000
index 58a1f29..0000000
--- a/web-old/hk/Spa_Mode-on.png
+++ /dev/null
@@ -1 +0,0 @@
-switch-on.png
\ No newline at end of file
diff --git a/web-old/hk/aqualinkd.png b/web-old/hk/aqualinkd.png
deleted file mode 100644
index 9ffcfd0..0000000
Binary files a/web-old/hk/aqualinkd.png and /dev/null differ
diff --git a/web-old/hk/background.jpg b/web-old/hk/background.jpg
deleted file mode 100644
index b67744f..0000000
Binary files a/web-old/hk/background.jpg and /dev/null differ
diff --git a/web-old/hk/switch-off-black.png b/web-old/hk/switch-off-black.png
deleted file mode 100644
index 9aff2aa..0000000
Binary files a/web-old/hk/switch-off-black.png and /dev/null differ
diff --git a/web-old/hk/switch-off.png b/web-old/hk/switch-off.png
deleted file mode 100644
index 2e7afc7..0000000
Binary files a/web-old/hk/switch-off.png and /dev/null differ
diff --git a/web-old/hk/switch-on.png b/web-old/hk/switch-on.png
deleted file mode 100644
index 417c673..0000000
Binary files a/web-old/hk/switch-on.png and /dev/null differ
diff --git a/web-old/index.html b/web-old/index.html
deleted file mode 120000
index 3204260..0000000
--- a/web-old/index.html
+++ /dev/null
@@ -1 +0,0 @@
-controller.html
\ No newline at end of file
diff --git a/web-old/old/controller.html b/web-old/old/controller.html
deleted file mode 100644
index 9bfbf29..0000000
--- a/web-old/old/controller.html
+++ /dev/null
@@ -1,196 +0,0 @@
-
-
-
-
- Feakes Inc, Aqualink RS control daemon
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Pool:
-
000 F
-
-
000 F
-
-
-
-
-
Spa:
-
000 F
-
-
000 F
-
-
-
-
-
-
-
-
-
-
-
-
-
Freeze Protection:
-
000 F
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/web-old/old/css/small_ff.css b/web-old/old/css/small_ff.css
deleted file mode 100644
index 718f4b7..0000000
--- a/web-old/old/css/small_ff.css
+++ /dev/null
@@ -1,166 +0,0 @@
-
-/* portrait mode (default) */
-
-@media all and (orientation:portrait) {
-
- #main_div{width:540px;height:550px;margin-left:0;padding:0px;}
- #body_div{position:relative;height:450px;}
- #header_div{position:relative;height:70px;}
- #footer_div{height:45px;}
- #title_div{position:absolute;top:0px;left:0px;padding:5px;}
- #air_temp_title_div{position:absolute;top:0px;right:120px;font-size:150%;}
- #air_temp{position:absolute;top:0px;right:45px;font-size:150%;}
- #messages_div{position:absolute;top:30px;left:5px;width:500px;font-size:100%;}
- #date_time{position:absolute;bottom:2px;right:5px;}
-
- #pool_temp_div{position:absolute;top:5px;height:190px;width:250px;left:10px;}
- #spa_temp_div{position:absolute;top:5px;height:280px;width:250px;left:270px;}
- #leds_div{position:absolute;top:205px;height:230px;width:250px;left:10px}
- #frz_protect_div{position:absolute;top:295px;height:85px;width:250px;left:270px;}
- #solar_htr_div{position:absolute;top:390px;height:45px;width:250px;left:270px;}
- #Solar_Heater{position:absolute;bottom:5px;right:10px;width:140px;}
- #frz_protect_title_div{position:absolute;top:0px;height:50px;left:5px;font-size:125%;}
- #frz_protect_set_pnt{position:absolute;bottom:10px;height:50px;right:60px;font-size:250%;}
- #fp_set_pnt_button_div{position:absolute;bottom:20px;height:50px;right:45px;width:10px;}
- #fp_set_button_div{position:absolute;bottom:3px;left:3px;width:65px;}
-}
-/*@media only screen and (orientation:portrait){*/
-
-/*@media only screen and (orientation:landscape){*/
-@media all and (orientation:landscape){
-
- #main_div{width:800px;height:420px;margin-left:0;padding:0px;}
- #header_div{position:relative;height:70px;}
- #footer_div{height:45px;}
- #title_div{position:absolute;top:0;left:0;padding:5px;}
- #air_temp_title_div{position:absolute;top:0;right:215px;font-size:200%;}
- #air_temp{position:absolute;top:0;right:75px;font-size:250%;}
- #messages_div{position:absolute;bottom:2px;left:35px;width:570px;}
- #date_time{position:absolute;bottom:2px;right:5px;}
- #body_div{position:relative;height:295px;}
- #leds_div{position:absolute;top:5px;right:10px;height:230px;width:245px;}
- #pool_temp_div{position:absolute;top:5px;height:190px;width:250px;left:10px;}
- #spa_temp_div{position:absolute;top:5px;height:280px;width:250px;left:275px;}
- #solar_htr_div{position:absolute;bottom:3px;height:45px;width:245px;right:10px;}
- /*#solar_button_div{position:absolute;bottom:5px;right:10px;width:140px;}*/
- #Solar_Heater{position:absolute;bottom:5px;right:10px;width:140px;}
- #frz_protect_div{position:absolute;bottom:5px;height:85px;width:250px;left:10px;}
- #frz_protect_title_div{position:absolute;top:0px;height:50px;left:5px;font-size:125%;}
- #frz_protect_set_pnt{position:absolute;bottom:10px;height:50px;right:60px;font-size:250%;}
- #fp_set_pnt_button_div{position:absolute;bottom:20px;height:50px;right:45px;width:10px;}
- #fp_set_button_div{position:absolute;bottom:3px;left:3px;width:65px;}
-}
-
-
-.battery_image_div{position:absolute;top:5px;right:5px;width:30px;}
-.net_activity_div{position:absolute;bottom:2px;left:0;}
-.led_button_div{position:relative;height:37px;width:240px}
-.led_div{position:absolute;top:2px;left:15px;padding:0;}
-.button_div{position:absolute;right:0px;width:140px;}
-.control_button_div{position:absolute;top:40px;height:50px;width:245px;right:5px;}
-/*
-.htr_led_div{position:absolute;top:55px;left:15px;padding:0;}
-.htr_button_div{position:absolute;top:55px;height:45px;right:55px;width:110px;padding:0;margin:0px auto;}
-*/
-.body_sub_div{border:2px solid #a1a1a1;border-radius:15px;}
-.temp_title_div{position:absolute;top:0px;height:50px;left:5px;font-size:175%;}
-.temp_val_div{position:absolute;top:0px;height:55px;right:5px;font-size:225%;}
-.set_pnt_val_div{position:absolute;bottom:15px;height:50px;right:60px;font-size:250%;}
-.set_pnt_button_div{position:absolute;bottom:5px;height:65px;right:5px;width:50px;padding:0;}
-.set_pnt_button{position:relative;right:0px;width:5px;}
-.set_button_div{position:absolute;bottom:5px;left:5px;width:65px;}
-.solar_led_div{position:absolute;top:8px;left:10px;}
-
-.select_pl_div{position:absolute;top:8px;left:10px;height:33px;width:227px;}
-.select_pl_dd{width:227px; height:33px;}
-
-.button {
- display: inline-block;
- vertical-align: baseline;
- outline: none;
- cursor: pointer;
- text-align: center;
- text-decoration: none;
- font: 16px/100% Arial, Helvetica, sans-serif;
- padding: .50em 1.5em;
- text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
- -webkit-border-radius: .5em;
- -moz-border-radius: .5em;
- border-radius: .5em;
- -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
- -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
- box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
-}
-.button:hover {
- text-decoration: none;
-}
-.button:active {
- top: 1px;
-}
-/*
-.bigrounded {
- -webkit-border-radius: 2em;
- -moz-border-radius: 2em;
- border-radius: 2em;
-}
-*/
-.medium {
- font-size: 14px;
- padding: .8em 1.5em .42em;
-}
-/*
-.small {
- font-size: 11px;
- padding: .2em 1em .275em;
-}
-*/
-.black {
- color: #d7d7d7;
- border: solid 1px #333;
- background: #333;
- background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#000));
- background: -moz-linear-gradient(top, #666, #000);
-}
-.black:hover {
- background: #000;
- background: -webkit-gradient(linear, left top, left bottom, from(#444), to(#000));
- background: -moz-linear-gradient(top, #444, #000);
-}
-.black:active {
- color: #666;
- background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#444));
- background: -moz-linear-gradient(top, #000, #444);
-}
-.bgimg {
- width: 100%;
- height: 250px;
- background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0.15, rgb(50, 50, 50)), color-stop(0.58, rgb(0, 0, 0)), color-stop(0.79, rgb(0, 0, 0)));
- background-image: -moz-linear-gradient(top, #444, #000);
-}
-.bgimg_body {
- width: 100%;
- height: 250px;
- background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0.15, rgb(75, 75, 75)), color-stop(0.58, rgb(50, 50, 50)), color-stop(0.79, rgb(50, 50, 50)));
- background-image: -moz-linear-gradient(top, #666, #333);
-}
-/*
-.debug_border {
- border: 2px solid #a1a1a1;
- border-radius: 15px;
-}
-*/
-div {
- border-width: 0px;
- border-style: solid;
- padding: 0px;
-}
-body, html {
- margin: 0;
- padding: 0;
- color: #f4f4f4;
- font-family: Arial, Helvetica, sans-serif;
- -webkit-touch-callout: none;
- -webkit-user-select: none;
-}
-
-
diff --git a/web-old/old/images/battery_blank.png b/web-old/old/images/battery_blank.png
deleted file mode 100644
index 70741f9..0000000
Binary files a/web-old/old/images/battery_blank.png and /dev/null differ
diff --git a/web-old/old/images/battery_low.png b/web-old/old/images/battery_low.png
deleted file mode 100644
index 3390fc8..0000000
Binary files a/web-old/old/images/battery_low.png and /dev/null differ
diff --git a/web-old/old/images/battery_ok.png b/web-old/old/images/battery_ok.png
deleted file mode 100644
index 6bfd6a7..0000000
Binary files a/web-old/old/images/battery_ok.png and /dev/null differ
diff --git a/web-old/old/images/led_enabled.png b/web-old/old/images/led_enabled.png
deleted file mode 100755
index 1a1be28..0000000
Binary files a/web-old/old/images/led_enabled.png and /dev/null differ
diff --git a/web-old/old/images/led_off.png b/web-old/old/images/led_off.png
deleted file mode 100755
index a8dced8..0000000
Binary files a/web-old/old/images/led_off.png and /dev/null differ
diff --git a/web-old/old/images/led_on.png b/web-old/old/images/led_on.png
deleted file mode 100755
index 0cc9c2a..0000000
Binary files a/web-old/old/images/led_on.png and /dev/null differ
diff --git a/web-old/old/images/net_green.png b/web-old/old/images/net_green.png
deleted file mode 100644
index 2f8ba30..0000000
Binary files a/web-old/old/images/net_green.png and /dev/null differ
diff --git a/web-old/old/images/net_off.png b/web-old/old/images/net_off.png
deleted file mode 100644
index b078e5d..0000000
Binary files a/web-old/old/images/net_off.png and /dev/null differ
diff --git a/web-old/old/images/net_red.png b/web-old/old/images/net_red.png
deleted file mode 100644
index 6cc8bf5..0000000
Binary files a/web-old/old/images/net_red.png and /dev/null differ
diff --git a/web-old/old/images/net_yellow.png b/web-old/old/images/net_yellow.png
deleted file mode 100644
index 85bfc5f..0000000
Binary files a/web-old/old/images/net_yellow.png and /dev/null differ
diff --git a/web-old/old/index.html b/web-old/old/index.html
deleted file mode 120000
index 3204260..0000000
--- a/web-old/old/index.html
+++ /dev/null
@@ -1 +0,0 @@
-controller.html
\ No newline at end of file
diff --git a/web-old/old/js/aqualink.js b/web-old/old/js/aqualink.js
deleted file mode 100644
index 13c6602..0000000
--- a/web-old/old/js/aqualink.js
+++ /dev/null
@@ -1,535 +0,0 @@
-
-if(window.innerHeight > window.innerWidth){
- orientation("portrait");
-} else {
- orientation("landscape");
-}
-
-// Listen for orientation changes
-window.addEventListener("orientationchange", function() {
- // Announce the new orientation number
- //alert(window.orientation);
- if(window.innerHeight > window.innerWidth)
- orientation("portrait");
- else
- orientation("landscape");
-
-}, false);
-
-function orientation(or){
- //alert(or);
- viewport = document.querySelector("meta[name=viewport]");
- if (or == "landscape") {
- viewport.setAttribute('content', 'content="width=device-width, user-scalable=yes, width=800"');
- } else {
- viewport.setAttribute('content', 'content="width=device-width, user-scalable=yes, width=540"');
- }
-}
-
-// aqualink.js
-
-function BlockMove(event) {
- // Tell Safari not to move the window.
- event.preventDefault();
-}
-
-// Preload the images.
-var delay = 10;
-if (document.images) {
- //setTimeout(get_batt_ok_img, delay);
- setTimeout(loadImages, delay);
-}
-
-function loadImages() {
- document.getElementById('battery_ok').src = "images/battery_ok.png";
- document.getElementById('battery_low').src = "images/battery_low.png";
- document.getElementById('battery_blank').src = "images/battery_blank.png";
-
- for (var obj in aqualink_data.leds) {
- setButtonElementImage(obj+'_on_status', "images/led_on.png");
- setButtonElementImage(obj+'_off_status', "images/led_off.png");
- setButtonElementImage(obj+'_en_status', "images/led_enabled.png");
- }
-
- document.getElementById('net_off').src = "images/net_off.png";
- document.getElementById('net_yellow').src = "images/net_yellow.png";
- document.getElementById('net_green').src = "images/net_green.png";
- document.getElementById('net_red').src = "images/net_red.png";
-}
-
-
-//function set_button_led_images
-function setButtonElementImage(element, image){
- el = document.getElementById(element);
- if (el != null) {
- el.src = image;
- }
-}
-
-function LedsData() {
- this.Filter_Pump = "off";
- this.Spa_Mode = "off";
- this.Aux_1 = "off";
- //this.aux1 = "flash";
- this.Aux_2 = "off";
- this.Aux_3 = "off";
- this.Aux_4 = "off";
- this.Aux_5 = "off";
- this.Aux_6 = "off";
- this.Aux_7 = "off";
- this.Pool_Heater = "off";
- this.Spa_Heater = "off";
- this.Solar_Heater = "off";
-}
-
-function AqualinkData() {
- this.version = "";
- this.date = "09/11/12 TUE";
- this.time = "10:33 AM";
- this.temp_units = "F";
- this.air_temp = "75";
- this.battery = "low";
- this.leds = new LedsData();
-}
-
-function TemperatureSetPoint() {
- this.modified = false;
- this.value = 0;
-}
-
-var pool_htr_set_point = new TemperatureSetPoint();
-var spa_htr_set_point = new TemperatureSetPoint();
-var freeze_protect_set_point = new TemperatureSetPoint();
-
-var aqualink_data = new AqualinkData();
-var net_connection = 'red';
-
-
-function interval(duration, fn){
- this.baseline = undefined
-
- this.run = function(){
- if(this.baseline === undefined){
- this.baseline = new Date().getTime()
- }
- fn()
- var end = new Date().getTime()
- this.baseline += duration
-
- var nextTick = duration - (end - this.baseline)
- if(nextTick<0){
- nextTick = 0
- }
- (function(i){
- i.timer = setTimeout(function(){
- i.run(end)
- }, nextTick)
- }(this))
- }
-
- this.stop = function(){
- clearTimeout(this.timer)
- }
-}
-
-var timer = new interval(1000, function(){
- net_connection_icon();
- flash_battery_icon();
- //blink_filter_pump();
- blink_button_leds();
-})
-timer.run()
-
-
-function net_connection_icon() {
- if (net_connection == "red") {
- document.getElementById('messages_div').innerHTML = "Not connected!";
- document.getElementById('net_green').style.visibility = 'hidden';
- document.getElementById('net_yellow').style.visibility = 'hidden';
- if (document.getElementById('net_red').style.visibility == 'visible') {
- document.getElementById('net_red').style.visibility = 'hidden';
- } else {
- document.getElementById('net_red').style.visibility = 'visible';
- }
- } else if (net_connection == "green") {
- document.getElementById('net_green').style.visibility = 'visible';
- document.getElementById('net_red').style.visibility = 'hidden';
- document.getElementById('net_yellow').style.visibility = 'hidden';
- } else if (net_connection == "yellow") {
- document.getElementById('net_green').style.visibility = 'hidden';
- document.getElementById('net_red').style.visibility = 'hidden';
- document.getElementById('net_yellow').style.visibility = 'visible';
- }
-}
-//setInterval(net_connection_icon, 500);
-
-function net_activity() {
- // Set the icon yellow.
- document.getElementById('net_green').style.visibility = 'hidden';
- document.getElementById('net_red').style.visibility = 'hidden';
- document.getElementById('net_yellow').style.visibility = 'visible';
- // Wait 10mS then set to green.
- setTimeout(function() {
- document.getElementById('net_green').style.visibility = 'visible';
- document.getElementById('net_red').style.visibility = 'hidden';
- document.getElementById('net_yellow').style.visibility = 'hidden';
- }, 50);
-}
-
-function flash_battery_icon() {
- if (aqualink_data.battery == "low") {
- if (document.getElementById('battery_low').style.visibility == 'visible') {
- document.getElementById('battery_low').style.visibility = 'hidden';
- } else {
- document.getElementById('battery_low').style.visibility = 'visible';
- }
- }
-}
-//setInterval(flash_battery_icon, 500);
-/*
-function blink_filter_pump() {
- if (aqualink_data.leds.pump == "enabled") {
- document.getElementById("pump_status").src = (document.getElementById("pump_status").src.indexOf("images/led_on.png") == -1) ? "images/led_on.png" : "images/led_off.png";
- }
-}
-*/
-//setInterval(blink_filter_pump, 500);
-
-
-function blink_button_leds() {
- for (var obj in aqualink_data.leds) {
- if (aqualink_data.leds[obj] == "flash" && document.getElementById(obj+'_on_status') != null ) {
- if (document.getElementById(obj+'_on_status').style.visibility == 'hidden') {
- setElementVisibility(obj+'_on_status', 'visible');
- setElementVisibility(obj+'_off_status', 'hidden');
- } else {
- setElementVisibility(obj+'_on_status', 'hidden');
- setElementVisibility(obj+'_off_status', 'visible');
- }
- }
- }
-}
-//setInterval(blink_aux_leds, 1500);
-
-// End - Methods to Manage Flashing Images
-
-// Display Update Methods
-
-function update_temp(id) {
- var el = document.getElementById(id);
- var temp_string = "";
-
- if (id == "air_temp") {
- temp_string = aqualink_data.air_temp;
- } else if (id == "pool_temp") {
- temp_string = aqualink_data.pool_temp;
- if (temp_string == " ") {
- temp_string = "---"
- }
- } else if (id == "spa_temp") {
- temp_string = aqualink_data.spa_temp;
- if (temp_string == " ") {
- temp_string = "---"
- }
- } else if (id == "pool_htr_set_pnt") {
- if (pool_htr_set_point.modified == true) {
- temp_string = pool_htr_set_point.value.toString();
- el.style.color = "PowderBlue";
- } else {
- temp_string = aqualink_data.pool_htr_set_pnt;
- pool_htr_set_point.value = parseInt(temp_string);
- el.style.color = "#f4f4f4";
- }
- } else if (id == "spa_htr_set_pnt") {
- if (spa_htr_set_point.modified == true) {
- temp_string = spa_htr_set_point.value.toString();
- el.style.color = "PowderBlue";
- } else {
- temp_string = aqualink_data.spa_htr_set_pnt;
- spa_htr_set_point.value = parseInt(temp_string);
- el.style.color = "#f4f4f4";
- }
- } else if (id == "frz_protect_set_pnt") {
- if (freeze_protect_set_point.modified == true) {
- temp_string = freeze_protect_set_point.value.toString();
- el.style.color = "PowderBlue";
- } else {
- temp_string = aqualink_data.frz_protect_set_pnt;
- freeze_protect_set_point.value = parseInt(temp_string);
- el.style.color = "#f4f4f4";
- }
- }
-
- el.innerHTML = temp_string + "°" + aqualink_data.temp_units;
-}
-
-// Adjust the Pool Heater set point. Note that its maximum value
-// is 104 and its minimum value is 0.
-function incr_pool_htr(direction) {
- if (direction == '+') {
- if (pool_htr_set_point.value < 104) {
- pool_htr_set_point.value++;
- }
- } else {
- if (pool_htr_set_point.value > 0) {
- pool_htr_set_point.value--;
- }
- }
-
- if (pool_htr_set_point.value == parseInt(aqualink_data.pool_htr_set_pnt)) {
- pool_htr_set_point.modified = false;
- } else {
- pool_htr_set_point.modified = true;
- }
-
- update_temp("pool_htr_set_pnt");
-}
-
-// Adjust the Spa Heater set point. Note that its maximum value
-// is 104 and its minimum value is 0.
-function incr_spa_htr(direction) {
- if (direction == '+') {
- if (spa_htr_set_point.value < 104) {
- spa_htr_set_point.value++;
- }
- } else {
- if (spa_htr_set_point.value > 0) {
- spa_htr_set_point.value--;
- }
- }
-
- if (spa_htr_set_point.value == parseInt(aqualink_data.spa_htr_set_pnt)) {
- spa_htr_set_point.modified = false;
- } else {
- spa_htr_set_point.modified = true;
- }
-
- update_temp("spa_htr_set_pnt");
-}
-
-// Adjust the Freeze Protection set point. Note that its maximum value
-// is 42 and its minimum value is 36.
-function incr_frz_protect(direction) {
- if (direction == '+') {
- if (freeze_protect_set_point.value < 42) {
- freeze_protect_set_point.value++;
- }
- } else {
- if (freeze_protect_set_point.value > 36) {
- freeze_protect_set_point.value--;
- }
- }
-
- if (freeze_protect_set_point.value == parseInt(aqualink_data.frz_protect_set_pnt)) {
- freeze_protect_set_point.modified = false;
- } else {
- freeze_protect_set_point.modified = true;
- }
-
- update_temp("frz_protect_set_pnt");
-}
-
-function update_date_time() {
- var el = document.getElementById("date_time");
-
- el.innerHTML = aqualink_data.time + " - " + aqualink_data.date;
-}
-
-function setElementVisibility(element, visibility){
- //console.log("set "+element+" to "+visibility);
- el = document.getElementById(element);
- if (el != null) {
- el.style.visibility = visibility;
- //console.log("set "+element+" to "+visibility);
- }
-}
-
-function update_leds() {
-//console.log("*****UPDATE LED*****");
- for (var obj in aqualink_data.leds) {
-//console.log("*****setting "+obj+" to "+aqualink_data.leds[obj]);
- if (aqualink_data.leds[obj] == "on") {
- setElementVisibility(obj+'_on_status', 'visible');
- setElementVisibility(obj+'_off_status', 'hidden');
- setElementVisibility(obj+'_en_status', 'hidden');
- } else if (aqualink_data.leds[obj] == "enabled") {
- setElementVisibility(obj+'_on_status', 'hidden');
- setElementVisibility(obj+'_off_status', 'hidden');
- setElementVisibility(obj+'_en_status', 'visible');
- } else if (aqualink_data.leds[obj] == "off") {
- setElementVisibility(obj+'_on_status', 'hidden');
- setElementVisibility(obj+'_off_status', 'visible');
- setElementVisibility(obj+'_en_status', 'hidden');
- } else if (aqualink_data.leds[obj] == "flash") {
- // Don't set any other visibility or it'll mess up the flasher timer.
- setElementVisibility(obj+'_en_status', 'hidden');
- }
- }
-}
-
-
-function update_status(data) {
- aqualink_data = data;
- //console.log(aqualink_data.version);
- //console.log('updating status...');
- if (aqualink_data.battery == "ok") {
- document.getElementById('battery_low').style.visibility = 'hidden';
- document.getElementById('battery_ok').style.visibility = 'visible';
- } else {
- document.getElementById('battery_ok').style.visibility = 'hidden';
- }
-
- if (aqualink_data.status == "Ready") {
- document.getElementById('messages_div').innerHTML = "";
- } else if (aqualink_data.status == "Programming") {
- document.getElementById('messages_div').innerHTML = aqualink_data.status+" (please wait!)";
- } else {
- document.getElementById('messages_div').innerHTML = aqualink_data.status;
- }
-
- update_temp("air_temp");
- update_temp("pool_temp");
- update_temp("spa_temp");
- update_temp("pool_htr_set_pnt");
- update_temp("spa_htr_set_pnt");
- update_temp("frz_protect_set_pnt");
-
- update_date_time();
-
- update_leds();
-}
-
-function set_aux_button_labels(data) {
- //console.log("Aux 1=" + data.Aux_1);
- for (var obj in data) {
- //console.log("sent "+obj+" to "+data[obj]);
- button = document.getElementById(obj);
- if (button != null) {
- button.innerHTML = data[obj];
- }
- }
-}
-
-//alert(BrowserDetect.browser + ' : ' + BrowserDetect.version);
-
-function get_appropriate_ws_url() {
- var pcol;
- var u = document.URL;
-
- /*
- * We open the websocket encrypted if this page came on an
- * https:// url itself, otherwise unencrypted
- */
-
- if (u.substring(0, 5) == "https") {
- pcol = "wss://";
- u = u.substr(8);
- } else {
- pcol = "ws://";
- if (u.substring(0, 4) == "http")
- u = u.substr(7);
- }
-
- u = u.split('/');
-
- //alert (pcol + u[0] + ":6500");
-
- return pcol + u[0];
-}
-
-
-
-/* dumb increment protocol */
-var socket_di;
-
-function startWebsockets() {
- socket_di = new WebSocket(get_appropriate_ws_url());
- /*
- if (BrowserDetect.browser == "Firefox" && BrowserDetect.version < 12) {
- //socket_di = new MozWebSocket(get_appropriate_ws_url(), "dumb-increment-protocol");
- socket_di = new MozWebSocket(get_appropriate_ws_url());
- } else {
- //socket_di = new WebSocket(get_appropriate_ws_url(), "dumb-increment-protocol");
- socket_di = new WebSocket(get_appropriate_ws_url());
- }
-*/
- try {
- socket_di.onopen = function() {
- // success!
- get_aux_labels();
- net_connection = 'green';
- }
-
- socket_di.onmessage = function got_packet(msg) {
- net_activity();
- var data = JSON.parse(msg.data);
- if (data.type == 'status') {
- update_status(data);
- } else if (data.type == 'aux_labels') {
- set_aux_button_labels(data);
- }
- }
-
- socket_di.onclose = function() {
- // something went wrong
- net_connection = 'red';
- // Try to reconnect every 5 seconds.
- setTimeout(function() {
- startWebsockets()
- }, 5000);
- }
- } catch (exception) {
- alert('Error' + exception);
- }
-}
-
-function reset() {
- socket_di.send("reset\n");
-}
-
-function get_aux_labels() {
- //socket_di.send("GET_AUX_LABELS");
- var msg = {command: "GET_AUX_LABELS"};
- // Send the msg object as a JSON-formatted string.
- socket_di.send(JSON.stringify(msg));
-}
-
-function queue_command(cmd) {
- var _cmd = {};
- _cmd.command = cmd;
-
- socket_di.send(JSON.stringify(_cmd));
-}
-
-function set_temperature(type) {
- var temperature = {};
-
- if (type == "POOL_HTR") {
- temperature.parameter = type;
- temperature.value = pool_htr_set_point.value;
- pool_htr_set_point.modified = false;
- } else if (type == "SPA_HTR") {
- temperature.parameter = type;
- temperature.value = spa_htr_set_point.value;
- spa_htr_set_point.modified = false;
- } else if (type == "FRZ_PROTECT") {
- temperature.parameter = type;
- temperature.value = freeze_protect_set_point.value;
- freeze_protect_set_point.modified = false;
- }
-
- socket_di.send(JSON.stringify(temperature));
-}
-
-function set_light_mode(value) {
- var mode = {};
-
- mode.parameter = 'POOL_LIGHT_MODE';
- mode.value = value;
- socket_di.send(JSON.stringify(mode));
-}
-
-window.onload = function() {
- startWebsockets();
-
-}
\ No newline at end of file
diff --git a/web-old/simple.html b/web-old/simple.html
deleted file mode 100644
index 599c8ce..0000000
--- a/web-old/simple.html
+++ /dev/null
@@ -1,620 +0,0 @@
-
-
-
-
-
- AqualinkD
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/web-old/simulator.html b/web-old/simulator.html
deleted file mode 100644
index ff7c219..0000000
--- a/web-old/simulator.html
+++ /dev/null
@@ -1,373 +0,0 @@
-
-
-
-
-
- AqualinkD Simulator
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file