dashticz: Important Request

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

JoshDinsdale wrote: Thursday 01 November 2018 17:20 Is there anyway to get dashticz to create a debug or log or something? I have some odd issues but dont know how to get any useful debug information...
In Chrome you can press F12. You then see the developer window, in which you can see errors, monitor network traffic, etc.

If you want to see the errors from your web server, then you can find log files in /var/log/apache2/ if you are using Apache on Linux.
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by tred »

Hi guys,

My beatiful dashboard also ran into issues regarding the calendars...
And they worked so wel...

As a Linux Noob I have read this thread a couple of times and made the adjustments that were suggested.
Unfortunately I cannot get it to work. If I try to debug it this is what I get:

The first error seems to be a bit odd - I have PHP 70 running... What does the 501 Error mean?

I hope that I did not something stupid but sometimes the replies to this thread are contradictionairy so it's hard to find the truth.
But it is out there!

Thanks for al your efforts helping people out :-)

Theo.
Attachments
dash.png
dash.png (46.19 KiB) Viewed 2222 times
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

tred wrote: Friday 09 November 2018 17:23 Hi guys,

My beatiful dashboard also ran into issues regarding the calendars...
And they worked so wel...

As a Linux Noob I have read this thread a couple of times and made the adjustments that were suggested.
Unfortunately I cannot get it to work. If I try to debug it this is what I get:

The first error seems to be a bit odd - I have PHP 70 running... What does the 501 Error mean?

I hope that I did not something stupid but sometimes the replies to this thread are contradictionairy so it's hard to find the truth.
But it is out there!

Thanks for al your efforts helping people out :-)

Theo.
The first error shows that php is not running. Are the IP and port address correct? Is 192.168.1.222:8099 your Domoticz server or your web server with PHP support?

The other three lines show a reference to dashticz.nl, which will not work, because dashticz.nl is down, and is not used anymore in the latest beta. Did you enter this somewhere manually in your CONFIG.js? You can remove the herokuapp part and the dashticz.nl part.
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by tred »

Hi!

Euhh.. I have only one server....
Domoticz runs indeed on: 192.168,1.222:8099,
Dashticz is available via http://192.168.1.222:8099/dash/index.html

and based on this thread I also have this one available 192.168.1.222:82
This one shows the "It Works!" screen from the Apach Debian page.

The last three did work but I did not know they are down now.
Somewhere in this thread it was mentioned to use the Dashticz...

I have also made some adjustments to the calendar.js script.

however... what needs to be done to get it working again?
Thanks again....

Theo.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

ok, good start :)

Two solutions.

1) (my preference)
Create a fresh install of dashticz in /var/www/html (assuming you run Apache on 192.168.1.222:82). I assume it will be /var/www/html/dashticz_v2.
Copy your current CONFIG.js to /var/www/html/dashticz_v2/custom

Then open dashticz via 192.168.1.222:82/dashticz_v2/

2)
First try 1)

Probably it's better to first try the most recent beta, without changing calendar.js
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by tred »

Fantastic! It's back in business :-)

The only thing missing is the calendar icon. I created one myself but where do I need to put it?

Many thanks, you really helped me out!

Theo
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

/var/www/html/dashticz_v2/img
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by tred »

Really appreciate your quick and helpful replies!

There is just 1 of the 4 calendars failing now. Three of them are webcalls and the one that does not work is a http:\\ call? Could that be the cause?
It's the soccer calendar of my son :-)

This is the entry of CONFIG.sys:

calendars.sliedrecht = { maxitems: 5, icalurl: 'https://data.sportlink.com/data/ical-pe ... q0o6rilxxx'}

and this is the result:

GET http://192.168.1.222:82/dashticz_v2/ven ... 41sq0o6ril*** 500 (Internal Server Error)

I have tried to replace https:\\ with http:\\ and also tried "webcal://" instead of https...
Can't seem to find the issue, hope you now what this is?

Thanks again...
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

tred wrote: Saturday 10 November 2018 10:58 Really appreciate your quick and helpful replies!

There is just 1 of the 4 calendars failing now. Three of them are webcalls and the one that does not work is a http:\\ call? Could that be the cause?
It's the soccer calendar of my son :-)

This is the entry of CONFIG.sys:

calendars.sliedrecht = { maxitems: 5, icalurl: 'https://data.sportlink.com/data/ical-pe ... q0o6rilxxx'}

