A Domoticz Custom User Interface, accessible from any browser, as a responsive, mobile-first front-end. See "README.md".
To get started, recommend to use the basic example with HTML file "basic.html".
The advanced example is "index.html". Read the source to explore how to use - but same concept as "basic.html".
Create a subfolder "qam" on the Domoticz system as part of the www folder:
<domoticz-path>/www/qam
Example Raspberry Pi:
/home/pi/domoticz/www/qam
Extract the archive “qam.zip” to the previous created folder, resulting in folder structure (example Raspberry Pi):
/home/pi/domoticz/www/qam/css
/home/pi/domoticz/www/qam/js
/home/pi/domoticz/www/qam/webfonts
/home/pi/domoticz/www/qam/basic.html
/home/pi/domoticz/www/qam/index.html
Create or Select Domoticz room plan(s) and note the Idx of the room plan(s).
Recommend to start with 2 room plans:
- one to control switches using buttons and
- the other to display information via burger menu.
Get the Domoticz IP address:port of the Domoticz system to access, i.e. 192.168.N.NNN:8080.
Define the Domoticz IP address:port and the room plans in the HTML page "basic.html". Change the JavaScript constants:
const URL_DOMOTICZ = "http://domoticz-ip:port/json.htm?";
const IDX_ROOMPLAN_QAM_INFORMATION = 4;
const IDX_ROOMPLAN_QAM_SWITCHES = 5;
Note If also changing the constant names, ensure to set those on the "document.ready" function as well.
// Set the name of the various burger menu items
setPlanName(URL_GET_PLANS, "nav-item-information", IDX_ROOMPLAN_QAM_INFORMATION);
// Define the select options
setSelectOptions(IDX_ROOMPLAN_QAM_SWITCHES, "selectswitch");
Open the URL in a webbrowser, start from the development device.
http://domoticz-ip:port/qam/basic.html
In the webbrowser, press F12 and checkout the console for informations/errors.
Note The debug information is set by the flag DEBUG in the JavaScript section:
const DEBUG = true; // true|false;