Page 33 of 48
Re: Dashticz - Module - Garbage collector
Posted: Friday 10 July 2020 23:01
by NilsNijenhuis
Ik having a problem with Garbage collector in Dashticz v3.
i use the code beneath and only get a empty window.
what am i doing wrong?
//configuring Garbage company
config['garbage_company'] = 'circulusberkel';
config['garbage_zipcode'] = '7423gv';
config['garbage_street'] = 'Dagpauwoog';
config['garbage_housenumber'] = '50';
config['garbage_maxitems'] = '3';
config['garbage_hideicon'] = false;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT'},
pmd: {kliko: 'orange', code: '#db5518', name: 'Plastic'},
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval'},
}
Re: Dashticz - Module - Garbage collector
Posted: Friday 10 July 2020 23:17
by Lokonli
NilsNijenhuis wrote: ↑Friday 10 July 2020 23:01
Ik having a problem with Garbage collector in Dashticz v3.
i use the code beneath and only get a empty window.
what am i doing wrong?
//configuring Garbage company
config['garbage_company'] = 'circulusberkel';
config['garbage_zipcode'] = '7423gv';
config['garbage_street'] = 'Dagpauwoog';
config['garbage_housenumber'] = '50';
config['garbage_maxitems'] = '3';
config['garbage_hideicon'] = false;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT'},
pmd: {kliko: 'orange', code: '#db5518', name: 'Plastic'},
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval'},
}
I've tested your garbage settings on my system, and it's working.
Maybe your PHP setup is not correct.
Did you install Dashticz on a Synology? On your Nas, PHP settings, did you enable the 'curl' and 'openssl' PHP extensions?
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 10:35
by NilsNijenhuis
I have got a Symology NAS (DS213) with php 7.3 installed (see print screen) and curl and every other possibility enabled
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 10:44
by Lokonli
Then we have to do some debugging.
In chrome press F12 to open DevTools.
Refresh Dashticz.
In DevTools, network tab, filter on your zipcode. You should see one network request.
What is the reply code?
Can you post the response?
Sent from my SM-A320FL using Tapatalk
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 10:50
by NilsNijenhuis
if i use the code of someone else his garbage collector it does work.
But this is a different region and garbage collector company
// --------------------------------------------------------------------------------------------
// Garbage Collector
// --------------------------------------------------------------------------------------------
config['garbage_company'] = 'mijnafvalwijzer';
config['garbage_zipcode'] = '4891ZW';
config['garbage_street'] = 'Polanen';
config['garbage_housenumber'] = '1';
config['garbage_maxitems'] = '3';
config['garbage_hideicon'] = false;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT'},
pmd: {kliko: 'orange', code: '#db5518', name: 'Plastic'},
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval'},
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 10:56
by NilsNijenhuis
see the print screen below @lokonli
is that what you need?
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 10:58
by Lokonli
The status code is 200 which is ok. Can you also click on response and show the result?
Sent from my SM-A320FL using Tapatalk
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 11:10
by NilsNijenhuis
see the print screen
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 11:27
by Lokonli
The response is empty. I dont know why. I will double check again on my system later this week.
Sent from my SM-A320FL using Tapatalk
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 11:32
by NilsNijenhuis
oke thanks
i hope your reply later this week resolves some problems

Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 14:52
by mojojojo490
NilsNijenhuis wrote: ↑Friday 10 July 2020 23:01
Ik having a problem with Garbage collector in Dashticz v3.
i use the code beneath and only get a empty window.
Hey NilsNijenhuis, Can you share your CONFIG.js?
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 19:28
by HansieNL
@NilsNijenhuis and @Lokonli I checked the settings again and get garbage info.
Papier: maandag, GFT: 23-7-202, Rest: 30-7-2020
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 20:06
by NilsNijenhuis
@mojojojo490
hearby my config file, maybe you can see what i am doing wrong here...
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 21:13
by mojojojo490
NilsNijenhuis wrote: ↑Tuesday 14 July 2020 20:06
@mojojojo490
hearby my config file, maybe you can see what i am doing wrong here...
Thanks. It's strange. I will not get it work like that ...
I will try something else, continues...
[update: 21:23h] now i get the info: Plastic Donderdag ; GFT 23-7-2020; Restafval... not readable, cause the CSS is missing
But i do get the info. I changed my firewall temporary on port 8080, but I doubt this is it.
I also did update the dashticz. I run now version 3.5 (the latest).
On what kind of hardware are you running Dashticz / Domoticz?
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 21:57
by HansieNL
@NilsNijenhuis If I use your settings from my raspberry (Nginx webserver) it loads the data. From my Syno NAS it doesn't load.
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 22:48
by NilsNijenhuis
@mojojojojo490 i run domoticz and dashticz on a synology ds213
domoticz v3.9483
dashticz v3.5 master
dashticz running on port 80 so i haven't made firewall settings
@hansienl, enig idee wat het verschil tussen beide is? of waar dit aan zou kunnen liggen?
(is english preferred or is dutch fine for this topic?)
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 14 July 2020 23:11
by HansieNL
NilsNijenhuis wrote: ↑Tuesday 14 July 2020 22:48
@mojojojojo490 i run domoticz and dashticz on a synology ds213
domoticz v3.9483
dashticz v3.5 master
dashticz running on port 80 so i haven't made firewall settings
@hansienl, enig idee wat het verschil tussen beide is? of waar dit aan zou kunnen liggen?
(is english preferred or is dutch fine for this topic?)
English is the only allowed language on this forum.
I don’t know (yet) why it doesn’t load. I tried with WebStation. What webserver do you use on your NAS?
Re: Dashticz - Module - Garbage collector
Posted: Wednesday 15 July 2020 10:14
by NilsNijenhuis
i use webstation on my synology NAS
Re: Dashticz - Module - Garbage collector
Posted: Wednesday 15 July 2020 17:25
by mojojojo490
Hi Nils, for now i caný find why you don't get the info.
When i put your PC and number in the garbage collector, i do get the information.
Only the strainge situation is:
When i put my adress and number in it, it won't work. (1851VE, 106) It stays with: loading.....
The online site info gives the information, but the collector won't...
The PHP function isn't it also...
Code: Select all
// --------------------------------------------------------------------------------------------
// Garbage Collector
// --------------------------------------------------------------------------------------------
config['garbage_company'] = 'mijnafvalwijzer';
config['garbage_zipcode'] = '1851VE';
config['garbage_housenumber'] = '106';
config['garbage_maxitems'] = '3';
config['garbage_hideicon'] = false;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_mapping'] = {
rest: ['grof', 'grey', 'rest', 'grijs','grijze'],
gft: ['gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biodégradables', 'snoei'],
pmd: ['plastic', 'pmd', 'verpakking', 'kunststof', 'valorlux'],
papier: ['papier', 'blauw', 'blue', 'recycling bin collection'],
kca: ['chemisch', 'kca','kga'],
brown: ['brown', 'verre'],
black: ['black', 'zwart'],
milieu: ['milieu'],
kerstboom: ['kerst'],
};
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'},
};
Re: Dashticz - Module - Garbage collector
Posted: Wednesday 15 July 2020 18:13
by mojojojo490
mojojojo490 wrote: ↑Wednesday 15 July 2020 17:25
The online site info gives the information, but the collector won't...
When i press F12 (in Chrome) to open DevTools.
The result in red is:
Code: Select all
<br />
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/var/www/html/vendor/dashticz/garbage/index.php</b> on line <b>43</b><br />
[]
When i look at the index.php, is the code:
My knowledge ends here ...

[UPDATE 20:23h] when i follow the json link:
http://json.mijnafvalwijzer.nl/?method= ... nummer=106 then the output = "NOK"
When i try the zipcode from a earlier comment on this tread (from mijnafvalwijzer.nl), then i get json info..... So i will contact AddComm for more info.