Page 9 of 11

Re: IMPORTANT REQUEST!!!

Posted: Thursday 06 December 2018 21:52
by Lokonli
nosehook wrote: Thursday 06 December 2018 21:37
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
The 'dangling' errors message means that the dashticz_v2 symlink in /var/www/html points to the wrong (non existing) location.
cd /var/www/html/dashticz_v2 probably also doesn't work.

Check the symlink pointer with ls -l /var/www/html
Remove the symlink and recreate it again.
Then check whether it works with

Code: Select all

cd /var/www/html/dashticz_v2
and then you should be in the Dashticz root folder.

Re: IMPORTANT REQUEST!!!

Posted: Friday 07 December 2018 11:36
by nosehook
Lokonli wrote: Thursday 06 December 2018 21:52
nosehook wrote: Thursday 06 December 2018 21:37
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
The 'dangling' errors message means that the dashticz_v2 symlink in /var/www/html points to the wrong (non existing) location.
cd /var/www/html/dashticz_v2 probably also doesn't work.

Check the symlink pointer with ls -l /var/www/html
Remove the symlink and recreate it again.
Then check whether it works with

Code: Select all

cd /var/www/html/dashticz_v2
and then you should be in the Dashticz root folder.
I removed the symlink and made the new one, that worked, so http://192.168.0.115/dashticz_v2/index.html shows dashticz.
However, both the garbage collector and calendar show loading...
The attachment inspection.jpg is no longer available
The attachment inspection.jpg is no longer available

Re: IMPORTANT REQUEST!!!

Posted: Friday 07 December 2018 11:44
by nosehook
inspection.jpg
inspection.jpg (272.6 KiB) Viewed 2599 times

Re: IMPORTANT REQUEST!!!

Posted: Friday 07 December 2018 15:10
by Lokonli
nosehook wrote: Friday 07 December 2018 11:44 inspection.jpg
In the error-log I see references to 192.168.0.115:82, which is not good.
Do you still have a setting for php_path in your CONFIG.js? You can remove it.

With the CORS errors I see the request comes from 192.168.0.115:8080. This is however your Domoticz server which is not correct.
Can you try again with opening Dashticz via the default port 80:
(http://192.168.0.115/dashticz_v2)

Can you report the errorlog after making the two changes?

The CORS error still is strange, and should have been fixed with beta 2.4.5 onwards. Which Dashticz version are you using? (Press the settings icon in the top bar and then the info tab)

Re: IMPORTANT REQUEST!!!

Posted: Friday 07 December 2018 18:25
by nosehook
Lokonli wrote: Friday 07 December 2018 15:10
nosehook wrote: Friday 07 December 2018 11:44 inspection.jpg
In the error-log I see references to 192.168.0.115:82, which is not good.
Do you still have a setting for php_path in your CONFIG.js? You can remove it.

With the CORS errors I see the request comes from 192.168.0.115:8080. This is however your Domoticz server which is not correct.
Can you try again with opening Dashticz via the default port 80:
(http://192.168.0.115/dashticz_v2)

Can you report the errorlog after making the two changes?

The CORS error still is strange, and should have been fixed with beta 2.4.5 onwards. Which Dashticz version are you using? (Press the settings icon in the top bar and then the info tab)
Thank you so much for your time!!!

It works now on http://192.168.0.115/dashticz_v2 !!! Much appreciated!

My domoticz data:
Version: 4.10256
Build Hash: 1cae6678
Compile Date: 2018-12-05 13:14:32
dzVents Version: 2.4.9
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]


Thnaks again!

Re: IMPORTANT REQUEST!!!

Posted: Friday 07 December 2018 18:32
by Lokonli
nosehook wrote: Friday 07 December 2018 18:25
Lokonli wrote: Friday 07 December 2018 15:10
nosehook wrote: Friday 07 December 2018 11:44 inspection.jpg
In the error-log I see references to 192.168.0.115:82, which is not good.
Do you still have a setting for php_path in your CONFIG.js? You can remove it.

With the CORS errors I see the request comes from 192.168.0.115:8080. This is however your Domoticz server which is not correct.
Can you try again with opening Dashticz via the default port 80:
(http://192.168.0.115/dashticz_v2)

Can you report the errorlog after making the two changes?

The CORS error still is strange, and should have been fixed with beta 2.4.5 onwards. Which Dashticz version are you using? (Press the settings icon in the top bar and then the info tab)
Thank you so much for your time!!!

It works now on http://192.168.0.115/dashticz_v2 !!! Much appreciated!

My domoticz data:
Version: 4.10256
Build Hash: 1cae6678
Compile Date: 2018-12-05 13:14:32
dzVents Version: 2.4.9
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]


Thnaks again!
Good! Well done! and enjoy :)

