Page 36 of 48
Re: Dashticz - Module - Garbage collector
Posted: Sunday 20 September 2020 16:54
by HansieNL
1st try without garbage settings and see if it works. You can later add the mappings and renaming parts.
You can change config['garbage_use_names'] = false to disable mappings
Re: Dashticz - Module - Garbage collector
Posted: Sunday 20 September 2020 17:57
by martin82
ok it works now without the garbage settings.
now put in the right config garbage settings?
can you help me with the right ones?
Re: Dashticz - Module - Garbage collector
Posted: Sunday 20 September 2020 19:19
by HansieNL
- Spoiler: show
martin82 wrote: ↑Sunday 20 September 2020 17:57
ok it works now without the garbage settings.
now put in the right config garbage settings?
can you help me with the right ones?
Can you try with the following config settings (and enable garbage_use_names):
Code: Select all
config['garbage_mapping'] = {
rest: ['sortibak'],
gft: ['biobak'],
papier: ['papier', 'karton'],
};
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.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'},
};
Re: Dashticz - Module - Garbage collector
Posted: Sunday 20 September 2020 20:05
by martin82
it is working but only now i can not read the text, i need a another color now.
can i change that?
Re: Dashticz - Module - Garbage collector
Posted: Sunday 20 September 2020 20:55
by HansieNL
martin82 wrote: ↑Sunday 20 September 2020 20:05
it is working but only now i can not read the text, i need a another color now.
can i change that?
You have to change the code #x123abc in the config['garbage'] to an other hex color code. For hex color codes there are a lot of websites with examples.
Re: Dashticz - Module - Garbage collector
Posted: Monday 21 September 2020 20:36
by martin82
thnx a lot for the help

