Page 29 of 49

Re: Dashticz - Module - Garbage collector

Posted: Sunday 24 November 2019 17:08
by marktn
HansieNL wrote: Tuesday 19 November 2019 23:28 Are you sure??? If you put it between /* and */ it's a comment and nothing will be styled.
Aiii... that was easy... It was my first custom.css :oops:
Thanks for helping!

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 11 December 2019 22:07
by madradrakie
can you maybe take a look if something changed in the data feed coming from the garbage company in Almere. Monday it was still working but today suddenly not anymore. Thanks in advance.

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 11 December 2019 22:25
by Lokonli
madradrakie wrote: Wednesday 11 December 2019 22:07 can you maybe take a look if something changed in the data feed coming from the garbage company in Almere. Monday it was still working but today suddenly not anymore. Thanks in advance.
Which exact Dashticz version are you using?
Can you test with master or an earlier beta version?

I had to update the jQuery version, what might have some unwanted side effects.

Re: Dashticz - Module - Garbage collector

Posted: Thursday 12 December 2019 21:20
by madradrakie
Lokonli wrote: Wednesday 11 December 2019 22:25
madradrakie wrote: Wednesday 11 December 2019 22:07 can you maybe take a look if something changed in the data feed coming from the garbage company in Almere. Monday it was still working but today suddenly not anymore. Thanks in advance.
Which exact Dashticz version are you using?
Can you test with master or an earlier beta version?

I had to update the jQuery version, what might have some unwanted side effects.
i am using the latest beta version (did a gitt pull yesterday). Is there an easy way to switch to the master version?

Re: Dashticz - Module - Garbage collector

Posted: Thursday 12 December 2019 21:26
by Lokonli
madradrakie wrote: Thursday 12 December 2019 21:20
Lokonli wrote: Wednesday 11 December 2019 22:25
madradrakie wrote: Wednesday 11 December 2019 22:07 can you maybe take a look if something changed in the data feed coming from the garbage company in Almere. Monday it was still working but today suddenly not anymore. Thanks in advance.
Which exact Dashticz version are you using?
Can you test with master or an earlier beta version?

I had to update the jQuery version, what might have some unwanted side effects.
i am using the latest beta version (did a gitt pull yesterday). Is there an easy way to switch to the master version?

Code: Select all

git checkout master
Don't forget to refresh your cache.

Re: Dashticz - Module - Garbage collector

Posted: Thursday 12 December 2019 21:41
by madradrakie
i switched to the master version but the garbage module is still not working. It only shows a black garbage container.

This is the code in the config.js:

Code: Select all

config['garbage_company'] = 'almere';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '';
config['garbage_street'] = '';
config['garbage_housenumber'] = '';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';

config['garbage_mapping'] = {
    rest: ['grof', 'grey', 'rest', 'grijs','grijze'],
    gft: ['GFT & Rest','gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biodégradables', 'snoei'],
    pmd: ['Verpakkingen','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'},
};

Re: Dashticz - Module - Garbage collector

Posted: Thursday 12 December 2019 21:45
by Lokonli
I guess you filled in your zipcode and housenumber in your CONFIG.js.

On my system (beta) Almere garbage is working.

Do you access Dashticz via https?

Re: Dashticz - Module - Garbage collector

Posted: Thursday 12 December 2019 21:52
by Lokonli
If still not working, then it's time to debug :)

In Chrome press F12 to open the Developer Window.
Refresh Dashticz

Do you see any error on the console tab?

Open the network tab.
Filter on 'waste'
You should see two network requests:
FetchAdress
GetCalendar

Select FetchAdress

What is the response code? It should start with

Code: Select all

 {"userMessage":{"type":null,"messageCode":0,"description":null},"ExtraOption":
Select GetCalendar

What is the response code?

Re: Dashticz - Module - Garbage collector

Posted: Thursday 12 December 2019 22:06
by madradrakie
yes i filled in my zipcode and housenumber in the config.js and you are more then welcome at my home so i can show you my system, but to invite everybody ;-).

in the console tab i see the following error:

VM1415:417 Uncaught TypeError: Cannot read property 'charAt' of undefined
at getTrashRow (<anonymous>:417:68)
at <anonymous>:446:49
at Array.forEach (<anonymous>)
at addToContainer (<anonymous>:445:17)
at Object.success (<anonymous>:159:13)
at fire (bundle.js:48)
at Object.fireWith [as resolveWith] (bundle.js:48)
at done (bundle.js:48)
at XMLHttpRequest.<anonymous> (bundle.js:48)

