Cool, I saw them, thanks!
Dashticz - Module - Garbage collector Topic is solved
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Garbage collector
- htilburgs
- Posts: 464
- Joined: Tuesday 03 November 2015 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Dashticz - Module - Garbage collector
I'm trying to figure out how it works exactly, so I can update the wiki. As an example, I use the GFT line:aiolos wrote: ↑Tuesday 28 November 2017 17:07 A PR for changes in the garbage collection module has been created, so this will be merged soon. There are some changes related to the colouring and naming.
The following config options are new (and trashnames/trashcolors config is gone)Within this config you can change the kliko color and color code of the lines in the block (color code only used if you enable the 'garbage_use_colors' config option). The name property is used if the 'garbage_use_names' option is enabled, otherwise the information from your garbage company will be used.Code: Select all
config['garbage'] = { gft: {kliko: 'green', code: '#375b23', name: 'GFT'}, pmd: {kliko: 'orange', code: '#db5518', name: 'PMD'}, rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval'}, papier: {kliko: 'blue', code: '#153477', name: 'Papier'}, kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval'}, brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin'}, black: {kliko: 'black', code: '#000000', name: 'Zwart'}, }; config['garbage_use_names'] = true; config['garbage_use_colors'] = true;
All various garbage company handling has slightly changed (but the outcome should not be different).
All garbage collection information that was fetched through an ical calender is now loaded directly through javascript (without the need of a php script, which was loaded externally).
Code: Select all
gft: {kliko: 'green', code: '#375b23', name: 'GFT'},
kliko: 'green' --> color of kliko
code: '#375b23' --> ??
name: 'GFT' --> Alternative name
What is the 'code' field refering to?
Is it possible to choose other icon?
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Module - Garbage collector
That is the hex-code for the color. See http://www.color-hex.com/color/375b23
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Garbage collector
There is already a part on the wiki changed on this: http://www.domoticz.com/wiki/Dashticz_V ... ember_2017 but please extend/change it where necessary.
code is the hexadecimal color code for the line with the description, so for example it can become something like:
GFT: Morgen
PMD: Vrijdag
There are lots of color pickers around, i.e. https://www.w3schools.com/colors/colors_picker.asp
If the icon should also need to be a variable that is possible. A new property 'icon' could be added where you put the filename of the icon, good idea!
edit: I'm already too late...
edit2: A bit more information about how the decision is made what type of garbage is collected:
The response from the garbage company is checked as follows:
Everything with gft, tuin, refuse bin, green, groen -> gft
black, zwart -> black
plastic, pmd, verpakking, kunststof -> pmd
brown -> brown
grof, grey, rest -> rest
papier, blauw, blue, recycling bin collection -> papier
chemisch, kca, kga -> kca
Everything else defaults to black.
Please also note that the recycle manager company type is discontinued in 2018. So if you use that, look at the website of your municipality to see what the alternative is (which we maybe need to add then...)
code is the hexadecimal color code for the line with the description, so for example it can become something like:
GFT: Morgen
PMD: Vrijdag
There are lots of color pickers around, i.e. https://www.w3schools.com/colors/colors_picker.asp
If the icon should also need to be a variable that is possible. A new property 'icon' could be added where you put the filename of the icon, good idea!
edit: I'm already too late...
edit2: A bit more information about how the decision is made what type of garbage is collected:
The response from the garbage company is checked as follows:
Everything with gft, tuin, refuse bin, green, groen -> gft
black, zwart -> black
plastic, pmd, verpakking, kunststof -> pmd
brown -> brown
grof, grey, rest -> rest
papier, blauw, blue, recycling bin collection -> papier
chemisch, kca, kga -> kca
Everything else defaults to black.
Please also note that the recycle manager company type is discontinued in 2018. So if you use that, look at the website of your municipality to see what the alternative is (which we maybe need to add then...)
- htilburgs
- Posts: 464
- Joined: Tuesday 03 November 2015 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Dashticz - Module - Garbage collector
Thanks for the quick reply. Maybe an other suggestion? I don't like colors and like to keep the dashboard simple. So now I'm using
In the "older" version we had var _DO_NOT_USE_COLORED_TRASHCAN = true;
Maybe another parameter? --> config['garbage_icon_use_colors']=true/false;
Code: Select all
gft: {kliko: 'white', code: '#375b23', name: 'GFT'},
config['garbage_use_colors'] = false;
Maybe another parameter? --> config['garbage_icon_use_colors']=true/false;
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Re: Dashticz - Module - Garbage collector
Check latest beta 

-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Garbage collector
The 'old' version worked before this last merge.
This is now the default config for the garbage. The icon is now part of it.
If you don't want to have coloured icons, use this config parameter:
Currently it is not possible to overwrite only one value in this whole config block.
This is now the default config for the garbage. The icon is now part of it.
Code: Select all
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/kliko_green.png'},
pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/kliko_orange.png'},
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/kliko_grey.png'},
papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/kliko_blue.png'},
kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/kliko_red.png'},
brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/kliko_brown.png'},
black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/kliko_black.png'},
};
Code: Select all
config['garbage_icon_use_colors'] = false;
- htilburgs
- Posts: 464
- Joined: Tuesday 03 November 2015 11:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Dashticz - Module - Garbage collector
Thanks for the quick reply. Works nice....
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
Re: Dashticz - Module - Garbage collector
This is my config :
CODE: SELECT ALL
config['garbage_company'] = 'googlecalendar';
config['google_api_key']='AIzaxxxxxxJekxoonE8-M0YfRCGD_tM';
config['garbage_calendar_id'] = '[email protected]@group.calendar.google.com';
In the developer view of google chrome I get this error :
CODE: SELECT ALL
.googleapis.com/calendar/v3/calendars/[email protected]@group.calendar.google.com/events?key=AIzaxxxxxxJekxoonE8-M0YfRCGD_tM&singleEvents=true&timeMin=2017-12-01T00%3A00%3A00%2B00%3A00&timeMax=2018-01-02T00%3A00%3A00%2B00%3A00&orderBy=startTime&maxResults=5 Failed to load resource: the server responded with a status of 404 ()
The dashticz dashboard shows : "Loading"
when referring to an ics I get the same error by the way.
Besides that : How does the module recognize what kind of garbage will be collected.
The ics I downloaded from my township Zuidhorn uses texts like 'Grijze container', 'Milieuboer' and 'Groene container"
CODE: SELECT ALL
config['garbage_company'] = 'googlecalendar';
config['google_api_key']='AIzaxxxxxxJekxoonE8-M0YfRCGD_tM';
config['garbage_calendar_id'] = '[email protected]@group.calendar.google.com';
In the developer view of google chrome I get this error :
CODE: SELECT ALL
.googleapis.com/calendar/v3/calendars/[email protected]@group.calendar.google.com/events?key=AIzaxxxxxxJekxoonE8-M0YfRCGD_tM&singleEvents=true&timeMin=2017-12-01T00%3A00%3A00%2B00%3A00&timeMax=2018-01-02T00%3A00%3A00%2B00%3A00&orderBy=startTime&maxResults=5 Failed to load resource: the server responded with a status of 404 ()
The dashticz dashboard shows : "Loading"
when referring to an ics I get the same error by the way.
Besides that : How does the module recognize what kind of garbage will be collected.
The ics I downloaded from my township Zuidhorn uses texts like 'Grijze container', 'Milieuboer' and 'Groene container"
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Garbage collector
I think you have the wrong garbage_calendar_id. If you go to calendar settings of the specific calendar in Google Calendar, you will see 'address for calendar' and 'private address'. A calender ID is also shown there. It is not your e-mail address as it looks like in the config you've given.curious wrote: ↑Friday 01 December 2017 11:10 This is my config :
CODE: SELECT ALL
config['garbage_company'] = 'googlecalendar';
config['google_api_key']='AIzaxxxxxxJekxoonE8-M0YfRCGD_tM';
config['garbage_calendar_id'] = '[email protected]@group.calendar.google.com';
In the developer view of google chrome I get this error :
CODE: SELECT ALL
.googleapis.com/calendar/v3/calendars/[email protected]@group.calendar.google.com/events?key=AIzaxxxxxxJekxoonE8-M0YfRCGD_tM&singleEvents=true&timeMin=2017-12-01T00%3A00%3A00%2B00%3A00&timeMax=2018-01-02T00%3A00%3A00%2B00%3A00&orderBy=startTime&maxResults=5 Failed to load resource: the server responded with a status of 404 ()
The dashticz dashboard shows : "Loading"
when referring to an ics I get the same error by the way.
Besides that : How does the module recognize what kind of garbage will be collected.
The ics I downloaded from my township Zuidhorn uses texts like 'Grijze container', 'Milieuboer' and 'Groene container"
About the ics: I think only 'Groene' will be matched with right now, but the others can be matched, I will add them. Milieuboer is for 'klein chemisch afval'? Do you have the link for the ics, then I can try it myself.
Re: Dashticz - Module - Garbage collector
Link https://www.zuidhorn.nl/inwoners/afvalkalender_3712/
use zip code 9801 JM nr 22 (not mine)
milieuboer = GFT
For my google calendar I will try to change the settings this evening
Thanks in advance
use zip code 9801 JM nr 22 (not mine)
milieuboer = GFT
For my google calendar I will try to change the settings this evening
Thanks in advance
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Garbage collector
I pushed some changes for the 'zuidhorn' calendar. I used the following settings:
(I'm not sure yet if there is any time limit on this link, we will find out later
)
For this I also did a change for 'de Milieuboer'. I didn't hear about anything like that before. He seems to collect very different types of materials for recycling. The yellow kliko wasn't used yet, so I made that the default. The whole garbage config for the kliko's now look like this:
Also, 'grijze' now will be mapped to the 'rest' kliko.
Code: Select all
config['garbage_icalurl'] = 'https://afvalkalender.zuidhorn.nl/nc/afvalkalender/zoek-postcode/Ical/calendar/postcode/9801JM22-102520115.html?tx_windwastecalendar_pi1%5Bformat%5D=ics&cHash=9bdce5f3863b0f4d6ffd5e449332f211';
config['garbage_company'] = 'ical';