Re: IMPORTANT REQUEST!!!

Posted: Friday 14 December 2018 21:22
by leonhannink
Hi,
I'd tried everthing in the post, but i have a Synology nas 214play and domoticz +Dashticz running.
Domoticz runs on path: /volume1/@appstore/domoticz/ and Dashticz on: /volume1/@appstore/domoticz/www/dashticz/.

I'd tried also to replace Dashticz to my webserver to /web/Dashticz/ but nothings helps, no garbage, no tv guide. Please who now what to do ?
Apache is running, PHP also but i have no idea, some can help me?

Re: IMPORTANT REQUEST!!!

Posted: Sunday 16 December 2018 22:30
by leonhannink
Hi, Dashticz is working, but the symbolic link, in which Path do i place the link and which command?


Verzonden vanaf mijn iPad met Tapatalk

Re: IMPORTANT REQUEST!!!

Posted: Sunday 16 December 2018 22:51
by Lokonli
The web-root folder on Synology probably is /var/services/web. In that case create the symlink with:
ln -s /volume1/@appstore/domoticz/www/dashticz /var/services/web

Now open dashticz via:
http://synology-ip/dashticz

Re: IMPORTANT REQUEST!!!

Posted: Thursday 20 December 2018 19:50
by leonhannink
Thanks
Domoticz folder is on /volume1/@appstore/domoticz/
Dasthicz folder is on /volume1/web/Dashticz

i can open Dashticz already via http://synology-ip/Dashticz/index.html

Then the link must be: ln -s /volume1/@appstore/domoticz/ /volume1/web/dashticz/? is that correct
does it matter where put the symlink in which folder?

and how can i see when the link is corrrect?

Re: IMPORTANT REQUEST!!!

Posted: Thursday 20 December 2018 21:31
by Lokonli
leonhannink wrote: Thursday 20 December 2018 19:50 Thanks
Domoticz folder is on /volume1/@appstore/domoticz/
Dasthicz folder is on /volume1/web/Dashticz

i can open Dashticz already via http://synology-ip/Dashticz/index.html

Then the link must be: ln -s /volume1/@appstore/domoticz/ /volume1/web/dashticz/? is that correct
does it matter where put the symlink in which folder?

and how can i see when the link is corrrect?
If you already can open dashticz then there is no need for a symlink anymore.
Some people prefer to have Dashticz installed in their home folder, but there is no need for that.

Open Dashticz in Chrome via http://synology-ip/Dashticz/index.html
Still no garbage and tvguide?
Do you see one or more Domoticz devices?

Three things to do:
* Click on the settings icon in the Dashticz top bar, tab 'info'. Which version is reported of Dashticz, Domoticz and PHP?
(you must have a recent beta of Dashticz, and it should report a PHP version)
* Post your CONFIG.js here.
(remove default_cors_url and dashticz_php_path from your CONFIG.js (if you have them defined)
* Press F12 in Chrome to open the developer window. Refresh the Dashticz page. Post the user messages and errors from the console tab in the developer window.

Re: IMPORTANT REQUEST!!!

Posted: Monday 24 December 2018 11:42
by Pandabeer
I face also some problems - I have PHP 7.3 up and running, but still no garbage... still loading!
See attachment version and running PHP(for xx my personal info)

CONFIG.js

Code: Select all

config['app_title'] = 'xx';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

config['user_name'] = 'xx';
config['pass_word'] = 'xx';
config['loginEnabled'] = 0;

var garbage = {}
config['garbage_company'] = 'rova';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'xx';
config['garbage_street'] = 'xx';
config['garbage_housenumber'] = 'xx';
config['garbage_maxitems'] = '4';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = true;
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
    milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},

};

