Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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 »

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'},
}
Attachments
dashboard.jpg
dashboard.jpg (290.25 KiB) Viewed 1614 times
Lokonli
Posts: 2290
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: 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?
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 have got a Symology NAS (DS213) with php 7.3 installed (see print screen) and curl and every other possibility enabled
Attachments
php 7.3.JPG
php 7.3.JPG (90.03 KiB) Viewed 1581 times
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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

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 »

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'},
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 »

see the print screen below @lokonli
is that what you need?
Attachments
reply.JPG
reply.JPG (93.78 KiB) Viewed 1579 times
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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

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 »

see the print screen
Attachments
response.JPG
response.JPG (74.56 KiB) Viewed 1558 times
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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

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 »

oke thanks
i hope your reply later this week resolves some problems :)
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 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?
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
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

@NilsNijenhuis and @Lokonli I checked the settings again and get garbage info.
Papier: maandag, GFT: 23-7-202, Rest: 30-7-2020
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

hearby my config file, maybe you can see what i am doing wrong here...
Attachments
CONFIG.js
(9.84 KiB) Downloaded 59 times
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 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 :lol:
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?
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
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
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 »

@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?)
User avatar
HansieNL
Posts: 964
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: 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?
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 »

i use webstation on my synology NAS
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 »

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'},
};
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
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 »

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:

Code: Select all

	foreach($return as $row){
	
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.
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest