Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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 »

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.
Attachments
2020-01-12 09_02_59-Dashticz.png
2020-01-12 09_02_59-Dashticz.png (52.59 KiB) Viewed 1768 times
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 »

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

Thanks. The days are too short ...

Will be fixed within a few days.


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 »

Thanks...

I think I know the feeling about the days being too short.
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 »

Garbage for Barendrecht and Rhoon should be fixed in latest beta (3.3.1)
Use 'barafvalbeheer' for the garbage_company setting.
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 »

Thanks ;)

Works.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
biggles
Posts: 7
Joined: Wednesday 15 June 2016 23:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

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

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
biggles
Posts: 7
Joined: Wednesday 15 June 2016 23:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
evandenbroek
Posts: 2
Joined: Thursday 23 January 2020 19:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by evandenbroek »

I cannot retrieve data for Uden. I got the message "Laden...". I'm using version 3.3.4 beta.
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 »

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.
evandenbroek
Posts: 2
Joined: Thursday 23 January 2020 19:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by evandenbroek »

Thanks that was fast. It is working!
klaaspiet
Posts: 34
Joined: Tuesday 09 January 2018 8:29
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Harlingen
Contact:

Re: Dashticz - Module - Garbage collector

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

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.
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post 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

peet3kabo
Posts: 49
Joined: Thursday 05 July 2018 17:29
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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


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 »

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;
}
Blah blah blah
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz - Module - Garbage collector

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

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.
klaaspiet
Posts: 34
Joined: Tuesday 09 January 2018 8:29
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Harlingen
Contact:

Re: Dashticz - Module - Garbage collector

Post by klaaspiet »

Nice I have a look. How do I instal the beta
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests