Page 1 of 1
Dashticz moon pics and trashcan problems
Posted: Thursday 02 April 2020 22:35
by cencen
Hi,
Can somebody help me.
I had to reinstall dashticz after a crash of domoticz.
After installation of version 3.3.3.1 everything works except:
- Dashboard.png (276.23 KiB) Viewed 563 times
My trashcan picture is deformed (slimmer than the actual size)
and the moon phase pictures are not showing.
I did some checking on the moon phases and html inspect says that
"You don't have permission to access this resource. Apache/2.4.38 (Debian) Server at 192.168.178.150 Port 8082"
The moon library and pictures have the right permissions so I think someting is not right with Apache permission right but I dont know how to fix it.
Can somebody help me or give me a hint, also on the garbage picture.
Thanks!
Re: Dashticz moon pics and trashcan problems
Posted: Sunday 05 April 2020 14:29
by schwuppdiwupp
+1 on this
I just setup my dashticz and ran into the same issue:
Re: Dashticz moon pics and trashcan problems
Posted: Sunday 05 April 2020 16:53
by Lokonli
schwuppdiwupp wrote: ↑Sunday 05 April 2020 14:29
+1 on this
I just setup my dashticz and ran into the same issue:
Please check that the files and folders are accessible for root.
Can you post here how you defined your button for the moon image in CONFIG.js?
Re: Dashticz moon pics and trashcan problems
Posted: Sunday 05 April 2020 22:32
by cencen
Hi Lokonli,
folder moon has permission: drwxr-xr-x
and the png files have: -rw-r--r--
My config.js:
buttons.moon = {
width:2,
isimage:true,
refreshimage:60000,
image: 'moon'
}
//Definition of columns
columns = {}
columns[1] = {
// blocks : ['clock', 'sunrise', buttons.moon],
blocks : [
'clock',
// '192_1',buttons.moon,
'570_1',buttons.moon,
'875_1','869_1',
's3','s4',
// 'currentweather_big_owm',
'weather_owm',
'garbage',
'sunrise'],
width: 4
}
Thanks.
Re: Dashticz moon pics and trashcan problems
Posted: Sunday 05 April 2020 22:40
by schwuppdiwupp
Permission on my pi:
drwxr-xr-x 5 pi pi 4096 Apr 4 22:55 img
config.js
Code: Select all
buttons = {}
buttons.moon = {
width:12,
isimage:true,
refreshimage:60000,
image: 'moon'
}
columns[4] = {
blocks: ['sunrise', buttons.moon],
width: 2
}
Re: Dashticz moon pics and trashcan problems
Posted: Sunday 05 April 2020 22:41
by Lokonli
the 'image' parameter has been renamed to 'btnimage'
(the image parameter is reserved for the small image at the left of a block, instead of an icon.)
Re: Dashticz moon pics and trashcan problems
Posted: Sunday 05 April 2020 22:44
by Lokonli
I see there is an error in the moon documentation. I will update the documentation.
Re: Dashticz moon pics and trashcan problems
Posted: Sunday 05 April 2020 22:48
by cencen
Updated it and it works!
Thank for your support Lokonli.
Re: Dashticz moon pics and trashcan problems
Posted: Monday 06 April 2020 11:42
by schwuppdiwupp
Thx! working like a charm now