var columns = {}

columns[1] = {}
columns[1]['blocks'] = ['garbage']
columns[1]['width'] = 4;

Code: Select all

jquery.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js:4
/dashticz/vendor/dashticz/garbage/?service=rova&sub=undefined&zipcode=xx&nr=xx&t=:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
50VM2574:483 Uncaught TypeError: Cannot read property 'split' of undefined
    at getStatusBlock (eval at globalEval (jquery.min.js:2), <anonymous>:483:50)
    at handleDevice (main.js?v=1545647766741:1373)
    at Object.success (main.js?v=1545647766741:1256)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at z (jquery.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery.min.js:4)
16VM2574:483 Uncaught TypeError: Cannot read property 'split' of undefined
    at getStatusBlock (eval at globalEval (jquery.min.js:2), <anonymous>:483:50)
    at handleDevice (main.js?v=1545647766741:1373)
    at Object.success (main.js?v=1545647766741:1256)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at z (jquery.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery.min.js:4)
getStatusBlock @ VM2574:483
handleDevice @ main.js?v=1545647766741:1373
success @ main.js?v=1545647766741:1256
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
z @ jquery.min.js:4
(anonymous) @ jquery.min.js:4
load (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
n.(anonymous function) @ jquery.min.js:4
getDevices @ main.js?v=1545647766741:1076
getDevicesTmr @ main.js?v=1545647766741:1311
(anonymous) @ main.js?v=1545647766741:1319
Any Advise?

Re: IMPORTANT REQUEST!!!

Posted: Thursday 27 December 2018 9:15
by Pandabeer
After all Xmas diners and spending time with my family - I refreshed this morning... and it works! Thank you Santa

Re: IMPORTANT REQUEST!!!

Posted: Monday 31 December 2018 16:41
by geertvercamer
Hi all,

as a complete Linux noob this is quite difficult. Even more so, because I feel the wiki is quite often not up to date.

I started by downloading the zip and unpacking it in to /var/www/html/dashticz_v2
I've modified /etc/apace2/sites-enabled/000-default.conf and added:

Code: Select all

<VirtualHost *:8092>
# Always set these headers.
Header set Access-Control-Allow-Origin "*"
DocumentRoot /var/www/html/dashticz_v2
<Directory "/var/www/html/dashticz_v2">
allow from all
Options Indexes FollowSymLinks
Require all granted
</Directory>
</VirtualHost>
added port 8092 to ports.conf

<ip_of_pi_running_dashticz>:8092 loads dasthicz with the desired buttons, weather, ... but the garbage block keeps loading, no calendars added so far.

Then I read, the files are included in the latest beta, so I upgraded. Still no luck. Added an info.php page, which shows PHP and cURL are up and running
<ip_of_pi_running_dashticz>:8092/vendor/dashticz/garbage/info.php reads PHP version 7.0.30-0+deb9u1 and cURL suppert enabled, version 7.52.1
Same info when I click the cog in dashticzs and select the info tab.

CONGIF.js:

Code: Select all

config['garbage_company'] = 'ophaalkalender';
config['garbage_hideicon'] = 0;
config['garbage_housenumber'] = '54';
config['garbage_icalurl'] = '';
config['garbage_icon_use_colors'] = true;		// true / false; shows colored or only white trashcan
config['garbage_maxitems'] = '2';
config['garbage_street'] = 'De Patine';
config['garbage_use_names'] = true;				// true / false; shows name from config
config['garbage_use_colors'] = true;			// true / false; shows coloring for complete line
config['garbage_use_cors_prefix'] = true;
config['garbage_width'] = '12';
config['garbage_zipcode'] = '8980';
config['garbage'] = {
	gft: {kliko: 'White', code: '#White', name: 'GFT'},
	pmd: {kliko: '#87CEFA', code: '#87CEFA', name: 'PMD', icon: 'img/garbage/kliko_blue.png'},
	rest: {kliko: 'White', code: 'White', name: 'Restafval'},
	papier: {kliko: 'gray', code: '#c7763f', name: 'Papier & karton'},
	kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval'},
	brown: {kliko: 'brown', code: '#c7763f', name: 'Bruin'},
	black: {kliko: 'black', code: '#000000', name: 'Zwart'},
};

I haven't done the symlink thing, I thought it isn't needed as dashticz is not running on the domoticz server (which is actually a W10 machine as I had way to many trouble with the PI). Of course, I may be wrong here.

Is there anyone who can shed a light in this darkness? ;)
Thanks