and this is the result:

GET http://192.168.1.222:82/dashticz_v2/ven ... 41sq0o6ril*** 500 (Internal Server Error)

I have tried to replace https:\\ with http:\\ and also tried "webcal://" instead of https...
Can't seem to find the issue, hope you now what this is?

Thanks again...
The sportlink calendar requires you to login first. Then a token is stored, and the calendar can be retrieved via this token. The token in the link you provided expired already, and as a result the loading of the calendar gives an error.

It's not so easy to solve this. I'll give it a try ...
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by tred »

Thanks....
tred
Posts: 14
Joined: Wednesday 26 September 2018 19:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by tred »

Hi,

Is there a workaround you know of?
Like manually exporting the calendar entries and them import them via Google calendar?
If it's complex and I am the only one with this request.... just let it be...
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

tred wrote: Thursday 15 November 2018 13:12 Hi,

Is there a workaround you know of?
Like manually exporting the calendar entries and them import them via Google calendar?
If it's complex and I am the only one with this request.... just let it be...
That's a good idea.
If you can save the ical file manually to for instance /home/pi/ical.ics then you can load the file in dashticz via:

Code: Select all

calendars.sliedrecht = { maxitems: 5, icalurl: '/home/pi/ical.ics' }
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: IMPORTANT REQUEST!!!

Post by poudenes »

Hi All,

i see that the:

config['longfonds_zipcode'] = '1000 aa';
config['longfonds_housenumber'] = '1';

not work. Where can i find the script to this? Maybe i have to change that as well to my own server....
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

poudenes wrote: Sunday 18 November 2018 11:16 Hi All,

i see that the:

config['longfonds_zipcode'] = '1000 aa';
config['longfonds_housenumber'] = '1';

not work. Where can i find the script to this? Maybe i have to change that as well to my own server....
Probably because this zipcode is no real address. Also the space in the zip-code should be removed.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: IMPORTANT REQUEST!!!

Post by poudenes »

Zip code is OK but changed it to cover my address. I will remove the space and see what happen :)

SOLVED: Working again. after removing the space

Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
nosehook
Posts: 49
Joined: Thursday 31 March 2016 20:49
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IMPORTANT REQUEST!!!

Post by nosehook »

Hi Guys,

I've read the whole thread and tried Worm's guide.
So far if I do

Code: Select all

php -v
I get:

Code: Select all

PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies
Edit: When I check with dashticz i See: PHP Not installed!!!

If I go to http://192.168.0.115/ I get the default Apache2 webpage

If I go to http://192.168.0.115:82/ I get ERR_CONNECTION_REFUSED

I am a big fan and would like to have the calendar and garbage collector working again.

Any ideas? I am a complete Linux N00b, so could use some help :ugeek:
Pi3 Domoticz | RFXcom 433E | KAKU/COCO |Harmony Hub | Samsung TV | HS100 | HS110| HUE | Tradfri | Tado| Xiaomi |sensors | scripts| Pi3 Node Red | Pi2 SDS_011 + MH-Z19B | PiAware (zero) | Pi2 breadboard with Node red and Domoticz
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

nosehook wrote: Thursday 06 December 2018 17:38 Hi Guys,

I've read the whole thread and tried Worm's guide.
So far if I do

Code: Select all

php -v
I get:

Code: Select all

PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies
Edit: When I check with dashticz i See: PHP Not installed!!!

If I go to http://192.168.0.115/ I get the default Apache2 webpage

If I go to http://192.168.0.115:82/ I get ERR_CONNECTION_REFUSED

I am a big fan and would like to have the calendar and garbage collector working again.

Any ideas? I am a complete Linux N00b, so could use some help :ugeek:
Did you already restart Apache?

Code: Select all

sudo systemctl restart apache2
What is the IP and port of your Domoticz server?
Which url do you use for dashticz?

If you installed Dashticz in /home/pi/domoticz/www/dashticz_v2/
and you created the symlink: ln -s /home/pi/domoticz/www/dashticz_v2/ /var/www/html/

then you should be able to open Dashticz via:
http://192.168.0.115/dashticz_v2/index.html

(Don't use the port of Domoticz, because the Domoticz webserver doesn't support php)
nosehook
Posts: 49
Joined: Thursday 31 March 2016 20:49
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IMPORTANT REQUEST!!!

Post by nosehook »