Re: Dashticz - Module - Garbage collector
Posted: Thursday 24 September 2020 12:22
by EdwinK
Since today (at least I noticed it today) the garbage info isn't displayed anymore.
This is what the console tells me:
js/garbage.js:139 Uncaught TypeError: Cannot read property 'UniqueId' of undefined
at Object.success (js/garbage.js:139)
at fire (bundle.js?t=5:305)
at Object.fireWith [as resolveWith] (bundle.js?t=5:305)
at done (bundle.js?t=5:305)
at XMLHttpRequest.<anonymous> (bundle.js?t=5:305)
Re: Dashticz - Module - Garbage collector
Posted: Thursday 24 September 2020 17:30
by Lokonli
EdwinK wrote: ↑Thursday 24 September 2020 12:22
Since today (at least I noticed it today) the garbage info isn't displayed anymore.
This is what the console tells me:
js/garbage.js:139 Uncaught TypeError: Cannot read property 'UniqueId' of undefined
at Object.success (js/garbage.js:139)
at fire (bundle.js?t=5:305)
at Object.fireWith [as resolveWith] (bundle.js?t=5:305)
at done (bundle.js?t=5:305)
at XMLHttpRequest.<anonymous> (bundle.js?t=5:305)
Can you send me your zipcode, housenumber and garbage provider? (You can do it by PM)
Then I'll check.
Re: Dashticz - Module - Garbage collector
Posted: Thursday 24 September 2020 17:40
by Lokonli
I guess you are using bar-afvalbeheer. Their site (
https://www.bar-afvalbeheer.nl/afvalkalender) seems to provide no calendar data at all at the moment. Do you maybe have a working url?
Re: Dashticz - Module - Garbage collector
Posted: Thursday 24 September 2020 20:50
by EdwinK
Your guess was correct

, but no, I don't have a working url. When enter my zipcode and housenumber, I get a calendar. In developertools it shows this:
Refused to load the script 'data:application/javascript;base64,KGZ1bmN0aW9uKCkgewoJLy8gaHR0cHM6Ly9kZXZlbG9wZXJzLmdvb2dsZS5jb20vYW5hbHl0aWNzL2Rldmd1aWRlcy9jb2xsZWN0aW9uL2FuYWx5dGljc2pzLwoJdmFyIG5vb3BmbiA9IGZ1bmN0aW9uKCkgewoJCTsKCX07Cgl2YXIgbm9vcG51bGxmbiA9IGZ1bmN0aW9uKCkgewoJCXJldHVybiBudWxsOwoJfTsKCS8vCgl2YXIgVHJhY2tlciA9IGZ1bmN0aW9uKCkgewoJCTsKCX07Cgl2YXIgcCA9IFRyYWNrZXIucHJvdG90eXBlOwoJcC5nZXQgPSBub29wZm47CglwLnNldCA9IG5vb3BmbjsKCXAuc2VuZCA9IG5vb3BmbjsKCS8vCgl2YXIgdyA9IHdpbmRvdywKCQlnYU5hbWUgPSB3Lkdvb2dsZUFuYWx5dGljc09iamVjdCB8fCAn...sKCWdhLmdldEJ5TmFtZSA9IG5vb3BudWxsZm47CglnYS5nZXRBbGwgPSBmdW5jdGlvbigpIHsKCQlyZXR1cm4gW107Cgl9OwoJZ2EucmVtb3ZlID0gbm9vcGZuOwoJLy8gaHR0cHM6Ly9naXRodWIuY29tL3VCbG9ja09yaWdpbi91QXNzZXRzL2lzc3Vlcy8yMTA3CglnYS5sb2FkZWQgPSB0cnVlOwoJd1tnYU5hbWVdID0gZ2E7CgkvLyBodHRwczovL2dpdGh1Yi5jb20vZ29yaGlsbC91QmxvY2svaXNzdWVzLzMwNzUKCXZhciBkbCA9IHcuZGF0YUxheWVyOwoJaWYgKCBkbCBpbnN0YW5jZW9mIE9iamVjdCAmJiBkbC5oaWRlIGluc3RhbmNlb2YgT2JqZWN0ICYmIHR5cGVvZiBkbC5oaWRlLmVuZCA9PT0gJ2Z1bmN0aW9uJyApIHsKCQlkbC5oaWRlLmVuZCgpOwoJfQp9KSgpOw==' because it violates the following Content Security Policy directive: "script-src * 'unsafe-inline' 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
I hope they will fix it soon.
Re: Dashticz - Module - Garbage collector
Posted: Saturday 26 September 2020 21:51
by herbod
My garbage collector has stopped working. It only mentions loading. I have no idea why.
Someone who has an idea how to get it working again?
See attachments for more info.
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 0:00
by Lokonli
herbod wrote: ↑Saturday 26 September 2020 21:51
My garbage collector has stopped working. It only mentions loading. I have no idea why.
Someone who has an idea how to get it working again?
See attachments for more info.
Did you already try Dashticz 3.6?
Afvalwijzer changed it's interface a few weeks ago. A fix has been implemented already.
If it's not working, please send me your zipcode and housenumber (you can do that by PM) and I'll test.
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 7:36
by herbod
Thanks for the tip. I have updated to 3.6 but the problem remains.
My zip is **** and housenumber *** (unfortunatly I can''t send PM)
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 10:16
by madpatrick
What is the option "calendar_parse_locally"
i don't have this in my config.
Maybe this is something to look at
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 10:40
by Lokonli
herbod wrote: ↑Sunday 27 September 2020 7:36
Thanks for the tip. I have updated to 3.6 but the problem remains.
My zip is 7004LA and housenumber 133 (unfortunatly I can''t send PM)
You have to remove the setting config['garbage_use_cors_prefix'] or set it to true.
You also must have PHP enabled.
Garbage for your address is working on my system.
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 11:31
by HansieNL
madpatrick wrote: ↑Sunday 27 September 2020 10:16
What is the option "calendar_parse_locally"
i don't have this in my config.
Maybe this is something to look at
This is an old setting and not used anymore.
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 18:08
by EdwinK
bar_afvalbeheer seems to be working again.
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 20:26
by 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.
What is the option "calendar_parse_locally" - This is an old setting and not used anymore.
So I can remove it?
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.
Thanks again!
Lokonli wrote: ↑Sunday 27 September 2020 10:40
herbod wrote: ↑Sunday 27 September 2020 7:36
Thanks for the tip. I have updated to 3.6 but the problem remains.
My zip is 7004LA and housenumber 133 (unfortunatly I can''t send PM)
You have to remove the setting config['garbage_use_cors_prefix'] or set it to true.
You also must have PHP enabled.
Garbage for your address is working on my system.
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 21:48
by HansieNL
@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
Re: Dashticz - Module - Garbage collector
Posted: Sunday 27 September 2020 22:16
by herbod
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?