Re: dashticz: Important Request

Posted: Wednesday 02 January 2019 22:45
by leonhannink
Here also it works! Thanks


Verzonden vanaf mijn iPad met Tapatalk

Re: dashticz: Important Request

Posted: Wednesday 02 January 2019 23:27
by geertvercamer
I installed Apache & PHP on a W10 machine.
Calendars are working fine, garbage (ophaalkalender, BE) not. :(

Settings as in previous post (2 up)

How can I debug? F12 and breakpoints do not work, for some reason the breakpoints are ignored.



:lol: BTW, looks like we're time travellers. Now, it's Wednesday, about 23:30, the post says Thursday 0:27

Re: dashticz: Important Request

Posted: Saturday 05 January 2019 20:42
by Derik
Dear All...
I do found some time to play with Dashticz...
I hope some can tell me with a new setup for my all the missing parts before Rob changed some masterthings..

When i read some topics.. There are a lot of different perimeters...
And unfortunately the WIKI :-(


I hope some can give a step by step guide..
For my calendar and garbage first


Thanks in advanced

Re: dashticz: Important Request

Posted: Tuesday 15 January 2019 11:07
by infiltrator88
Question:
I created the LINK to /var/www/html/ and my calender and garbage are working again.
Now when i go to the old URL(With port number http://192.168.1.34:8080/dashticz_v2/index.html) I can see my News which gets the latest news of nu.nl.

When I go to the new URL(without port number http://192.168.1.34/dashticz_v2/index.html) the news items aren't showing up?

I tried F12 to see if I could find some errors but there are just no errors.
I haven't got a clue where or how to resolve this issue. Anybody got any ideas?
Thans in advance

Re: dashticz: Important Request

Posted: Wednesday 16 January 2019 20:58
by Lokonli
infiltrator88 wrote: Tuesday 15 January 2019 11:07 Question:
I created the LINK to /var/www/html/ and my calender and garbage are working again.
Now when i go to the old URL(With port number http://192.168.1.34:8080/dashticz_v2/index.html) I can see my News which gets the latest news of nu.nl.

When I go to the new URL(without port number http://192.168.1.34/dashticz_v2/index.html) the news items aren't showing up?

I tried F12 to see if I could find some errors but there are just no errors.
I haven't got a clue where or how to resolve this issue. Anybody got any ideas?
Thans in advance
It's not completely clear what you tried to fix, and what the current problem is.
Apparently you are using calender, garbage and news.
Did you install the latest beta already?
What kind of system are you using? Raspberry PI?
You installed dashticz in /home/pi/domoticz/www/dashticz_v2?

You installed Apache and PHP?
If you open http://192.168.1.34/dashticz_v2/index.html then your calendar and garbage are working? Only news is not working?
Can you post here the lines from your CONFIG.js that define 'news', and, if they exist, the settings for
default_news_url
default_cors_url
dashticz_php_path

Next step in debugging:
Open Dashticz in Chrome, and press F12. The Chrome developers window opens. Refresh Dashticz. Then in the console-tab of the developer window:
* Is there any error reported?
* Which user messages are reported?

Re: dashticz: Important Request

Posted: Wednesday 16 January 2019 21:05
by Lokonli
Derik wrote: Saturday 05 January 2019 20:42 Dear All...
I do found some time to play with Dashticz...
I hope some can tell me with a new setup for my all the missing parts before Rob changed some masterthings..

When i read some topics.. There are a lot of different perimeters...
And unfortunately the WIKI :-(


I hope some can give a step by step guide..
For my calendar and garbage first


Thanks in advanced
How far are you?
Did you follow the installation instructions in the Wiki?
https://www.domoticz.com/wiki/Dashticz_ ... stallation

Can you post your CONFIG.js, and summarize the problems you have?