Hi Manuel,
It's been coded specifically to match my config, so you'll need to change a few things to get any data to display.
I'm assuming you are seeing the basic HTML layout, just without any data, and it says "Connected to Miniserver" at the bottom?
If not, then it's not managing to connect with the details you have provided. Check the console log.
Try this for example:
- You can edit the HTML within <div id=heatinginfo> in index.html
- You'll see that each element has an "id" attribute. This contains the exact name of the control to be displayed here.
- An "id" attribute can also have the value "<control name>-chart" to display a mini-chart.
- You will also need to list each control in var heatingSystem at the top of ui.js and define the type of each. These are the types I have defined:
"tick" (boolean value)
"temperature" (numeric value)
"status" (text value)
"percent" (numeric value)
"onoff" (boolean value)
- Note also that it is expecting all controls to be assigned to category "Heating". This isn't really necessary. You can just remove the 2 instances of "structure.controls[uuid].cat == categoryHeating" from the code, and then it will work for controls in any category.
The creation of the HTML for the table of Rooms is done purely in ui.js
It's based on the list/groups of rooms in var roomList at the top of ui.js which needs to contain the exact room names.
It also requires that the controls are in category "Temperature", and the controls have specific, hard-coded names such as 'Current temperature', 'Tunnel temperature', 'Heating status', 'Heating output' & 'Heating target temperature'. 'Heating status' is also expected to be a text string in a very specific format.
I'm sorry that it's such a hack! When I get some time, I'm planning to extend the UI to allow control of lighting among other things. When I do this, I'll try to make it more generic and configurable in a cleaner, central way. But for now, it's really just a demonstration of concept that might be used as a basis for your own code.
I would suggest you use Firebug, Firefox developer Tools, or similar to view the console log messages as this will give you a clue what is going on.
Cheers,
Seb