Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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 »

I believe it takes the time from the machine where the server is running.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by qwerk »

@Edko66 that would say that my own clock on my pc would also have a stotter. I don't see that anywhere on my system.

I guess it is the java that has a problem, is it using my own java or the java from the webserver?
FYI the clock on the webserver is running smooth, no cpu problems whatsoever.
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 »

qwerk wrote:I have the clock running on 1 screen.
sometimes it stotters a little, or hangs a few seconds and then jumps to the correct time.
Where is the clock time "running" is this my local pc, or on the webserver ?
It's the time off the device from where you are opening the dashboard.
I noticed it too that it stutters sometimes, because the dashboard is doing a lot at some moments..
Wil try to fix this in one of the upcoming builds...

If you are getting annoyed byt it, you can set this in config.js:

Code: Select all

var _HIDE_SECONDS_IN_CLOCK  = true;
blacksn0w
Posts: 99
Joined: Friday 10 March 2017 22:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany
Contact:

Re: Dashticz - General Discussions

Post by blacksn0w »

Since this is JavaScript, a Client side language, its taking The time from The machine on which dashticz was opened.

Edit: should have reloaded Before answering :roll: kudos to rob
Migration done, hello Home Assistant.
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Dashticz - General Discussions

Post by tontze »

tontze wrote:Does faulty custom.css generate "check var _HOST_DOMOTICZ " error that comes up time to time ?

Because im not finding any error in CONFIG.js atm ..

Im not sure is my custom.js faulty, i just copied some corner rounding code to it and it works, but might have errors in it. Can someone check it below ?

Code: Select all

/*
CUSTOM CSS FILE
*/

/* Background blocks */
.transbg.col-xs-1,
.transbg.col-xs-2,
.transbg.col-xs-3,
.transbg.col-xs-4,
.transbg.col-xs-5,
.transbg.col-xs-6,
.transbg.col-xs-7,
.transbg.col-xs-8,
.transbg.col-xs-9,
.transbg.col-xs-10,
.transbg.col-xs-11,
.transbg.col-xs-12 {
    padding-top:15px;
    padding-bottom:15px;
    border: 7px solid rgba(255,255,255,0);
    background: rgba(0,0,0,0.2);
    background-clip: padding-box;
    border-radius: 25px; /* Round corners */
}

.fa.fa-lightbulb-o.on {
    color:#F1C300;
}
.fa.fa-lightbulb-o.off {
    color:#fff;


Here is my CONFIG.js too :

Code: Select all

var _LANGUAGE                   = 'en_US'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ              = 'http://192.168.xxx.xxx:8080';
var _DOMOTICZ_REFRESH           = 5; //in seconds
var _DASHTICZ_REFRESH           = 30; //in minutes
var _THEME                      = 'default'; // default = dashticz default theme
/*
IF YOU HAVE A MEDIABOX FROM ZIGGO (HORIZON), COPY SWITCH_HORIZON.PHP ON A WEBSERVER INSIDE YOUR NETWORK AND CHANGE THE IP.
ENTER THE PATH TO THIS FILE BELOW.
*/
var _HOST_ZIGGO_HORIZON                 = ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND                = '';
var _WEATHER_CITY                       = '';
var _WEATHER_CITYNAME                   = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY                    = 'FI';
var _USE_AUTO_POSITIONING               = false; //don't want to configure positions, use auto positioning
var _USE_FAVORITES                      = false; //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          = true; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED                       = 'http://feeds.feedburner.com/ampparit-kaikki-rss';
var _USE_FAHRENHEIT                     = false;
var _USE_BEAUFORT                       = false; //Bft instead of m/s
var _TRANSLATE_SPEED                    = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES              = 5; //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 _APIKEY_MAPS                        = '';
var _MAPS_LATITUDE                      = '';
var _MAPS_LONGITUDE                     = '';

var _AUTO_SWIPEBACK_TO                  = 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME                = 10; //seconds

//predefined colors, when you have RGB-lamps
var _SAVED_COLORS = ['black', 'white', 'blanchedalmond','rgb(255, 128, 0);', 'hsv 100 70 50', 'lightyellow'];

// Online Radio Stream Plugin, Note: you must enable  plugin in column section 'streamplayer', see columns[3]['blocks'] example below.
var _STREAMPLAYER_TRACKS        = [
    {"track":1,"name":"Kiss FM","file":"http://stream2.bauermedia.fi/kiss.mp3"},
    {"track":2,"name":"Bassoradio","file":"http://stream.basso.fi:8000/stream"},
    {"track":3,"name":"Loop","file":"http://icelive0.80692-icelive0.cdn.qbrick.com/10561/80692_Loop.mp3"},
    {"track":4,"name":"Radio SuomiPop","file":"http://icelive0.80692-icelive0.cdn.qbrick.com/10566/80692_RadioSuomipop.mp3"},
    {"track":5,"name":"Radio NRJ","file":"http://cdn.nrjaudio.fm/adwz1/fi/35001/mp3_128.mp3"},
    {"track":6,"name":"Radio Rock","file":"http://icelive0.80692-icelive0.cdn.qbrick.com/10565/80692_RadioRock.mp3"},

                                                          ];

// iCalendar Plugin, supports all .ics calendar types like Google Calendar, Apple Calendar
//var _ICALENDAR_URL                    = 'https://testurl.com/ical.ics'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
//var _ICALENDAR_DATEFORMAT     = 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
//var _ICALENDAR_LOCALE         = 'en'; //en,hu, etc.

var calendars = {}
calendars.hobby = { url: 'https://some_url/api/v2/public/calendar-share/fi/userfile/all.ics', icalurl: 'https://some_url/api/v2/public/calendar-share/fi/userfile/all.ics' }

//Buttons or images to open webpages in an iframe, like a news website or weather forecast
var buttons = {}

buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://livetaajuus.fi'}
buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://feeds.feedburner.com/ampparit-kaikki-rss'}
buttons.moon = {width:12, isimage:true, refreshimage:60000, image: 'moon'}


//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default

var blocks = {}
blocks[163] = {}
blocks[163]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[163]['title'] = 'BMW' //if you want change the name of switch different then domoticz
blocks[163]['image'] = 'fa_bmw.png'; //if you want to show an image instead if icon, place image in img/ folder

blocks[184] = {}
blocks[184]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[184]['title'] = 'KiA' //if you want change the name of switch different then domoticz
blocks[184]['image'] = 'kia-128.png'; //if you want to show an image instead if icon, place image in img/ folder

blocks[36] = {}
blocks[36]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
blocks[36]['title'] = 'Ulkopistoke' //if you want change the name of switch different then domoticz
blocks[36]['icon'] = 'fa-pause-circle-o'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
//blocks[36]['image'] = 'wall-socket.png'; //if you want to show an image instead if icon, place image in img/ folder

//blocks[28] = {}
//blocks[28]['width'] = 4; //1 to 12, remove this line if you want to use the default (4)
//blocks[28]['title'] = 'Patio' //if you want change the name of switch different then domoticz
//blocks[28]['icon'] = 'fa-film'; //if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/

var columns = {}

// First Column
columns[10] = {}
columns[10]['blocks'] = ['clock',calendars.hobby,119,120,121,122,123,2,144,1]
columns[10]['width'] = 5;
// Second Column
columns[20] = {}
columns[20]['blocks'] = ['currentweather_big','weather',149,163,184,93,99,27,98,33,28,105,36,162]
columns[20]['width'] = 5;
// Third Column
columns[30] = {}
columns[30]['blocks'] = ['sunrise',buttons.moon,'streamplayer',buttons.radio]
columns[30]['width'] = 2;


var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','weather']
columns_standby[1]['width'] = 12;

//if you want to use multiple screens, use the code below:
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg_1.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'] = [10,20,30]

//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]

Thnx !
I defaulted custom.css and custom.js, error is still there so it must be in CONFIG.js ..

-T
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by qwerk »

tontze wrote:
tontze wrote:Does faulty custom.css generate "check var _HOST_DOMOTICZ " error that comes up time to time ?

Because im not finding any error in CONFIG.js atm ..

Im not sure is my custom.js faulty, i just copied some corner rounding code to it and it works, but might have errors in it. Can someone check it below ?

I defaulted custom.css and custom.js, error is still there so it must be in CONFIG.js ..

-T

are you using chrome or firefox.
I have seen this with firefox.
then press F5 and all is ok.
It does not happen every time
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Blueone »

qwerk wrote:
tontze wrote:
tontze wrote:Does faulty custom.css generate "check var _HOST_DOMOTICZ " error that comes up time to time ?

Because im not finding any error in CONFIG.js atm ..

Im not sure is my custom.js faulty, i just copied some corner rounding code to it and it works, but might have errors in it. Can someone check it below ?

I defaulted custom.css and custom.js, error is still there so it must be in CONFIG.js ..

-T

are you using chrome or firefox.
I have seen this with firefox.
then press F5 and all is ok.
It does not happen every time
This can happen because all kind of reason, domoticz.com busy, bad wifi etc, nothing to worry about. You can change the alert type in main.js from "alert(...." to "console.error(..." This way the popup doesn't come but you can still see the error if nessesary in the console log.
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 »

Can this also been done in the custom.js?
I don't like to edit main.js
1. Git pull errors
2. Gone after update
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
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Dashticz - General Discussions

Post by tontze »

Blueone wrote:
qwerk wrote:
tontze wrote:

are you using chrome or firefox.
I have seen this with firefox.
then press F5 and all is ok.
It does not happen every time
This can happen because all kind of reason, domoticz.com busy, bad wifi etc, nothing to worry about. You can change the alert type in main.js from "alert(...." to "console.error(..." This way the popup doesn't come but you can still see the error if nessesary in the console log.
Can you explain how to do this ? I have chrome, and other computer has firefox, equally often comes that error.

i have a feeling that If i use computer, it doesnt come at all. After being idle for a while it comes. In both computers ..
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
pvdhelm
Posts: 29
Joined: Tuesday 14 March 2017 17:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Skendel
Contact:

Re: Dashticz - General Discussions

Post by pvdhelm »

when i do a git pull i get some error messages
gitpull.png
gitpull.png (7.35 KiB) Viewed 1806 times
what to do. I run the beta version of dashticz
User avatar
jvdz
Posts: 2332
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by jvdz »

You seems to have updated CONFIG_DEFAULT.js in your installation, so git is telling you needs to save those changes.
You could revert the change in case it was unintentional and then do the pull again.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Blueone »

tontze wrote:
Blueone wrote:
qwerk wrote:

are you using chrome or firefox.
I have seen this with firefox.
then press F5 and all is ok.
It does not happen every time
This can happen because all kind of reason, domoticz.com busy, bad wifi etc, nothing to worry about. You can change the alert type in main.js from "alert(...." to "console.error(..." This way the popup doesn't come but you can still see the error if nessesary in the console log.
Can you explain how to do this ? I have chrome, and other computer has firefox, equally often comes that error.

i have a feeling that If i use computer, it doesnt come at all. After being idle for a while it comes. In both computers ..
There could be an other issues if the error pop ups serveral times a day.
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 »

pvdhelm wrote:when i do a git pull i get some error messages

gitpull.png

what to do. I run the beta version of dashticz
I had the same yesterday. I downloaded the version as zip from GitHub and just replaced the file with the downloaded version. After that I did a new pull.
Blah blah blah
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by qwerk »

robgeerts wrote:
qwerk wrote:I have the clock running on 1 screen.
sometimes it stotters a little, or hangs a few seconds and then jumps to the correct time.
Where is the clock time "running" is this my local pc, or on the webserver ?
It's the time off the device from where you are opening the dashboard.
I noticed it too that it stutters sometimes, because the dashboard is doing a lot at some moments..
Wil try to fix this in one of the upcoming builds...

If you are getting annoyed byt it, you can set this in config.js:

Code: Select all

var _HIDE_SECONDS_IN_CLOCK  = true;
simple but good solution. and for me perfectly acceptable.
but, it does not seem to work.
I changed hide to true, but I still have a second hand.
I am sure I reloaded settings, by trying other changes.
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 »

Impossible ;)
At least, if you are sure nothing gets cached and you have the latest beta ;)
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by qwerk »

