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 »

herbod wrote: Sunday 27 September 2020 22:16
HansieNL wrote: Sunday 27 September 2020 21:48 @herbod
Thank you! it is working again. I have sett ['garbage_use_cors_prefix'] to true but wat does it do? I am trying to understand what i did.
Answer: You can find a description here: https://dashticz.readthedocs.io/en/mast ... cors-proxy

What is the option "calendar_parse_locally" - This is an old setting and not used anymore.
So I can remove it?
Answer: Yes

The days are mentioned in English, can I get them in Dutch?
I have : var config = {}
config['language'] = 'nl_NL';
So I expected them to be in dutch.
Answer: try adding

Code: Select all

config['calendarlanguage'] = 'nl_NL';
to your config.js

Thanks!! Sometimes it can be so simple. Was looking for this for a while.
Can I change the date 06-10-2020 in the garbage collector dinsdag (tuesday) 06-10-2020, so adding the day?
As far as I know is this not possible.
If the garbage pickup is within a week/day, the date will be changed to the weekday, tomorrow. If it’s today, today will be shown.
Blah blah blah
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by geertvercamer »

recycleapp is not working here.
not in 3.5.2 anymore, not in 3.6
cors setting is set to true

3.5.2 has garbage_company still on 'ophaalkalender'
3.6 has garbage_company set to 'recycleapp'

both just show 'loading'
geertvercamer
Posts: 84
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by geertvercamer »

3.6.2 now gives 'no data found' (in Dutch)
garbage_company set to 'recycleapp'

garbage.js line 999: shouldn't that read 'identifier' instead of 'identified'?
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

It seems recycleapp.be doesn't work at the moment:
recycleappbe.jpg
recycleappbe.jpg (112.03 KiB) Viewed 1539 times
(and you are right on your remark on line 999. Thanks! but not related to this issue)
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by sammyke007 »

The recycleapp website is working again after being down for some days. However the dashticz garbage doesn't get any data on 3.6.0 and 3.6.2 beta.
Probably the API that's still down...
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

sammyke007 wrote:The recycleapp website is working again after being down for some days. However the dashticz garbage doesn't get any data on 3.6.0 and 3.6.2 beta.
Probably the API that's still down...
No, it was my mistake. I filtered the data until September. I'll create a fix tomorrow.

Sent from my SM-A320FL using Tapatalk

Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

sammyke007 wrote: Wednesday 30 September 2020 22:48 The recycleapp website is working again after being down for some days. However the dashticz garbage doesn't get any data on 3.6.0 and 3.6.2 beta.
Probably the API that's still down...
Fixed in latest beta.
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by sammyke007 »

Fast fix once again and working again. Tnx Lokonli!
cever
Posts: 7
Joined: Thursday 07 January 2016 15:02
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by cever »

Just updated to 3.6.5 beta, the garbage doesn't work with recycleapp (BE), looking (very) quickly in garbage.js I could not find any url to fetch the data, is this a known issue ?
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

I just discovered a bug in 3.6.5.

Please update to beta 3.6.6 and retry.

recycleapp is working on my system.
Ultimato
Posts: 8
Joined: Sunday 05 July 2020 19:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by Ultimato »

hi,

Mijn Afvalwijzer is not working here.
The error I get is because it is trying to get it's info from http://192.168.1.247:8083/0https://www. ... /*censored*/

this is the part of the config concerning the garbage collection:
Spoiler: show
config['garbage_company'] = 'mijnafvalwijzer';
config['garbage_icalurl'] = 0;
config['google_api_key'] = 0;
config['garbage_calendar_id'] = 0;
config['garbage_zipcode'] = '*censored*';
config['garbage_street'] = 0;
config['garbage_housenumber'] = '*censored*';
config['garbage_housenumberadd'] = 0;
config['garbage_maxitems'] = 0;
config['garbage_width'] = 0;
config['garbage_hideicon'] = 0;
config['garbage_icon_use_colors'] = 1;
config['garbage_use_colors'] = 0;
config['garbage_use_names'] = 0;
config['calendarlanguage'] = 'nl_NL';

// --------------------------------------- afvalinzameling -----------------------------------------------------------

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'},
};
any idea how I could solve this?

I'm running dashticz 3.6.6
I'm Running domoticz beta on a Rpi 4
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Ultimato wrote: Saturday 31 October 2020 22:32 hi,

Mijn Afvalwijzer is not working here.
The error I get is because it is trying to get it's info from http://192.168.1.247:8083/0https://www. ... /*censored*/

this is the part of the config concerning the garbage collection:
Spoiler: show
config['garbage_company'] = 'mijnafvalwijzer';
config['garbage_icalurl'] = 0;
config['google_api_key'] = 0;
config['garbage_calendar_id'] = 0;
config['garbage_zipcode'] = '*censored*';
config['garbage_street'] = 0;
config['garbage_housenumber'] = '*censored*';
config['garbage_housenumberadd'] = 0;
config['garbage_maxitems'] = 0;
config['garbage_width'] = 0;
config['garbage_hideicon'] = 0;
config['garbage_icon_use_colors'] = 1;
config['garbage_use_colors'] = 0;
config['garbage_use_names'] = 0;
config['calendarlanguage'] = 'nl_NL';

// --------------------------------------- afvalinzameling -----------------------------------------------------------

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'},
};
any idea how I could solve this?

I'm running dashticz 3.6.6
It seems that your CORS proxy setting is incorrectly set to 0.

Did you add a config['default_cors_url'] setting in CONFIG.js? I would recommend to remove it.
Ultimato
Posts: 8
Joined: Sunday 05 July 2020 19:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by Ultimato »

:shock: when I checked the previous posts I found a ['default_cors_url'] setting set to 1.
I thought that might have been the problem so I removed it.
This morning, checking the config line by line again, I did indeed find another instance of ['default_cors_url'] which was set to 0

Garbage collection working as expected now, thanks!
I'm Running domoticz beta on a Rpi 4
Timbau
Posts: 2
Joined: Monday 02 November 2020 8:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Timbau »

Do you have the option to add?
https://afvalstoffendienstkalender.nl/
My zipcode 5251 be

Regards Tim
User avatar
madpatrick
Posts: 637
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by madpatrick »

Hi,

Is it possible to make a custom block of the Garbage output.
Now the only way is to are the line to the columns, but not configure it as a block.
I like to reduce the width to 6 instead of the stand 12 (complete width of the column)
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

I'm rewriting the garbage module at the moment. It will then just behave like any other custom block. I'll also use it for auto testing as well. Currently I'm more or less half way testing all the garbage providers. See below for an intermediate result:
garbage.jpg
garbage.jpg (239.81 KiB) Viewed 1352 times
As soon as I've finalized the conversion, I'll add afvalstoffendienstkalender.nl
smaus
Posts: 84
Joined: Sunday 18 February 2018 9:32
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by smaus »

since a month I no longer receive a notification about residual waste, and I get the following notification in my log.

@AFOpzet Error: Waste type not defined in the "waste type_cfg" table for found Waste type: Residual waste.

concerns the city of Purmerend
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

smaus wrote: Tuesday 03 November 2020 19:55 since a month I no longer receive a notification about residual waste, and I get the following notification in my log.

@AFOpzet Error: Waste type not defined in the "waste type_cfg" table for found Waste type: Residual waste.

concerns the city of Purmerend
I don't recognize your log. Is it related to Dashticz?

Support for purmerend garbage collection has been added to latest beta.
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Timbau wrote: Monday 02 November 2020 9:13 Do you have the option to add?
https://afvalstoffendienstkalender.nl/
My zipcode 5251 be

Regards Tim
afvalstoffendienst has been added to latest beta.
User avatar
Antoinne
Posts: 14
Joined: Monday 30 March 2020 17:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Antoinne »

Previsously I used this module with a custom 'ical' calender. After the recent update, I now get an "Error loading garbage data" on start-up. Would love to use the new block method. But can you add support for Grondstoffen- en Afvalstoffendienst regio Gooi en Vechtstreek (https://inzamelkalender.gad.nl)?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest