Page 114 of 184

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 15:30
by EdwinK
I believe it takes the time from the machine where the server is running.

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 15:33
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.

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 16:08
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;

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 16:43
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

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 17:12
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

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 17:21
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

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 18:03
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.

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 18:53
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

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 19:07
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 ..

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 19:30
by pvdhelm
when i do a git pull i get some error messages
gitpull.png
gitpull.png (7.35 KiB) Viewed 1824 times
what to do. I run the beta version of dashticz

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 19:39
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

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 19:42
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.

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 20:11
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.

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 20:16
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.

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 20:18
by robgeerts
Impossible ;)
At least, if you are sure nothing gets cached and you have the latest beta ;)

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 20:23
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

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 20:30
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 :/

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 20:40
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???

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 21:11
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.

Re: Dashticz - General Discussions

Posted: Wednesday 10 May 2017 21:20
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.