I know, tried firefox and chrome, same results.
I guess the problem is on my site, so don't worry. be happy.
I will look into it
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Dashticz - General Discussions

Post by tontze »

Blueone wrote:
tontze wrote:
Blueone wrote:
This can happen because all kind of reason, domoticz.com busy, bad wifi etc, nothing to worry about. You can change the alert type in main.js from "alert(...." to "console.error(..." This way the popup doesn't come but you can still see the error if nessesary in the console log.
Can you explain how to do this ? I have chrome, and other computer has firefox, equally often comes that error.

i have a feeling that If i use computer, it doesnt come at all. After being idle for a while it comes. In both computers ..
There could be an other issues if the error pop ups serveral times a day.
hm ok .. I just dont see where it comes :/
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by qwerk »

robgeerts wrote:Impossible ;)
At least, if you are sure nothing gets cached and you have the latest beta ;)

I can make the impossible, possible

I tried everything, I removed the ":ss" from main.js where the variable is checked.
same result.

Sure the stationclock is getting his info from clock???
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by remb0 »

When I use google maps the map is visible and after a few seconds i got: Oops something got wrong.
press F12 for ....

The message is that my api key isn't activated.

can somebody tell me how to create? I had it worked a few years before but I got the message: not activated now.
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 »

qwerk wrote:
robgeerts wrote:Impossible ;)
At least, if you are sure nothing gets cached and you have the latest beta ;)

I can make the impossible, possible

I tried everything, I removed the ":ss" from main.js where the variable is checked.
same result.

Sure the stationclock is getting his info from clock???
Ahhhh... You are using the nice stationclock. No, the variable is not for the stationclock.

As a workaround you can edit your main.js and change clock.secondHand = StationClock.HoleShapedSecondHand; to clock.secondHand = StationClock.NoSecondHand; and ask Rob to add a variable for it.
Last edited by HansieNL on Wednesday 10 May 2017 21:28, edited 1 time in total.
Blah blah blah
Locked

Who is online

Users browsing this forum: Google [Bot] and 1 guest