Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

@NilsNijenhuis Did test again. Dashticz on Nginx webserver +PHP on Raspberry Pi works ok. WebStation +PHP on Syno NAS -> Geen gegevens gevonden?
Maybe with the extra info of @mojojojo490 someone knows what can be the problem and hopefully has a solution.
Blah blah blah
NilsNijenhuis
Posts: 81
Joined: Friday 10 July 2020 22:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NilsNijenhuis »

@mojojojo490

if i use your code for the garbage collector i get no result...
Attachments
garbage.JPG
garbage.JPG (12.19 KiB) Viewed 1286 times
NilsNijenhuis
Posts: 81
Joined: Friday 10 July 2020 22:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NilsNijenhuis »

@hansienl

can it be a difference in php between raspberry pi and synology?
what version of php do you use on the raspberry
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

NilsNijenhuis wrote: Wednesday 15 July 2020 21:23 @hansienl

can it be a difference in php between raspberry pi and synology?
what version of php do you use on the raspberry
Version on Raspberry Pi is 7.3.19-1. Mijn AfvalWijzer calendar is correct on both RPi and NAS.
Blah blah blah
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Dashticz - Module - Garbage collector

Post by mojojojo490 »

@NilsNijenhuis what do you see when you follow the link:

Code: Select all

https://afvalkalender.circulus-berkel.nl/adres/7423GV:50
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
NilsNijenhuis
Posts: 81
Joined: Friday 10 July 2020 22:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NilsNijenhuis »

i see the picture below if i use the link on the laptop
Attachments
circulus berkel.JPG
circulus berkel.JPG (115.66 KiB) Viewed 1219 times
NilsNijenhuis
Posts: 81
Joined: Friday 10 July 2020 22:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NilsNijenhuis »

my php version on my synology is 7.3.16-0006

strange that mijnafvalwijzer works on both your synology en raspberry and that Cirkuslus berkel doesn't work on your Synology nas…
does anyone else have the same problem? and has a solution
NilsNijenhuis
Posts: 81
Joined: Friday 10 July 2020 22:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NilsNijenhuis »

is there nobody else who knows a solution for the circulusberkel garbage calender on a synology NAS?
NilsNijenhuis
Posts: 81
Joined: Friday 10 July 2020 22:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NilsNijenhuis »

Gentlemen, I am a little further where things go wrong with getting the garbage query from Circulus-Berkel, the one below between the "" is a response from a friend of mine who tested it on his NAS.

"Put it on the NAS at my company and it doesn't work there either. At the bottom right you can see that things are going wrong with getGeneralData (eval). Dashticz has its own twisted jquery.min.js file. If they used If I had a standard, I could have tried a different version. Now I can't do anything with it. "

Is there someone here from the developers who put the 'jquery.min.js' together and could see what goes wrong on line 224: 4 ????
Attachments
garbage fout in Json.jpg
garbage fout in Json.jpg (201.58 KiB) Viewed 1166 times
NilsNijenhuis
Posts: 81
Joined: Friday 10 July 2020 22:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NilsNijenhuis »

beneath is some extra information after reading the error log on the synology NAS on my friends NAS.
the same problem occurs at my synology NAS. so the garbage collector (circulus-berkel) in combination with a synology nas doesn't work!!!

Can anyone tell me who the creator of this file is, and can he check what is going wrong....
------------------------------------------------------------------------------------------------------------------------

Hey Nils,

Had enabled error log on the NAS, so that more information is visible.

The following error message is given.

Warning: file_get_contents (): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /volume1/web/dashticz/vendor/dashticz/garbage/index.php on line 103

Call Stack:
0.0037 386960 1. {main} () /volume1/web/dashticz/vendor/dashticz/garbage/index.php:0
0.0038 387192 2. file_get_contents () /volume1/web/dashticz/vendor/dashticz/garbage/index.php:103


Warning: file_get_contents (https://afvalkalender.circulus-berkel.n ... /7423gv-50): failed to open stream: No such file or directory in / volume1 / web / dashticz / vendor / dashticz / garbage / index .php on line 103

Call Stack:
0.0037 386960 1. {main} () /volume1/web/dashticz/vendor/dashticz/garbage/index.php:0
0.0038 387192 2. file_get_contents () /volume1/web/dashticz/vendor/dashticz/garbage/index.php:103

If the creators can make an adjustment in the script based on the above error, that would be nice.
NilsNijenhuis
Posts: 81
Joined: Friday 10 July 2020 22:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NilsNijenhuis »

We found the sollution for a working garbage collector for Circulus-Berkel on the Synology NAS

In de map dashticz:
/vendor/dashticz/garbage/index.php -> you need to maken a adjustment in de index.php file.
see the attachment to get it work!!! 8-) :D
Attachments
php bestand.jpg
php bestand.jpg (113.06 KiB) Viewed 1130 times
Lokonli
Posts: 2261
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

NilsNijenhuis wrote: Wednesday 29 July 2020 20:50 We found the sollution for a working garbage collector for Circulus-Berkel on the Synology NAS

In de map dashticz:
/vendor/dashticz/garbage/index.php -> you need to maken a adjustment in de index.php file.
see the attachment to get it work!!! 8-) :D
Great you found a solution!

It seems that the SSL checks that are used for the https connection are not handled correctly on a synology NAS.

Can you double check that you enabled the php openssl extension on your Synology?
(I couldn't see it in one of your previous posts https://www.domoticz.com/forum/viewtopi ... 40#p252306.
Just want to be sure ...)

In your fix you disable the https address checking. It will not do too much harm, so I'll include your workaround in the next beta.

Again, thanks for finding this workaround!
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

@Lokonli I tested on a Syno NAS and found out it was not working (empty string). I tried with different php versions / webservers, all with same result.
Php openssl was enabled.
Blah blah blah
Lokonli
Posts: 2261
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

HansieNL wrote: Saturday 01 August 2020 21:38 @Lokonli I tested on a Syno NAS and found out it was not working (empty string). I tried with different php versions / webservers, all with same result.
Php openssl was enabled.
ok, thanks for testing.

The garbage module uses the PHP function file_get_contents(). This function however also is used by the CORS proxy, no-cache, calendar module. Could you maybe test those modules on a Synology as well? (with a https address).

Probably they won't work neither,

or:
maybe there was only an issue with the Circulus-Berkel https certificate.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

Calendar and garbage is working o.k. on my Syno NAS. For the calendars I used https addresses. The problem is only with Circules-Berkel for some reason.
Blah blah blah
Lokonli
Posts: 2261
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

The SSL certificate for circules-berkel.nl is issued by Sectigo. On Synology the Sectigo root certificate expired. I don't know how to update the root certificates on a Synology. If anyone knows how to do this please leave a message here.
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by geertvercamer »

ophaalkalender.be isn't working anymore. it redirects to recycleapp.be After that, it's not clear to me how to build the appropriate URL to get the info.
madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by madradrakie »

Could it be that the data feed form Almere changed again? For GFT the module now publish zwart (black) instead of GFT with the current data.
User avatar
clinkadink
Posts: 417
Joined: Tuesday 31 December 2019 1:15
Target OS: Linux
Domoticz version: 2020.2
Location: Swindon, UK
Contact:

Re: Dashticz - Module - Garbage collector

Post by clinkadink »

Lokonli wrote: Sunday 02 August 2020 22:29 The SSL certificate for circules-berkel.nl is issued by Sectigo. On Synology the Sectigo root certificate expired. I don't know how to update the root certificates on a Synology. If anyone knows how to do this please leave a message here.
Does this help?
https://superuser.com/questions/1103219 ... n-synology
"UI is the saddle, the stirrups, & the reins. UX is the feeling you get being able to ride the horse."
Lokonli
Posts: 2261
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

geertvercamer wrote: Monday 03 August 2020 22:20 ophaalkalender.be isn't working anymore. it redirects to recycleapp.be After that, it's not clear to me how to build the appropriate URL to get the info.
Support for recycleapp has been added to latest beta.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest