Page 121 of 184
Re: Dashticz - General Discussions
Posted: Friday 19 May 2017 8:08
by poudenes
htilburgs wrote:I can't simulate this... Maybe the subtype is not recognized, but as I said, my Pi temperature isn't shown also in Favorites.
Try adding it to the CONFIG.js manualy using the wiki.
Strange... My RPI temp is shown in dashticz. Beta and master version. Add motherboard sensors in domoticz and the devices add in dashticz
Verzonden vanaf mijn iPhone met Tapatalk Pro
Re: Dashticz - General Discussions
Posted: Friday 19 May 2017 9:23
by htilburgs
Hi Poudenes, My RPI is shown when I add it manualy, but I was trying to help ropske when you do a clean install and only use favorites and auto position....
(My dash is fully functioning with everything I like)!
Re: Dashticz - General Discussions
Posted: Friday 19 May 2017 13:08
by HansieNL
I wanna change the titles of my P1 elektra blocks
blocks[274] = {} //Elektra (P1 USB) //2 blocks: '274_1' and '274_2'
Does someone know if this is possible?
- Naamloos 1.jpg (7.91 KiB) Viewed 1717 times
Re: Dashticz - General Discussions
Posted: Friday 19 May 2017 13:17
by robgeerts
Should work since beta last night....
Code: Select all
blocks ['274_1']['title'] = 'mijntitel';
Re: Dashticz - General Discussions
Posted: Friday 19 May 2017 13:32
by HansieNL
- Spoiler: show
robgeerts wrote:Should work since beta last night....
Code: Select all
blocks ['274_1']['title'] = 'mijntitel';
Didn't work in first place but forget to split the block.
I had to add the blocks
blocks ['274_1'] = {} and
blocks ['274_2'] = {} first
Re: Dashticz - General Discussions
Posted: Friday 19 May 2017 23:43
by cyberclwn
cyberclwn wrote:Hey,
Thanks for the great work.
But there are somethings i don't know how to get working on dashticz:
1. I have a radiator-valve from Smartwares. it uses 2 devices. One is day/night (on/off) and one to use to set temperature/setpoint with. But if i add both to dashticz/CONFIG.js they both are shown as on/off devices. I can't find a way to show the 2nd device as a thermostat-option.
2. Can't get a google calendar displayed on my dahsticz, but i read you are working on changing a lot on that topic, so i wait for that. (there is a %-sign in my address, maybe that is messing things up tho)
There is a lot of posts to search thru, i apologize if i missed the solution somewhere.
So I guess there is no solution for the smartwares ?
Since i see other people's questions being answered and mine not.
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 0:35
by HansieNL
cyberclwn wrote:- Spoiler: show
cyberclwn wrote:Hey,
Thanks for the great work.
But there are somethings i don't know how to get working on dashticz:
1. I have a radiator-valve from Smartwares. it uses 2 devices. One is day/night (on/off) and one to use to set temperature/setpoint with. But if i add both to dashticz/CONFIG.js they both are shown as on/off devices. I can't find a way to show the 2nd device as a thermostat-option.
2. Can't get a google calendar displayed on my dahsticz, but i read you are working on changing a lot on that topic, so i wait for that. (there is a %-sign in my address, maybe that is messing things up tho)
There is a lot of posts to search thru, i apologize if i missed the solution somewhere.
So I guess there is no solution for the smartwares ?
Since i see other people's questions being answered and mine not.
Hello cyberclwn,
Not sure, but maybe Rob missed your question. I suggest you post the smartwares part from your json output [url]http://<domoticz-ip:<port>/json.htm?type=devices[/url] as code block in this forum with your question.
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 1:27
by Derik
mmm
Domdbo here....
I try and try....
Looks everytime very ok
Did search wit komodo edit for errors [ founds some typo's]
Started again and again..
Only ones in a X time. some times after a hour, sometimes after ten minutes...
I get THE error:
- ScreenShot248.jpg (57.66 KiB) Viewed 1868 times
- Spoiler: show
- var _LANGUAGE = 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ = 'http://192.168.5.10:8080';
var _DOMOTICZ_REFRESH = 2; //in seconds
var _DASHTICZ_REFRESH = 20; //in minutes 30 standard
var _THEME = 'default'; // default = dashticz default theme
var _APIKEY_WUNDERGROUND = '92be63aff68ae';
var _WEATHER_CITY = 'IOOST10';
var _WEATHER_CITYNAME = 'oost'; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY = 'NL';
var _USE_AUTO_POSITIONING = false; // want to configure positions, use auto positioning
var _USE_FAVORITES = false; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK = true; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = true; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED = 'http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT = false;
var _USE_BEAUFORT = true; //Bft instead of m/s
var _TRANSLATE_SPEED = true; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES = false; //enter amount of minutes like: 5 (5 minutes) niet op standby: false invullen
var _SCROLL_NEWS_AFTER = 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE = false;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';
var _USE_STATIC_WEATHERICONS = true; // Static or 'moving' weather icons
var _SCREENSLIDER_EFFECT = 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
var _APIKEY_MAPS = 'AIzaSyB8UijMhtDse1S-YcmpJczjKrkMP0ik';
var _MAPS_LATITUDE = '51.879623';
var _MAPS_LONGITUDE = '11.825494';
var _MAPS_ZOOMLEVEL = 9;
var _AUTO_SWIPEBACK_TO = 1; //when no activity, swipe back to main screen after x seconds / standaard 1
var _AUTO_SWIPEBACK_TIME = 50; //seconds / standaard 10
/* var buttons */
var buttons = {}
buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
buttons.buienradar = {width:12, isimage:true, refreshimage:90000, image: 'http://api.buienradar.nl/image/1.0/Rada ... =506&h=454', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'}
/*buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://ip_url_to_webcam', url: 'http://ip_url_to_webcam'} */
var blocks = {}
/* temp */
blocks[2059] = {} // cb
blocks[2059]['width'] = 12; //1 to 12, remove this line if you want to use the default (4)
blocks[2059]['title'] = 'ÇB' //if you want change the name of switch different then domoticz
blocks[2059]['icon'] = 'fa-line-chart'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
blocks[2059]['switch'] = false; //if you want to switch the title and data
blocks[2059]['hide_data'] = false; //if you want to hide the data of this block
blocks[2059]['show_lastupdate'] = true; //if you want to show the last update specific for this block
/* schakelaars */
blocks[9] = {} // D1 Kamer
blocks[9]['width'] = 12; //1 to 12, remove this line if you want to use the default (4)
blocks[9]['title'] = 'D1' //if you want change the name of switch different then domoticz
blocks[9]['icon'] = 'fa-lightbulb-o'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
/*blocks[9]['image'] = ''; //if you want to show an image instead if icon, place image in img/ folder*/
blocks[9]['switch'] = true; //if you want to switch the title and data
blocks[9]['hide_data'] = true; //if you want to hide the data of this block
blocks[9]['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks[9]['playsound'] = 'sounds/ping.mp3'; //play a sound when a device changes
blocks[9]['protected'] = false; //protect switching manually in Dashticz
/*Scene blocks */
blocks['s5'] = {} // gaan slapen
blocks['s5']['width'] = 12; //1 to 12, remove this line if you want to use the default (4)
blocks['s5']['title'] = 'Slapen' //if you want change the name of switch different then domoticz
blocks['s5']['icon'] = 'fa-bed'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
/*blocks['s5']['image'] = 'bulb_off.png'; //if you want to show an image instead if icon, place image in img/ folder*/
blocks['s5']['switch'] = true; //if you want to switch the title and data
blocks['s5']['hide_data'] = true; //if you want to hide the data of this block
blocks['s5']['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks['s5']['playsound'] = 'sounds/ping.mp3'; //play a sound when a device changes
blocks['s5']['protected'] = true; //protect switching manually in Dashticz
/* Groep Blocks moet ook met S beginnen */
blocks['s11'] = {} // Eetkamer Fel
blocks['s11']['width'] = 12; //1 to 12, remove this line if you want to use the default (4)
blocks['s11']['title'] = 'Tafel helder' //if you want change the name of switch different then domoticz
blocks['s11']['icon'] = 'fa-eye'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
/*blocks['s11']['image'] = 'bulb_off.png'; //if you want to show an image instead if icon, place image in img/ folder*/
blocks['s11']['switch'] = true; //if you want to switch the title and data
blocks['s11']['hide_data'] = true; //if you want to hide the data of this block
blocks['s11']['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks['s11']['playsound'] = 'sounds/ping.mp3'; //play a sound when a device changes
blocks['s11']['protected'] = false; //protect switching manually in Dashticz
blocks['s12'] = {} // Eetkamer blocks['s11']
blocks['s12']['width'] = 12; //1 to 12, remove this line if you want to use the default (4)
blocks['s12']['title'] = 'Eettafel' //if you want change the name of switch different then domoticz
blocks['s12']['icon'] = 'fa-eye'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
/*blocks['s11']['image'] = 'bulb_off.png'; //if you want to show an image instead if icon, place image in img/ folder*/
blocks['s12']['switch'] = true; //if you want to switch the title and data
blocks['s12']['hide_data'] = true; //if you want to hide the data of this block
blocks['s12']['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks['s12']['playsound'] = 'sounds/ping.mp3'; //play a sound when a device changes
blocks['s12']['protected'] = false; //protect switching manually in Dashticz
/* var bloktitels */
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Verlichting';
blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Van alles';
var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',9,'s11','s12','blocktitle_2','s5']
columns[1]['width'] = 6;
columns[2] = {}
columns[2]['blocks'] = [2059]
columns[2]['width'] = 2;
columns[3] = {}
columns[3]['blocks'] = [buttons.buienradar]
columns[3]['width'] = 6;
columns[4] = {}
columns[4]['blocks'] = ['blocktitle_2','clock','sunrise', buttons.nunl]
columns[4]['width'] = 6;
/*if you want to use multiple screens, use the code below: */
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg1.jpg';
screens[1]['background_morning'] = 'bg_morning.jpg';
screens[1]['background_noon'] = 'bg_noon.jpg';
screens[1]['background_afternoon'] = 'bg_afternoon.jpg';
screens[1]['background_night'] = 'bg_night.jpg';
screens[1]['columns'] = [1,3]
screens[2] = {}
screens[2]['background'] = 'bg2.jpg';
screens[2]['background_morning'] = 'bg_morning.jpg';
screens[2]['background_noon'] = 'bg_afternoon.jpg';
screens[2]['background_afternoon'] = 'bg_noon.jpg';
screens[2]['background_night'] = 'bg_night.jpg';
screens[2]['columns'] = [2,4]
Did have a setup with 5 screens, for my 13 inch tablet...
Started again with 2
New setup all blocks and buttons..
Please some one...
Or what is the most of the time the greatest problem with this error?
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 1:38
by htilburgs
Most of the time is that Domoticz or your RPI is too busy. I had the same problem. In my case it was python that was running from a previous Domoboard installation. It took 98% of my CPU. After killing Domoboard (I totaly forgot it was running) and removing it, my RPI came to a rest.
CPU became normal (3%), temperature went down from 50+ to 39 degree and Domoticz wasn't sluggy anymore.
Somethimes my Yeelight LUA script is running more than 10 seconds, what causes this error too.
There is a workaround on the forum (sorry, can find it right now), to handle this error (adding something to the custom.js).
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 1:42
by HansieNL
htilburgs wrote:There is a workaround on the forum (sorry, can find it right now), to handle this error (adding something to the custom.js).
You mean this one...?
window.alert = function ( text ) { console.error( text ); return true; };
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 1:44
by htilburgs
Yop, that's the one....
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 1:46
by Derik
Only this in my css???
Or..
Pppffcff ....one hole. Day fior this peace of art...
Thanks guys...
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 1:53
by htilburgs
Not in css, in your custom.js.....
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 1:56
by Derik
Mmm
Thats the first time i open that part....
No virus
That do the tric??
No other settings needed??
Xxx
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 1:58
by htilburgs
Yip
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 10:53
by Derik
mmm did place it to several places.
only did not the trick..
Where do place this script ..
- ScreenShot252.jpg (21.94 KiB) Viewed 1830 times
Can i remove the other code here?
I did'n place this.
I will try to keep it clean
Or do i need to restart the board?
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 11:19
by htilburgs
I've put it here:
Code: Select all
//add custom javascript in here
function afterGetDevices(){
}
function getExtendedBlockTypes(blocktypes){
//blocktypes.Type['Lighting 2'] = { icon: 'fa fa-lightbulb-o', title: '<Name>', value: 'ds' }
return blocktypes;
}
window.alert = function ( text ) { console.error( text ); return true; };
Re: Dashticz - General Discussions
Posted: Saturday 20 May 2017 12:35
by Derik
mmm still got the error..
Some times when i click on refresh...
Re: Dashticz - General Discussions
Posted: Sunday 21 May 2017 12:23
by MsbS
So, is this the right forum for a noob dashticz question?
I just installed v2 on my RPi2 Domoticz machine. I copied the default config to CONFIG.js, edited it and I got blank screen (with only the background image, nothing on it).
When I added the wunderground API+location, I got the weather icons only (the language changes when I change the locale in CONFIG.js). Other than that - the dashticz page is totally empty (only background image).
Any ideas what I did wrong? I know it does connect to my domoticz - when I set favourites = false, I got two switches from my domoticz (two 'ping' switches).
Re: Dashticz - General Discussions
Posted: Sunday 21 May 2017 14:39
by EdwinK
Try first to set
Code: Select all
var _USE_AUTO_POSITIONING = true;
var _USE_FAVORITES = false;
and see if this gets you anything. Do you have anything set as favorite in Domoticz (yellow star)?