Dashticz - Beta 2.5.1
Posted: Monday 10 December 2018 22:25
The new beta 2.5.1 has been released today. This beta release contains quite some fixes as well as new functionality:
Overview
To change the default size of the graph popup windows add the following style blocks to your custom.css:
To set a specific width of the frame of a button add 'framewidth' and/or 'frameheight' setting to the block definition in CONFIG.js like:
You can do the same for a popup window, like:
To remove the close button of the graph popup add the following text to custom.js:
To remove the close button of the block-popup or button-popup add the following text to custom.js:
Variables as block type
To select a Domoticz variable add 'v' before the variable idx. Example for variable idx 1:
After that you can use 'v1' in your column definitions in CONFIG.js as usual.
A list of all Domoticz variables can be obtained via:
PHP based CORS proxy
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:
In case PHP is not installed it falls back to the defined CORS proxy in config['default_cors_url']. In case config['default_cors_url'] is not set, it will use cors-anywhere.herokuapp.com by default.
Enjoy
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
