Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by HansieNL »

corederoma82 wrote:but the ip addrees and port are corrects.....
Is your Domoticz running o.k.?
What folder did you install Dashticz?
Blah blah blah
corederoma82
Posts: 85
Joined: Saturday 14 January 2017 21:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by corederoma82 »

yes Domoticz is running ok; the folder is /domoticz/www/dashticz
Raspberry PI 3, 3x Yeelight bulbs, 1x Yeeligh led strip, 1x Sonoff with ESP826, Controlicz, Kodi
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post 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
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
User avatar
mAiden88
Posts: 56
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: Dashticz - General Discussions

Post by mAiden88 »

corederoma82 wrote:Why have I problem?

Thanks
you forgot the / after dashboard...

Correct url is: http://192.168.1.7:8080/dashboard/
Anyone can build a fast processor. The trick is to build a fast system.
User avatar
mAiden88
Posts: 56
Joined: Friday 14 October 2016 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7286
Location: Almelo
Contact:

Re: Dashticz - General Discussions

Post 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;
Attachments
Screenshot_12.png
Screenshot_12.png (120.43 KiB) Viewed 2629 times
Screenshot_11.png
Screenshot_11.png (14.11 KiB) Viewed 2629 times
Anyone can build a fast processor. The trick is to build a fast system.
garethhowell
Posts: 115
Joined: Tuesday 17 November 2015 21:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9317
Location: St Neots, UK
Contact:

Dashticz - General Discussions

Post 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.
Last edited by garethhowell on Sunday 09 July 2017 9:47, edited 1 time in total.
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post 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
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - General Discussions

Post 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?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - General Discussions

Post by Derik »

grrrr

Still get my weather not working..
My key:
ScreenShot080.jpg
ScreenShot080.jpg (145.42 KiB) Viewed 2571 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 2571 times
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - General Discussions

Post by EdwinK »

@Derik use the top one, the one ending with 615 in your case
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
mhodom
Posts: 6
Joined: Tuesday 11 July 2017 15:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

change css through getStatus_idx

Post 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: change css through getStatus_idx

Post 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');
}
}
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post 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?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - General Discussions

Post 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.
mhodom
Posts: 6
Joined: Tuesday 11 July 2017 15:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: change css through getStatus_idx

Post by mhodom »

Thanks, it's working,
what is the method 'parsefloat'?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: change css through getStatus_idx

Post by robgeerts »

It's used to convert a string to a float ;)
'Normal' is a string, you dont need to convert it to float...
garethhowell
Posts: 115
Joined: Tuesday 17 November 2015 21:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9317
Location: St Neots, UK
Contact:

Re: Dashticz - General Discussions

Post 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.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Dashticz doesn't work anymore

Post 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?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz doesn't work anymore

Post by robgeerts »

Beta or Master-version?
Did you enter the port? (:8080 or someting)
Could you post a screenshot of the window (including console) ?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - General Discussions

Post 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;
Locked

Who is online

Users browsing this forum: No registered users and 1 guest