AqualinkD/web/config.js

180 lines
5.2 KiB
JavaScript

// 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/api/devices
var config_js=true;
var devices = [
"Filter_Pump",
"Spa",
"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",
"Extra_Aux",
"Chiller",
"Aux_V1",
"Aux_V2",
"Aux_V3",
"Aux_V4",
"Aux_V5",
"Aux_V6",
"Aux_V7",
"Aux_V8",
"Aux_V9",
"Aux_V10",
"Aux_V11",
"Aux_V12",
"Aux_V13",
"Aux_V14",
"Aux_V15",
"Aux_S1",
"Aux_S2",
"Aux_S3",
"Aux_S4",
"Aux_S5",
"Aux_S6",
"Aux_S7",
"Aux_S8",
"Aux_S9",
"Aux_S10",
];
// all SWG return a status number, some have different meanings. Change the text below to suit, NOT THE NUMBER.
var swgStatus = {
0: "On",
1: "No flow",
2: "Low salt",
4: "High salt",
8: "Clean cell",
9: "Turning off",
16: "High current",
32: "Low volts",
64: "Low temp",
128: "Check PCB",
253: "General Fault",
254: "Unknown",
255: "Off"
}
/*
* 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;
//var background_reload = 0;
// By default all Variable Speed Pumps will show RPM or GPM depending on how they are controlled.
// this will show RPM for all pumps (ie Jandy VF pumps)
//var show_vsp_gpm=false;
// By default all Temperatures & Value tiles are on when they have a value other than 0.
// this will turn them off permanently
//var turn_off_sensortiles = true;
// This will turn on/off the Spa Heater when you turn on/off Spa Mode.
//var link_spa_and_spa_heater = true;
var tile_thresholds = {
"SWG/PPM": {
outofrange: {min: 2600, max: 3500, mintext:"Add Salt"},
attention: {min: 2700, max: 3400, mintext:"Add Salt"}
},
"CHEM/pH": {
outofrange: {min: 7, max: 8},
attention: {min: 7.2, max: 7.8, mintext:"Low", maxtext:"High"}
},
"CHEM/ORP": {
outofrange: {min: 560, max: 900},
attention: {min: 650, max: 850, mintext:"Low", maxtext:"High"}
},
// Example of how to set color to Aux_S1 (if Aux_S1 was a CPU temperature)
//"Aux_S1": {
// outofrange: {min: 0, max: 170, maxtext:"ALERT High"},
// attention: {min: 0, max: 140, maxtext:"High"}
//},
}
// Change the min max for heater slider
var heater_slider_min = 36;
var heater_slider_max = 104;
// 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";
// Change the default color for vales in and out of range.
//var value_tile_normal_color = "#4ec400ff";
//var value_tile_attention_color = "#ffbf00ff";
//var value_tile_outofrange_color = "#ff0000";
// 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("<script type='text/javascript' src='extra/extra.js'></script>");