see row number 2 and 5.....could that be the error?


My responde code is:
{"userMessage":{"type":null,"messageCode":0,"description":null},"ExtraOption":

At calander the responde code is:
{"userMessage":{"type":null,"messageCode":0,"description":null},"ExtraOption":{"$type":"System.Dynamic.ExpandoObject, System.Core"},"dataList":[{"pickupDates":["2019-12-20T00:00:00","2020-01-03T00:00:00"],"pickupType":18,"_pickupType":18,"_pickupTypeText":"GREENGREY","description":"Route Duo 3 Rest"},{"pickupDates":["2019-12-13T00:00:00","2019-12-27T00:00:00","2020-01-10T00:00:00"],"pickupType":10,"_pickupType":10,"_pickupTypeText":"PACKAGES","description":"Route Duo 3 Kunststof"},{"pickupDates":["2019-12-24T00:00:00","2020-01-07T00:00:00"],"pickupType":2,"_pickupType":2,"_pickupTypeText":"PAPER","description":"Papier 06 Wijk 10,12,54 & 55"}],"intDataList":null,"data":null,"status":true,"messageCode":107,"pdfResponse":null,"token":null,"ID":null,"invalidParameters":null,"total":0,"messageToString":null}

Re: Dashticz - Module - Garbage collector

Posted: Thursday 12 December 2019 22:18
by Lokonli
madradrakie wrote: Thursday 12 December 2019 22:06 yes i filled in my zipcode and housenumber in the config.js and you are more then welcome at my home so i can show you my system, but to invite everybody ;-).

in the console tab i see the following error:

VM1415:417 Uncaught TypeError: Cannot read property 'charAt' of undefined
at getTrashRow (<anonymous>:417:68)
at <anonymous>:446:49
at Array.forEach (<anonymous>)
at addToContainer (<anonymous>:445:17)
at Object.success (<anonymous>:159:13)
at fire (bundle.js:48)
at Object.fireWith [as resolveWith] (bundle.js:48)
at done (bundle.js:48)
at XMLHttpRequest.<anonymous> (bundle.js:48)

see row number 2 and 5.....could that be the error?