For this I also did a change for 'de Milieuboer'. I didn't hear about anything like that before. He seems to collect very different types of materials for recycling. The yellow kliko wasn't used yet, so I made that the default. The whole garbage config for the kliko's now look like this:
Code: Select all
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/kliko_green.png'},
pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/kliko_orange.png'},
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/kliko_grey.png'},
papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/kliko_blue.png'},
kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/kliko_red.png'},
brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/kliko_brown.png'},
black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/kliko_black.png'},
milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/kliko_yellow.png'},
};
Re: Dashticz - Module - Garbage collector
Great, I used the ical-rule and now I have a nice overview of when to to pull which bin to the street.
The code-line is rocket science to me, but hé, what is a rocket-scientist without a thankful audience.
Off topic: a "milieuboer" is great, they collect paper, glass, clothing, cans,plastics
Thank you for this solution
The code-line is rocket science to me, but hé, what is a rocket-scientist without a thankful audience.
Off topic: a "milieuboer" is great, they collect paper, glass, clothing, cans,plastics
Thank you for this solution
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Module - Garbage collector
Looks like it's gone already. Didn't get any updates since a at last mid-NovemberPlease also note that the recycle manager company type is discontinued in 2018. So if you use that, look at the website of your municipality to see what the alternative is (which we maybe need to add then...)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Garbage collector
Well, the ical-url is just what I copied from the page you showed me. Most of the times development is just copy/pasting...curious wrote: ↑Friday 01 December 2017 21:41 Great, I used the ical-rule and now I have a nice overview of when to to pull which bin to the street.
The code-line is rocket science to me, but hé, what is a rocket-scientist without a thankful audience.
Off topic: a "milieuboer" is great, they collect paper, glass, clothing, cans,plastics
Thank you for this solution
Do you need a new garbage company?EdwinK wrote: ↑Friday 01 December 2017 21:59Looks like it's gone already. Didn't get any updates since a at last mid-NovemberPlease also note that the recycle manager company type is discontinued in 2018. So if you use that, look at the website of your municipality to see what the alternative is (which we maybe need to add then...)
Re: Dashticz - Module - Garbage collector
Must be true

