- Spoiler: show
martin82 wrote: ↑Saturday 19 September 2020 20:05
hello my garbage collector dont work i dont know what i do wrong this is my config
//configuring Garbage company
config['garbage_company'] = 'omrin';
config['garbage_zipcode'] = '8932bk';
config['garbage_street'] = 'Aert van der neerstraat';
config['garbage_housenumber'] = '71';
config['garbage_maxitems'] = '3';
config['garbage_hideicon'] = false;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT'},
pmd: {kliko: 'orange', code: '#db5518', name: 'Plastic'},
rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval'},
Tried here and I get a good response.
Do you have PHP installed, because that's needed for the garbage function. You can find your PHP version by clicking the setup icon (right top) and then info.
Did you forget a closing } ?
If you want to change the names for your garbage try:
Code: Select all
config['garbage_mapping'] = {
rest: ['grof', 'grey', 'rest', 'grijs','grijze', 'sorti'],
gft: ['gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biodégradables', 'snoei', 'bio'],
pmd: ['plastic', 'pmd', 'verpakking', 'kunststof', 'valorlux'],
papier: ['papier', 'blauw', 'blue', 'recycling bin collection'],
};
config['garbage'] = {
gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
pmd: {kliko: 'orange', code: '#db5518', name: 'Plastic', 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'},
};