Lokonli wrote: Thursday 06 December 2018 19:28 Did you already restart Apache?

Code: Select all

sudo systemctl restart apache2
What is the IP and port of your Domoticz server?
Which url do you use for dashticz?

If you installed Dashticz in /home/pi/domoticz/www/dashticz_v2/
and you created the symlink: ln -s /home/pi/domoticz/www/dashticz_v2/ /var/www/html/

then you should be able to open Dashticz via:
http://192.168.0.115/dashticz_v2/index.html

(Don't use the port of Domoticz, because the Domoticz webserver doesn't support php)
Hi Loki,

I executed your code

My domoticz runs on a Raspberry pi on IP: 192.168.0.115, port 8080
Dashticz runs on http://192.168.0.115:8080/dashticz_v2/

I have created the link, when I open http://192.168.0.115/dashticz_v2/index.html I get:

Code: Select all

Forbidden
You don't have permission to access /dashticz_v2/index.html on this server.
Apache/2.4.25 (Raspbian) Server at 192.168.0.115 Port 80
Pi3 Domoticz | RFXcom 433E | KAKU/COCO |Harmony Hub | Samsung TV | HS100 | HS110| HUE | Tradfri | Tado| Xiaomi |sensors | scripts| Pi3 Node Red | Pi2 SDS_011 + MH-Z19B | PiAware (zero) | Pi2 breadboard with Node red and Domoticz
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by Lokonli »

nosehook wrote: Thursday 06 December 2018 19:59
Lokonli wrote: Thursday 06 December 2018 19:28 Did you already restart Apache?

Code: Select all

sudo systemctl restart apache2
What is the IP and port of your Domoticz server?
Which url do you use for dashticz?

If you installed Dashticz in /home/pi/domoticz/www/dashticz_v2/
and you created the symlink: ln -s /home/pi/domoticz/www/dashticz_v2/ /var/www/html/

then you should be able to open Dashticz via:
http://192.168.0.115/dashticz_v2/index.html

(Don't use the port of Domoticz, because the Domoticz webserver doesn't support php)
Hi Loki,

I executed your code

My domoticz runs on a Raspberry pi on IP: 192.168.0.115, port 8080
Dashticz runs on http://192.168.0.115:8080/dashticz_v2/

I have created the link, when I open http://192.168.0.115/dashticz_v2/index.html I get:

Code: Select all

Forbidden
You don't have permission to access /dashticz_v2/index.html on this server.
Apache/2.4.25 (Raspbian) Server at 192.168.0.115 Port 80
Probably a permission issue indeed. I've a slightly different setup, and I'm not an expert, but probably you have to add read permission to all users for the dashticz related files, and execute permission for the folders .

Code: Select all

chmod a+rx /var/www/html/dashticz_v2
If that's not sufficient then add

Code: Select all

chmod a+rx /home/pi/domoticz/www/dashticz_v2
chmod -R a+rX /home/pi/domoticz/www/dashticz_v2/*
nosehook
Posts: 49
Joined: Thursday 31 March 2016 20:49
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IMPORTANT REQUEST!!!

Post by nosehook »

Lokonli wrote: Thursday 06 December 2018 20:25 Probably a permission issue indeed. I've a slightly different setup, and I'm not an expert, but probably you have to add read permission to all users for the dashticz related files, and execute permission for the folders .

Code: Select all

chmod a+rx /var/www/html/dashticz_v2
If that's not sufficient then add

Code: Select all

chmod a+rx /home/pi/domoticz/www/dashticz_v2
chmod -R a+rX /home/pi/domoticz/www/dashticz_v2/*
Hi Loki,

Thanks for the help!

on

Code: Select all

chmod a+rx /var/www/html/dashticz_v2
I got:

Code: Select all

chmod: cannot operate on dangling symlink '/var/www/html/dashticz_v2'
The second option I got no feedback, however,

Code: Select all

Forbidden
You don't have permission to access /dashticz_v2/index.html on this server.
Apache/2.4.25 (Raspbian) Server at 192.168.0.115 Port 80
Pi3 Domoticz | RFXcom 433E | KAKU/COCO |Harmony Hub | Samsung TV | HS100 | HS110| HUE | Tradfri | Tado| Xiaomi |sensors | scripts| Pi3 Node Red | Pi2 SDS_011 + MH-Z19B | PiAware (zero) | Pi2 breadboard with Node red and Domoticz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest