Very very quick update. (V3.3.0 beta)
And it is working.
Moderators: leecollings, htilburgs, robgeerts
Very very quick update. (V3.3.0 beta)
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
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?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'}, };
Fixed in latest beta.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.
is there some progress for this itempeet3kabo 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,
Haha, I am just picking up dashticz again somewhat now I have some time with my huge home rebuilt.klaaspiet wrote:is there some progress for this itempeet3kabo 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,
Can you try: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...
Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
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:HansieNL wrote: ↑Monday 03 February 2020 1:23 Can you try:Code: Select all
[data-id='garbage'] .trashcan { width: 110% !important; }
Code: Select all
.trashcan {
width: 150% !important;
max-width: 50px;
}
Merged into beta.klaaspiet wrote: ↑Wednesday 29 January 2020 21:25is there some progress for this itempeet3kabo 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,
Users browsing this forum: No registered users and 1 guest