Overview
- Fix for broken TV Guide.
- Fix for unnecessary 'Domoticz connection'-error.
The annoying red text 'Domoticz connection'-error should be gone. - Add Katwijk garbage provider
- Custom size of popup windows
See below for how to use this feature. - Some backgrounds and images
Three new background images and a microphone image (on/off) - Add support of variables as block type.
See below - Correct detection of CM180 and CM180i as energy devices.
- Slider improvements (used by Dimmers)
Less frequent calls to Domoticz while sliding to improve performance. - Addition of PHP based CORS proxy
See below - Fix for Forecast.io refresh in a frame
There was an issue that colors were incorrect after a refresh. This has been fixed.
To change the default size of the graph popup windows add the following style blocks to your custom.css:
Code: Select all
.graphheight {
height: 400px;
}
.graphwidth {
width: 400px;
}
Code: Select all
buttons.buienradar = { key: 'buienradar', width:12, isimage:true, refresh:6000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=256&h=256', url:'https://gadgets.buienradar.nl/gadget/zoommap/?lat=52.06022&lng=4.39288&overname=2&zoom=13&naam=2496hx&size=5&voor=1', framewidth:580, frameheight: 520};
Code: Select all
blocks[107]['openpopup'] = { url: 'http://www.nos.nl', auto_close : 500, frameheight:200};
Code: Select all
.graphclose { display: none; }
Code: Select all
.frameclose { display: none; }
To select a Domoticz variable add 'v' before the variable idx. Example for variable idx 1:
Code: Select all
blocks['v1'] = {}
A list of all Domoticz variables can be obtained via:
Code: Select all
http://[DomoticzIP:Port]/json.htm?type=command¶m=getuservariables
To be able to load resources from other domains, like tvguide data and news updates, we need a CORS proxy (Cross Origin Resouce Sharing). Public CORS proxies exist on the internet, like cors-anywhere.herokuapp.com. These public CORS proxies might be slow or not available at all.
A basic PHP based CORS proxy has been integrated into Dashticz.
For normal use just remove the config['default_cors_url'] from your CONFIG.js and the internal CORS proxy will be used.
If you prefer to use a different CORS proxy you can define it in CONFIG.js as usual:
Code: Select all
config['default_cors_url'] = 'http://cors-anywhere.herokuapp.com'
Enjoy
