Page 30 of 48

Re: Dashticz - Module - Garbage collector

Posted: Sunday 12 January 2020 9:05
by unclekoen
Lokonli wrote: Saturday 11 January 2020 16:54 Twente Milieu has been fixed in latest beta.
(I did not change the release number yet: just pull the latest version from Github)
Very very quick update. (V3.3.0 beta)

And it is working.

Re: Dashticz - Module - Garbage collector

Posted: Sunday 12 January 2020 16:31
by EdwinK
Hi Lokonli,

I asked in the Domoticaeu forum about how they got the BAR-afvalbeheer data. This is the response. Hope you can do something with this:
BAR (amongst others) is supported via the waste2go platform.

Step 1 : get the Unique address ID:
make a POST call to https://wasteapi.2go-mobile.com/api/FetchAdress with parameters:
companyCode: bb58e633-de14-4b2a-9941-5bc419f1c4b0 (this code is specific for bar-afvalbeheer)
postcode: <your postcode>
houseNumber: <your house number>
houseLetter: <house number extension, can be blank)

This will return a JSON data set. You need to take the value of dataList[0]['UniqueId']

Step 2: get the waste collection data
make a POST call to https://wasteapi.2go-mobile.com/api/GetCalendar with parameters:
companyCode: bb58e633-de14-4b2a-9941-5bc419f1c4b0 (this code is specific for bar-afbalbeheer)
uniqueAddressId: <the UniqueId from step 1>
startDate: <yyyy-mm-dd>
endDate: <yyyy-mm-dd>

This will return a JSON data set with all collection date info

Re: Dashticz - Module - Garbage collector

Posted: Sunday 12 January 2020 16:49
by Lokonli
Thanks. The days are too short ...

Will be fixed within a few days.


Sent from my SM-A320FL using Tapatalk


Re: Dashticz - Module - Garbage collector

Posted: Monday 13 January 2020 9:39
by EdwinK
Thanks...

I think I know the feeling about the days being too short.

Re: Dashticz - Module - Garbage collector

Posted: Monday 13 January 2020 21:54
by Lokonli
Garbage for Barendrecht and Rhoon should be fixed in latest beta (3.3.1)
Use 'barafvalbeheer' for the garbage_company setting.

Re: Dashticz - Module - Garbage collector

Posted: Monday 13 January 2020 21:58
by EdwinK
Thanks ;)

Works.

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 14 January 2020 20:57
by biggles
Garbage is only displaying zwart.
It does get the dates etc but no icons.
I am running the latest beta.
garbage.JPG
garbage.JPG (16.09 KiB) Viewed 1873 times
I cant seem to find what is wrong, it used to work a few months ago.

Here is my code:

Code: Select all

config['garbage_company'] = 'almere';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'XXXX';
config['garbage_street'] = 'XXXX';
config['garbage_housenumber'] = 'XXX';
config['garbage_maxitems'] = '5';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = 1;
config['garbage_use_colors'] = false;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = true;

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 14 January 2020 22:22
by Lokonli
biggles wrote: Tuesday 14 January 2020 20:57 Garbage is only displaying zwart.
It does get the dates etc but no icons.
I am running the latest beta.

garbage.JPG

I cant seem to find what is wrong, it used to work a few months ago.

Here is my code:

Code: Select all

config['garbage_company'] = 'almere';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'XXXX';
config['garbage_street'] = 'XXXX';
config['garbage_housenumber'] = 'XXX';
config['garbage_maxitems'] = '5';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = 1;
config['garbage_use_colors'] = false;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = true;

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'},
};
Which Dashticz version are you using?

Almere changed it's garbage interface a few weeks ago. This has been fixed in Dashticz beta 3.3.0

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 15 January 2020 9:55
by biggles
[/quote]
Which Dashticz version are you using?

Almere changed it's garbage interface a few weeks ago. This has been fixed in Dashticz beta 3.3.0
[/quote]

I am running the latest Beta.

Biggles.

EDIT: Sorry it turns out that i am running an older version (3.1.2), will update to the latest Beta and report my findings here.
EDIT2: Updated to the latest beta and all is fine. Thanks.

Re: Dashticz - Module - Garbage collector

Posted: Thursday 23 January 2020 19:44
by evandenbroek
I cannot retrieve data for Uden. I got the message "Laden...". I'm using version 3.3.4 beta.

Re: Dashticz - Module - Garbage collector

Posted: Thursday 23 January 2020 20:19
by Lokonli
evandenbroek wrote: Thursday 23 January 2020 19:44 I cannot retrieve data for Uden. I got the message "Laden...". I'm using version 3.3.4 beta.
Fixed in latest beta.

Re: Dashticz - Module - Garbage collector

Posted: Sunday 26 January 2020 19:46
by evandenbroek
Thanks that was fast. It is working!

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 29 January 2020 21:25
by klaaspiet
peet3kabo wrote: Saturday 25 August 2018 11:15 Rob, is it possible to implement the Omrin afvalkalender?
There is an app available from them, maybe to get the info you need? App called "Omrin Afval"
Otherwise it's only a PDF that you get and then I will try to implement it as an Ical into Dashicz but have to figure out how that goes,
is there some progress for this item

Re: Dashticz - Module - Garbage collector

Posted: Thursday 30 January 2020 7:46
by Lokonli
No progress.
I've found an example on how to integrate Omrin. Maybe I will pick this up next month, first I have to finalize a few other things.

Re: Dashticz - Module - Garbage collector

Posted: Sunday 02 February 2020 21:33
by sammyke007
Anyone know how to make the trash icons a little bit larger? I guess with fontsize, but I don't know the correct class name for only the icons...

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk


Re: Dashticz - Module - Garbage collector

Posted: Sunday 02 February 2020 22:49
by peet3kabo
klaaspiet wrote:
peet3kabo wrote: Saturday 25 August 2018 11:15 Rob, is it possible to implement the Omrin afvalkalender?
There is an app available from them, maybe to get the info you need? App called "Omrin Afval"
Otherwise it's only a PDF that you get and then I will try to implement it as an Ical into Dashicz but have to figure out how that goes,
is there some progress for this item
Haha, I am just picking up dashticz again somewhat now I have some time with my huge home rebuilt.
And my own question came floting on top again.
I will just keep patient then

Verstuurd vanaf mijn ONEPLUS A6013 met Tapatalk



Re: Dashticz - Module - Garbage collector

Posted: Monday 03 February 2020 1:23
by HansieNL
sammyke007 wrote: Sunday 02 February 2020 21:33 Anyone know how to make the trash icons a little bit larger? I guess with fontsize, but I don't know the correct class name for only the icons... Image

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
Can you try:

Code: Select all

[data-id='garbage'] .trashcan {
    width: 110% !important;
}

Re: Dashticz - Module - Garbage collector

Posted: Monday 03 February 2020 10:47
by sammyke007
HansieNL wrote: Monday 03 February 2020 1:23 Can you try:

Code: Select all

[data-id='garbage'] .trashcan {
    width: 110% !important;
}
Doesn't change. This seems to work, but only on my PC, not on my tablet:

Code: Select all

.trashcan {
    width: 150% !important;
    max-width: 50px;
}
"height:" is adjustable without a problem, but it seems to be the max-width that is interfering....

Re: Dashticz - Module - Garbage collector

Posted: Thursday 20 February 2020 19:16
by Lokonli
klaaspiet wrote: Wednesday 29 January 2020 21:25
peet3kabo wrote: Saturday 25 August 2018 11:15 Rob, is it possible to implement the Omrin afvalkalender?
There is an app available from them, maybe to get the info you need? App called "Omrin Afval"
Otherwise it's only a PDF that you get and then I will try to implement it as an Ical into Dashicz but have to figure out how that goes,
is there some progress for this item
Merged into beta.

Re: Dashticz - Module - Garbage collector

Posted: Saturday 07 March 2020 19:27
by klaaspiet
Nice I have a look. How do I instal the beta