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 »

Screen Shot 2018-11-11 at 18.45.24.png
Screen Shot 2018-11-11 at 18.45.24.png (137.08 KiB) Viewed 5979 times
Found this, little, problem with my dashboard. As you can see, two of the tiles are a bit lower than the first one. At first I thought it was because the data was too much to handle in the box, but that isn't the case. Any clue's on this?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Dashticz - General Discussions

Post by Minglarn »

Hi...

2 questions....

1. What/witch function handles the popup window? Need to change the size of the popup..
2. How do I change the font for the whole layout?
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - General Discussions

Post by gielie »

Can someone help me out, I can't get 1 of my agendas back online.
I started from scratch, reinstalled raspbian stretch, reinstalled domoticz and reinstalled dashticz folowing the latest tutorial (https://www.domoticz.com/wiki/Dashticz_ ... stallation)

this is the error I get

Code: Select all

jquery.min.js:4 GET http://192.168.1.16/dashticz/vendor/dashticz/ical/?time=1542198234423&url=https://mijn.digiduif.nl/ical/[email protected]/*******.ics 500 (Internal Server Error)
My other iCloud agenda/garbage works fine and this agenda worked fine before, what is going wrong? Is the .ics a problem?
Last edited by gielie on Wednesday 14 November 2018 13:32, edited 2 times in total.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Lokonli »

Minglarn wrote: Wednesday 14 November 2018 10:18 Hi...

1. What/witch function handles the popup window? Need to change the size of the popup..
I assume you mean the popup window of a button?
See js/main.js, function loadImage, line 861

Code: Select all

html += '<iframe data-popup="' + image.url + '" width="100%" height="570" frameborder="0" allowtransparency="true"></iframe> ';
Here you can fill in the width and the height of the popup iframe. If needed you can make it dependent on image.url.

Maybe we should create a feature request for this so that it becomes configurable via CONFIG.js for each button.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Lokonli »

gielie wrote: Wednesday 14 November 2018 13:26 Can someone help me out, I can't get 1 of my agendas back online.
I started from scratch, reinstalled raspbian stretch, reinstalled domoticz and reinstalled dashticz folowing the latest tutorial (https://www.domoticz.com/wiki/Dashticz_ ... stallation)

this is the error I get

Code: Select all

jquery.min.js:4 GET http://192.168.1.16/dashticz/vendor/dashticz/ical/?time=1542198234423&url=https://mijn.digiduif.nl/ical/[email protected]/*******.ics 500 (Internal Server Error)
My other iCloud agenda/garbage works fine and this agenda works fine before, what is going wrong? Is the .ics a problem?
Probably ...
Did you already check the url itself by opening it in a browser: https://mijn.digiduif.nl/ical/machielja ... ******.ics

Maybe also the apache error log provides additional info. You can find it in:

Code: Select all

/var/log/apache2/error.log
It might be a cross-origin problem, but I would expect that was solved with the latest beta.
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - General Discussions

Post by gielie »

Lokonli wrote: Wednesday 14 November 2018 13:36
gielie wrote: Wednesday 14 November 2018 13:26 Can someone help me out, I can't get 1 of my agendas back online.
I started from scratch, reinstalled raspbian stretch, reinstalled domoticz and reinstalled dashticz folowing the latest tutorial (https://www.domoticz.com/wiki/Dashticz_ ... stallation)

this is the error I get

Code: Select all

jquery.min.js:4 GET http://192.168.1.16/dashticz/vendor/dashticz/ical/?time=1542198234423&url=https://mijn.digiduif.nl/ical/[email protected]/*******.ics 500 (Internal Server Error)
My other iCloud agenda/garbage works fine and this agenda works fine before, what is going wrong? Is the .ics a problem?
Probably ...
Did you already check the url itself by opening it in a browser: https://mijn.digiduif.nl/ical/machielja ... ******.ics

Maybe also the apache error log provides additional info. You can find it in:

Code: Select all

/var/log/apache2/error.log
It might be a cross-origin problem, but I would expect that was solved with the latest beta.
Url works fine in browser, in the apache2 log i get this error

Code: Select all

[Wed Nov 14 16:41:32.720954 2018] [:error] [pid 9089] [client 192.168.1.30:61984] PHP Fatal error:  Uncaught Error: Call to undefined function utf8_encode() in /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php:64\nStack trace:\n#0 /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php(10): SG_iCal_Parser::Fetch('https://mijn.di...')\n#1 /home/pi/dashticz/vendor/dashticz/ical/SG_iCal.php(57): SG_iCal_Parser::Parse('https://mijn.di...', Object(SG_iCalReader))\n#2 /home/pi/dashticz/vendor/dashticz/ical/SG_iCal.php(48): SG_iCal->setUrl('https://mijn.di...')\n#3 /home/pi/dashticz/vendor/dashticz/ical/index.php(7): SG_iCal->__construct('https://mijn.di...')\n#4 {main}\n  thrown in /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php on line 64, referer: http://192.168.1.16/dashticz/
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Lokonli »

gielie wrote: Wednesday 14 November 2018 15:39
Lokonli wrote: Wednesday 14 November 2018 13:36
gielie wrote: Wednesday 14 November 2018 13:26 Can someone help me out, I can't get 1 of my agendas back online.
I started from scratch, reinstalled raspbian stretch, reinstalled domoticz and reinstalled dashticz folowing the latest tutorial (https://www.domoticz.com/wiki/Dashticz_ ... stallation)

this is the error I get

Code: Select all

jquery.min.js:4 GET http://192.168.1.16/dashticz/vendor/dashticz/ical/?time=1542198234423&url=https://mijn.digiduif.nl/ical/[email protected]/*******.ics 500 (Internal Server Error)
My other iCloud agenda/garbage works fine and this agenda works fine before, what is going wrong? Is the .ics a problem?
Probably ...
Did you already check the url itself by opening it in a browser: https://mijn.digiduif.nl/ical/machielja ... ******.ics

Maybe also the apache error log provides additional info. You can find it in:

Code: Select all

/var/log/apache2/error.log
It might be a cross-origin problem, but I would expect that was solved with the latest beta.
Url works fine in browser, in the apache2 log i get this error

Code: Select all

[Wed Nov 14 16:41:32.720954 2018] [:error] [pid 9089] [client 192.168.1.30:61984] PHP Fatal error:  Uncaught Error: Call to undefined function utf8_encode() in /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php:64\nStack trace:\n#0 /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php(10): SG_iCal_Parser::Fetch('https://mijn.di...')\n#1 /home/pi/dashticz/vendor/dashticz/ical/SG_iCal.php(57): SG_iCal_Parser::Parse('https://mijn.di...', Object(SG_iCalReader))\n#2 /home/pi/dashticz/vendor/dashticz/ical/SG_iCal.php(48): SG_iCal->setUrl('https://mijn.di...')\n#3 /home/pi/dashticz/vendor/dashticz/ical/index.php(7): SG_iCal->__construct('https://mijn.di...')\n#4 {main}\n  thrown in /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php on line 64, referer: http://192.168.1.16/dashticz/
I missed a dependency in the installation instructions. Please install

Code: Select all

sudo apt-get install php7.0-xml
and restart apache:

Code: Select all

sudo systemctl restart apache2
It should work after that ...
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Lokonli »

EdwinK wrote: Sunday 11 November 2018 18:48 Screen Shot 2018-11-11 at 18.45.24.pngFound this, little, problem with my dashboard. As you can see, two of the tiles are a bit lower than the first one. At first I thought it was because the data was too much to handle in the box, but that isn't the case. Any clue's on this?
I would expect it's something in your custom.css.
If you create an empty custom.css does the problem then disappear?

And with your own custom.css:
If you remove the 'regenkans' block from your CONFIG.js do you then still see the problem?
And if you remove the SLK-block? or the HSK-block?
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Dashticz - General Discussions

Post by Minglarn »

Lokonli wrote: Wednesday 14 November 2018 13:28
Minglarn wrote: Wednesday 14 November 2018 10:18 Hi...

1. What/witch function handles the popup window? Need to change the size of the popup..
I assume you mean the popup window of a button?
See js/main.js, function loadImage, line 861

Code: Select all

html += '<iframe data-popup="' + image.url + '" width="100%" height="570" frameborder="0" allowtransparency="true"></iframe> ';
Here you can fill in the width and the height of the popup iframe. If needed you can make it dependent on image.url.

Maybe we should create a feature request for this so that it becomes configurable via CONFIG.js for each button.
Sorry but that didn't work... I'll do a feature request for it... :)
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Lokonli »

Minglarn wrote: Wednesday 14 November 2018 21:39
Lokonli wrote: Wednesday 14 November 2018 13:28
Minglarn wrote: Wednesday 14 November 2018 10:18 Hi...

1. What/witch function handles the popup window? Need to change the size of the popup..
I assume you mean the popup window of a button?
See js/main.js, function loadImage, line 861

Code: Select all

html += '<iframe data-popup="' + image.url + '" width="100%" height="570" frameborder="0" allowtransparency="true"></iframe> ';
Here you can fill in the width and the height of the popup iframe. If needed you can make it dependent on image.url.

Maybe we should create a feature request for this so that it becomes configurable via CONFIG.js for each button.
Sorry but that didn't work... I'll do a feature request for it... :)
Yes, I tested it and indeed some additional changes need to be made. I've the patch ready, and I'll create the PR for it.
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - General Discussions

Post by gielie »

Lokonli wrote: Wednesday 14 November 2018 19:53
gielie wrote: Wednesday 14 November 2018 15:39
Lokonli wrote: Wednesday 14 November 2018 13:36
Probably ...
Did you already check the url itself by opening it in a browser: https://mijn.digiduif.nl/ical/machielja ... ******.ics

Maybe also the apache error log provides additional info. You can find it in:

Code: Select all

/var/log/apache2/error.log
It might be a cross-origin problem, but I would expect that was solved with the latest beta.
Url works fine in browser, in the apache2 log i get this error

Code: Select all

[Wed Nov 14 16:41:32.720954 2018] [:error] [pid 9089] [client 192.168.1.30:61984] PHP Fatal error:  Uncaught Error: Call to undefined function utf8_encode() in /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php:64\nStack trace:\n#0 /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php(10): SG_iCal_Parser::Fetch('https://mijn.di...')\n#1 /home/pi/dashticz/vendor/dashticz/ical/SG_iCal.php(57): SG_iCal_Parser::Parse('https://mijn.di...', Object(SG_iCalReader))\n#2 /home/pi/dashticz/vendor/dashticz/ical/SG_iCal.php(48): SG_iCal->setUrl('https://mijn.di...')\n#3 /home/pi/dashticz/vendor/dashticz/ical/index.php(7): SG_iCal->__construct('https://mijn.di...')\n#4 {main}\n  thrown in /home/pi/dashticz/vendor/dashticz/ical/helpers/SG_iCal_Parser.php on line 64, referer: http://192.168.1.16/dashticz/
I missed a dependency in the installation instructions. Please install

Code: Select all

sudo apt-get install php7.0-xml
and restart apache:

Code: Select all

sudo systemctl restart apache2
It should work after that ...
You're my hero, its finally working again, thanks a lot sir. (making a solute gesture)
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
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 »

Lokonli wrote: Wednesday 14 November 2018 20:56
EdwinK wrote: Sunday 11 November 2018 18:48 Screen Shot 2018-11-11 at 18.45.24.pngFound this, little, problem with my dashboard. As you can see, two of the tiles are a bit lower than the first one. At first I thought it was because the data was too much to handle in the box, but that isn't the case. Any clue's on this?
I would expect it's something in your custom.css.
If you create an empty custom.css does the problem then disappear?

And with your own custom.css:
If you remove the 'regenkans' block from your CONFIG.js do you then still see the problem?
And if you remove the SLK-block? or the HSK-block?
I have it fixed by changing the size of some of those tiles.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Dashticz - General Discussions

Post by Minglarn »

A small question...

How many columns is max?
Trying to:

Code: Select all

columns[10] = {};	// SWITCHES.
But it recognizes as column 1 ... ?
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
User avatar
mvveelen
Posts: 697
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by mvveelen »

After updating my RPi3

(sudo apt-get update
sudo apt-get upgrade)

I get the following error message and the Apache HTTP server won't start anymore, ruining my Dashticz garbage and calendar.

Does anyone know what I can try to fix this? Tried reinstalling, removing and installing, rebooting the RPi, but nothing worked.

Code: Select all

pi@pidomoticz:~ $ sudo apt-get install apache2 apache2-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-utils
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/454 kB of archives.
After this operation, 977 kB of additional disk space will be used.
Selecting previously unselected package apache2-utils.
(Reading database ... 39984 files and directories currently installed.)
Preparing to unpack .../apache2-utils_2.4.25-3+deb9u6_armhf.deb ...
Unpacking apache2-utils (2.4.25-3+deb9u6) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.25-3+deb9u6_armhf.deb ...
Unpacking apache2 (2.4.25-3+deb9u6) ...
Setting up apache2-utils (2.4.25-3+deb9u6) ...
Processing triggers for systemd (232-25+deb9u6) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up apache2 (2.4.25-3+deb9u6) ...
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2018-11-19 22:18:49 CET; 31ms ago
  Process: 1731 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Nov 19 22:18:49 pidomoticz apachectl[1731]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Nov 19 22:18:49 pidomoticz apachectl[1731]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Nov 19 22:18:49 pidomoticz apachectl[1731]: no listening sockets available, shutting down
Nov 19 22:18:49 pidomoticz apachectl[1731]: AH00015: Unable to open logs
Nov 19 22:18:49 pidomoticz apachectl[1731]: Action 'start' failed.
Nov 19 22:18:49 pidomoticz apachectl[1731]: The Apache error log may have more information.
Nov 19 22:18:49 pidomoticz systemd[1]: apache2.service: Control process exited, code=exited status=1
Nov 19 22:18:49 pidomoticz systemd[1]: Failed to start The Apache HTTP Server.
Nov 19 22:18:49 pidomoticz systemd[1]: apache2.service: Unit entered failed state.
Nov 19 22:18:49 pidomoticz systemd[1]: apache2.service: Failed with result 'exit-code'.
Edit:

Well, because nginx was suddenly running on the same port (80), I had to uninstall nginx and all related programs from the RPi. After that, the apache server is up again. Seems weird, because I only did the updates and never used nginx on the RPi before.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by renerene »

Hello,

How do I let my temperature pop-out? This looks like sh$%$
Image

CONFIG.js;

Code: Select all

blocks[919] = {}
blocks[919]['width'] = 12; //1 to 12, remove this line if you want to use the default (4)
blocks[919]['title'] = '' //if you want change the name of switch different then domoticz
blocks[919]['switch'] = true;
custom.css;

Code: Select all

.block_919 {
   font-size:60px !important;
}
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Dashticz - General Discussions

Post by Minglarn »

A little question...

How "safe" is it to expose the Dasthticz webpage to internet?
I mean... I I only show the temperatures and a couple of sensors... Is it safe or should I reconsider it unsafe?

Btw...

Still trying to see if I can get Dashtics to work when reached from outside my lan.

If I browse to my page on my Synology server, it complains about that domoticz does not respond.
I've tried local IP and my external IP but always get the error as below:
Attachments
Skärmklipp.JPG
Skärmklipp.JPG (30.67 KiB) Viewed 6179 times
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
Oktopus
Posts: 3
Joined: Tuesday 13 March 2018 8:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Oktopus »

It's unsafe to expose to internet. Because if you can see the temperature and other sensors you can also access Domoticz from the internet. And then you can change a lot of things and gain access to the host.
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Dashticz - General Discussions

Post by Minglarn »

I did some research and understand that it sure is unsafe..
Therefore I did a login request in php to access the domoticz page.
However...

I still get the same error..
ERR_CONNECTION_TIMED_OUT ... I still cant figure it out.
Any kind of help is appreciated..
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Lokonli »

What do you mean with
Therefore I did a login request in php to access the domoticz page.
If you want to access Dashticz from outside your LAN then it would be safe by using a VPN connection.
You can install the VPN server on your Synology.
tileiran
Posts: 5
Joined: Thursday 20 December 2018 6:55
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by tileiran »

o you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a
Locked

Who is online

Users browsing this forum: No registered users and 1 guest