Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

marktn
Posts: 232
Joined: Tuesday 21 April 2015 21:39
Target OS: Windows
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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!
Domoticz latest stable, Intel NUC, Proxmox, Zigate, RFLink, Kaku switches, Ikea lights, Xiaomi sensors, Honeywell smoke detectors, Yeelight, Shelly, Slave Domoticz PI 3B+, Node-Red, Espeasy.
madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

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

Re: Dashticz - Module - Garbage collector

Post 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.
madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

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

Re: Dashticz - Module - Garbage collector

Post 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.
madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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'},
};
Attachments
Knipsel.JPG
Knipsel.JPG (72.38 KiB) Viewed 1504 times
Lokonli
Posts: 2287
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 filled in your zipcode and housenumber in your CONFIG.js.

On my system (beta) Almere garbage is working.

Do you access Dashticz via https?
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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?
madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

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

Re: Dashticz - Module - Garbage collector

Post 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.
madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

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

Re: Dashticz - Module - Garbage collector

Post 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'},
};

madradrakie
Posts: 64
Joined: Wednesday 11 September 2019 21:24
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by madradrakie »

thanks once again! It works!
jurg1505
Posts: 8
Joined: Sunday 07 July 2019 22:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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'},}
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 »

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
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
nike
Posts: 1
Joined: Thursday 02 January 2020 21:45
Target OS: Linux
Domoticz version: 4.10717
Contact:

Re: Dashticz - Module - Garbage collector

Post 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...
Lokonli
Posts: 2287
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: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

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 »

Of course.

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

(for rooted Toon thermostats)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
unclekoen
Posts: 21
Joined: Saturday 27 October 2018 11:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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'},
 };
Attachments
2020-01-11 10_29_29-Dashticz.png
2020-01-11 10_29_29-Dashticz.png (56.62 KiB) Viewed 1326 times
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

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

Who is online

Users browsing this forum: No registered users and 1 guest