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 »

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
Blah blah blah
martin82
Posts: 13
Joined: Monday 23 December 2019 15:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

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

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'},
};
Blah blah blah
martin82
Posts: 13
Joined: Monday 23 December 2019 15:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by martin82 »

it is working but only now i can not read the text, i need a another color now.

can i change that?
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 »

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.
Blah blah blah
martin82
Posts: 13
Joined: Monday 23 December 2019 15:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by martin82 »

thnx a lot for the help :)
User avatar
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

Post 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)

Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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?
User avatar
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

Post 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.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
herbod
Posts: 8
Joined: Wednesday 22 January 2020 22:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
Attachments
a1.jpg
a1.jpg (67.87 KiB) Viewed 1118 times
a2.jpg
a2.jpg (80.59 KiB) Viewed 1118 times
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
herbod
Posts: 8
Joined: Wednesday 22 January 2020 22:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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)
Last edited by herbod on Sunday 27 September 2020 22:08, edited 1 time in total.
User avatar
madpatrick
Posts: 636
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 »

What is the option "calendar_parse_locally"

i don't have this in my config.
Maybe this is something to look at
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

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

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.
Blah blah blah
User avatar
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

Post by EdwinK »

bar_afvalbeheer seems to be working again.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
herbod
Posts: 8
Joined: Wednesday 22 January 2020 22:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
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
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
Blah blah blah
herbod
Posts: 8
Joined: Wednesday 22 January 2020 22:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest