Page 129 of 184

Re: Dashticz - General Discussions

Posted: Saturday 08 July 2017 17:11
by HansieNL
corederoma82 wrote:but the ip addrees and port are corrects.....
Is your Domoticz running o.k.?
What folder did you install Dashticz?

Re: Dashticz - General Discussions

Posted: Saturday 08 July 2017 19:08
by corederoma82
yes Domoticz is running ok; the folder is /domoticz/www/dashticz

Re: Dashticz - General Discussions

Posted: Saturday 08 July 2017 19:25
by htilburgs
corederoma82 wrote:yes Domoticz is running ok; the folder is /domoticz/www/dashticz
So you're URL should be:

http://192.168.1.7:8080/dashticz/

Or

http://192.168.1.7:8080/dashticz/index.html

Re: Dashticz - General Discussions

Posted: Sunday 09 July 2017 9:08
by mAiden88
corederoma82 wrote:Why have I problem?

Thanks
you forgot the / after dashboard...

Correct url is: http://192.168.1.7:8080/dashboard/

Re: Dashticz - General Discussions

Posted: Sunday 09 July 2017 9:11
by mAiden88
@htilburgs

I'm going crazy. Have been busy for a couple of weeks .. Dashticz stays in this way. Console reports an error.

Help me! :( :(

Code: Select all

var _LANGUAGE 			= 'nl_NL'; //or: en_US, fr_FR, hu_HU, sw_SW
var _HOST_DOMOTICZ	  	= 'http://192.168.0.109:8080';  
var _DOMOTICZ_REFRESH		= 5; //in seconds
var _DASHTICZ_REFRESH		= 30; //in minutes
var _THEME		        = 'default'

var _HOST_ZIGGO_HORIZON	  	= ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND  	= '';
var _WEATHER_CITY 		= 'Almelo';
var _WEATHER_CITYNAME 		= ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY 		= 'NL';
var _USE_AUTO_POSITIONING 	= true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES		= true; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK	= false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF  = false; //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 		= false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES	= false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER 		= 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE 		= true;
var _LASTUPDATE_FORMAT 		= 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT 	= 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
var _USE_STATIC_WEATHERICONS 	= true; // Static or 'moving'  weather icons
 
var _APIKEY_MAPS		= '';
var _MAPS_LATITUDE		= '';
var _MAPS_LONGITUDE		= '';
var _MAPS_ZOOMLEVEL		= '';
 
var _AUTO_SWIPEBACK_TO		= 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME	= 10; //seconds
var _SLIDE_PAGES		= false; //Loop all pages and change page every x (min. 5) seconds, set _AUTO_SWIPEBACK_TIME = 0
 
var _STANDBY_CALL_URL           = 'http://127.0.0.1/cgi-bin/screen_brightness.cgi?brightness=20'; //adjust brightness raspberry touchscreen, leave empty if not used
var _END_STANDBY_CALL_URL       = 'http://127.0.0.1/cgi-bin/screen_brightness.cgi?brightness=250'; //adjust brightness raspberry touchscreen, leave empty if not used

var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}

var blocks = {}
 
blocks[1] = {}
blocks[1]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[1]['title'] = 'Living room' //if you want change the name of switch different then domoticz
blocks[1]['icon'] = 'fa-eye'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
blocks[1]['image'] = 'bulb_off.png'; //if you want to show an image instead if icon, place image in img/ folder
blocks[1]['switch'] = true; //if you want to switch the title and data
blocks[1]['hide_data'] = true; //if you want to hide the data of this block
blocks[1]['show_lastupdate'] = true; //if you want to show the last update specific for this block
blocks[1]['playsound'] = 'sounds/ping.mp3'; //play a sound when a device changes
blocks[1]['protected'] = true; //protect switching manually in Dashticz
 
blocks['s1'] = {} //scene or group
 
blocks[204] = {} //dimmer
blocks[204]['width'] = 12;
blocks[204]['title'] = 'Living room' //if you want change the name of switch different then domoticz
 
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Schakelaars';

var columns = {}
 
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',1,2,'144_2',295] //remark: idx 144 produces 2 blocks, so you can use: '144_1' and '144_2' (or just 144 if you want one)
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',5,'144_1','news']
columns[2]['width'] = 5; 
 
columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','horizon',buttons.buienradar,buttons.radio,buttons.calendar,buttons.nunl,buttons.nzbget]
columns[3]['width'] = 2;

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,2,3]
 
screens[2] = {}
screens[2]['background'] = 'bg3.jpg';
screens[2]['background_morning'] = 'bg_morning.jpg';
screens[2]['background_noon'] = 'bg_noon.jpg';
screens[2]['background_afternoon'] = 'bg_afternoon.jpg';
screens[2]['background_night'] = 'bg_night.jpg';
screens[2]['columns'] = [4,5,6]

var columns_standby = {}
 
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','currentweather_big','weather']  //specify blocks for the standby mode
columns_standby[1]['width'] = 12;

Dashticz - General Discussions

Posted: Sunday 09 July 2017 9:47
by garethhowell
@mAiden88 looks like a syntax error somewhere in your CONFIG.js. Unfortunately they are difficult to uncover, IMHO and your post doesn't show the line endings.

Looks like there's no ';' after _THEME = 'default'


EDIT - replied to wrong person. Apologies. Should have been @corderoma82.

Re: Dashticz - General Discussions

Posted: Sunday 09 July 2017 9:54
by htilburgs
mAiden88 wrote:
corederoma82 wrote:Why have I problem?

Thanks
you forgot the / after dashboard...

Correct url is: http://192.168.1.7:8080/dashboard/
Corederoma82 installed Daschticz in /domoticz/www/dashticz/, so the correct URL is:

http://192.168.1.7:8080/dashticz/

Or

http://192.168.1.7:8080/dashticz/index.html

Re: Dashticz - General Discussions

Posted: Sunday 09 July 2017 11:42
by EdwinK
@mAide

could it be, not sure myself, that here it says

Code: Select all

var _USE_FAVORITES      = true; //only used when using auto positioning
but then a bit further down it has blocks placed?

Re: Dashticz - General Discussions

Posted: Sunday 09 July 2017 22:45
by Derik
grrrr

Still get my weather not working..
My key:
ScreenShot080.jpg
ScreenShot080.jpg (145.42 KiB) Viewed 2576 times
What key do i need..
The upperkey before the name.
Or do i need the key @ the lower place...


Still see this part in my dash:
ScreenShot081.jpg
ScreenShot081.jpg (30.98 KiB) Viewed 2576 times

Re: Dashticz - General Discussions

Posted: Monday 10 July 2017 8:43
by EdwinK
@Derik use the top one, the one ending with 615 in your case

change css through getStatus_idx

Posted: Tuesday 11 July 2017 16:07
by mhodom
Hello everybody,

i try to change my css through this command:

function getStatus_37(idx,value,device){
if(parseFloat(device['Data']) == 'Normal'){
$('div.block_37').addClass('warning');
}
else {
$('div.block_37').removeClass('warning');
}
}
i add in custom.css:
.warning {
background: rgba(199,44,44,0.3) !important;
background-clip: padding-box;
}

and here my json response for devic idx37:
{

"AddjMulti": 1.0,
"AddjMulti2": 1.0,
"AddjValue": 0.0,
"AddjValue2": 0.0,
"BatteryLevel": 100,
"CustomImage": 0,
"Data": "Normal",
"Description": "",
"Favorite": 0,
"HardwareID": 4,
"HardwareName": "RFXtrx433E",
"HardwareType": "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal": 1,
"HaveDimmer": false,
"HaveGroupCmd": false,
"HaveTimeout": false,
"ID": "#####",
"LastUpdate": "2017-07-11 11:00:07",
"MaxDimLevel": 0,
"Name": "Det_op_PF01",
"Notifications": "false",
"PlanID": "0",
"PlanIDs": [
0
],
"Protected": false,
"ShowNotifications": true,
"SignalLevel": 7,
"Status": "Normal",
"StrParam1": "",
"StrParam2": "",
"SubType": "Meiantech/Atlantic/Aidebao",
"SwitchType": "Security",
"SwitchTypeVal": 2,
"Timers": "false",
"Type": "Security",
"TypeImg": "security",
"Unit": 0,
"Used": 1,
"XOffset": "0",
"YOffset": "0",
"idx": "37"

},

i try parseFloat(device['Status']) == 'Normal',
it doesn't work,
if i try parseFloat(device['Data']) != 'Normal' it's working

if you have any suggestion.
any ideas?

thanks

Re: change css through getStatus_idx

Posted: Tuesday 11 July 2017 18:00
by robgeerts
Try this:

Code: Select all

function getStatus_37(idx,value,device){
if(device['Data'] == 'Normal'){
$('div.block_37').addClass('warning');
}
else {
$('div.block_37').removeClass('warning');
}
}

Re: Dashticz - General Discussions

Posted: Tuesday 11 July 2017 19:15
by vgr2
General question, if I logout at domiticz all the switches and things vom domoticz will be not be displayed at dashticz. Is this normal behavior?

Re: Dashticz - General Discussions

Posted: Tuesday 11 July 2017 21:17
by robgeerts
Thats normal, it needs to be logged in, especially in latest Chrome-versions.
Before it accepted urls like http://user:[email protected]:8080 but Chrome blocks this in latest versions.

Re: change css through getStatus_idx

Posted: Tuesday 11 July 2017 21:36
by mhodom
Thanks, it's working,
what is the method 'parsefloat'?

Re: change css through getStatus_idx

Posted: Tuesday 11 July 2017 21:39
by robgeerts
It's used to convert a string to a float ;)
'Normal' is a string, you dont need to convert it to float...

Re: Dashticz - General Discussions

Posted: Wednesday 12 July 2017 10:26
by garethhowell
@vgr2
I have mine setup to only require logins from external IP addresses. Assuming you're not trying to keep pesky kids out, then maybe you could do something similar.
In my case, external access is through an nginx reverse proxy over SSL. The proxy requires logins, but the server running dashticz and domoticz doesn't.

Dashticz doesn't work anymore

Posted: Wednesday 12 July 2017 21:09
by EdwinK
After having some problems with Domoticz for some time, today I decided to completely reinstall Domoticz again on my Synology drive. After some time I had it working at least, and a backup was quickly restored.

But.. what ever I tried, Dashticz doesn't show up anymore
My url 192.168.0.10/dashboard only gives a 'Failed to load resource' in the console window. After some time it then changes to the Synology desktop. My config.js file is the same I used before the reinstall of Domoticz.

What did happen? How to fix this?

Re: Dashticz doesn't work anymore

Posted: Wednesday 12 July 2017 21:15
by robgeerts
Beta or Master-version?
Did you enter the port? (:8080 or someting)
Could you post a screenshot of the window (including console) ?

Re: Dashticz - General Discussions

Posted: Wednesday 12 July 2017 21:17
by robgeerts
Added a new block in latest BETA: log
This will show the domoticz block!

Example:

Code: Select all

columns[1]['blocks'] = ['log']
You can also add it as a button:

Code: Select all

var buttons = {}
buttons.log = {key:'log', width:12, icon:'fa-microchip', title: 'Domoticz Log', log:true, level: 2}

Code: Select all

columns[1]['blocks'] = [buttons.log]
Furthermore, if you want the news blocks to have max height, try:

Code: Select all

blocks['news_1'] = {}
blocks['news_1']['feed'] = 'https://cors-anywhere.herokuapp.com/http://www.nu.nl/rss/Algemeen';
blocks['news_1']['maxheight'] = 113;