I thought the ical-url should be referring to a ics file or a calendar file
Calander disappeared, still loading

- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz - Module - Garbage collector
aiolos wrote: ↑Saturday 02 December 2017 0:56Do you need a new garbage company?EdwinK wrote: ↑Friday 01 December 2017 21:59Looks like it's gone already. Didn't get any updates since a at last mid-NovemberPlease also note that the recycle manager company type is discontinued in 2018. So if you use that, look at the website of your municipality to see what the alternative is (which we maybe need to add then...)
Waiting for the city to tell what they are going to use. Hope it's not their own crappy app.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Garbage collector
I found another way to fetch it (I do not directly see what the random part in the url is, and have no time to dive into that). Right now I simulate the post of the form, and get the right information from the resulting page. Seems to work, with either the ical and also directly parse the site. Expect a change soon

Very likely we can also simulate the request the app does.
-
- Posts: 127
- Joined: Sunday 13 September 2015 18:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: Nieuwegein, NL
- Contact:
Re: Dashticz - Module - Garbage collector
The PR for the 'zuidhorn' garbage is submitted.
New config options:
'zuidhornical' fetches the ical calendar url from the site (this url is only valid for a certain period of time).
'zuidhorn' just scrapes the site, which is a bit faster, but it is a bit less robust.
The order of the results is a bit different, due to the different ways it is displayed in ical and on the website. (In both cases it is ordered by date, but if two types are collected on the same day, they might show up different)
New config options:
Code: Select all
config['garbage_company'] = 'zuidhornical'; // or 'zuidhorn'
config['garbage_zipcode'] = '9801JM';
config['garbage_housenumber'] = 22;
'zuidhorn' just scrapes the site, which is a bit faster, but it is a bit less robust.
The order of the results is a bit different, due to the different ways it is displayed in ical and on the website. (In both cases it is ordered by date, but if two types are collected on the same day, they might show up different)
Who is online
Users browsing this forum: No registered users and 0 guests