My responde code is:
{"userMessage":{"type":null,"messageCode":0,"description":null},"ExtraOption":

At calander the responde code is:
{"userMessage":{"type":null,"messageCode":0,"description":null},"ExtraOption":{"$type":"System.Dynamic.ExpandoObject, System.Core"},"dataList":[{"pickupDates":["2019-12-20T00:00:00","2020-01-03T00:00:00"],"pickupType":18,"_pickupType":18,"_pickupTypeText":"GREENGREY","description":"Route Duo 3 Rest"},{"pickupDates":["2019-12-13T00:00:00","2019-12-27T00:00:00","2020-01-10T00:00:00"],"pickupType":10,"_pickupType":10,"_pickupTypeText":"PACKAGES","description":"Route Duo 3 Kunststof"},{"pickupDates":["2019-12-24T00:00:00","2020-01-07T00:00:00"],"pickupType":2,"_pickupType":2,"_pickupTypeText":"PAPER","description":"Papier 06 Wijk 10,12,54 & 55"}],"intDataList":null,"data":null,"status":true,"messageCode":107,"pdfResponse":null,"token":null,"ID":null,"invalidParameters":null,"total":0,"messageToString":null}
The calendar responses look ok.

The error is not ok.

I can reproduce the error. Temporary workaround: Add the following to your config.js:

Code: Select all

config['garbage_use_names'] = 1;
Later this week I'll try to make a real fix.

Re: Dashticz - Module - Garbage collector

Posted: Friday 13 December 2019 23:27
by madradrakie
thanks in advance for your help and work.

I have add the workaround and now it shows:
Zwart: Vandaag
Zwart: vrijdag
Zwart: 24-12-2019

Let me know if i can test anything for you.

Re: Dashticz - Module - Garbage collector

Posted: Saturday 14 December 2019 0:21
by Lokonli
Almere changed it's garbage interface again...

It's fixed in the latest beta.

edit:
I've used the following settings:

Code: Select all

config['garbage_use_names'] = 1;

config['garbage_mapping'] = {
    rest: ['grof', 'grey', 'rest', 'grijs','grijze'],
    gft: ['GFT & Rest','gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biodégradables', 'snoei'],
    pmd: ['Verpakkingen','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'},
};


Re: Dashticz - Module - Garbage collector

Posted: Tuesday 17 December 2019 20:24
by madradrakie
thanks once again! It works!

Re: Dashticz - Module - Garbage collector

Posted: Thursday 02 January 2020 12:50
by jurg1505
I have problems with the Garbage.
When i set the complete address to Almere, it works.
When i set it to twentemilieu i get nothing.

Code: Select all

/*Vuilnis Module	*/
	config['dashticz_php_path']='./vendor/dashticz/'; 
	config['garbage_company'] = 'twentemilieu';
	config['garbage_icalurl'] = '0';
	config['garbage_zipcode'] = '7483BH';
	config['garbage_street'] = 'Vingerhoedskruid';
	config['garbage_housenumber'] = '1';
	config['garbage_maxitems'] = '12';
	config['garbage_width'] = '12';
	config['garbage_hideicon'] = 0;
	config['garbage_use_names'] = true;
	config['garbage_use_colors'] = true;
	config['garbage_icon_use_colors'] = true;
	config['garbage_use_cors_prefix'] = true;
	config['garbage'] = {
		gft: {kliko: 'green', code: '#FF8C00', name: 'GFT', icon: 'img/garbage/kliko_brown.png'},
		pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
		rest: {kliko: 'grey', code: '#7CFC00', name: 'Restafval', icon: 'img/garbage/kliko_green.png'},
		papier: {kliko: 'blue', code: '#00BFFF', 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'},}

Re: Dashticz - Module - Garbage collector

Posted: Thursday 02 January 2020 19:41
by EdwinK
O. great, my town changed to another system to display the garbage data. From 'afvalwijzer' to an app of their own. Can't find if it uses json or something else.

Site is https://bar-afvalbeheer.nl/

It's somewhat of a challenge I read on domotica forum

Re: Dashticz - Module - Garbage collector

Posted: Thursday 02 January 2020 21:47
by nike
EdwinK wrote: Thursday 02 January 2020 19:41 O. great, my town changed to another system to display the garbage data. From 'afvalwijzer' to an app of their own. Can't find if it uses json or something else.

Site is https://bar-afvalbeheer.nl/

It's somewhat of a challenge I read on domotica forum
i live in Barendrecht with the same problem...

Re: Dashticz - Module - Garbage collector

Posted: Friday 03 January 2020 7:59
by Lokonli
EdwinK wrote:O. great, my town changed to another system to display the garbage data. From 'afvalwijzer' to an app of their own. Can't find if it uses json or something else.

Site is https://bar-afvalbeheer.nl/

It's somewhat of a challenge I read on domotica forum
Do you have a link for that forum?

Sent from my SM-A320FL using Tapatalk


Re: Dashticz - Module - Garbage collector

Posted: Friday 03 January 2020 9:43
by EdwinK
Of course.

https://www.domoticaforum.eu/viewforum.php?f=99

(for rooted Toon thermostats)

Re: Dashticz - Module - Garbage collector

Posted: Saturday 11 January 2020 10:32
by unclekoen
jurg1505 wrote: Thursday 02 January 2020 12:50 I have problems with the Garbage.
When i set the complete address to Almere, it works.
When i set it to twentemilieu i get nothing.
Did you get it to work?
It's my first time using the garbage collector. It works fine, but not jet good enough. I also used twentemilieu for the garbage_company.
Lines are showing, but no blue paper line, wich should be picked up 22-01-2020.

Code: Select all

config['garbage_company'] = 'twentemilieu';			//https://dashticz.readthedocs.io/en/beta/blocks/specials/garbage.html
config['garbage_icalurl'] = '';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = 'the-correct-zipcode';
config['garbage_street'] = 'the-correct-address';
config['garbage_housenumber'] = 'the-correct-number';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = '12';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_icon_use_colors'] = 1;
config['garbage_use_colors'] = true;
config['garbage_use_names'] = 0;
config['garbage_use_cors_prefix'] = 1;
config['garbage'] = {
        gft: {kliko: 'green', code: '#00bf00', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
        pmd: {kliko: 'orange', code: '#ffa500', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
        rest: {kliko: 'grey', code: '#bfbfbf', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
        papier: {kliko: 'blue', code: '#0742e5', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
 };

Re: Dashticz - Module - Garbage collector

Posted: Saturday 11 January 2020 16:54
by Lokonli
Twente Milieu has been fixed in latest beta.
(I did not change the release number yet: just pull the latest version from Github)