In your case you have to define config['garbage_mapping'] as well. With this setting you map a certain text found in the garbage description to a garbage type. After that you can configure the representation of the garbage types with config['garbage']naitsirhc wrote: ↑Sunday 17 March 2019 11:56 Hi,
Could someone give me a walk through to configure my gmail calendar (Ical) with this nice add on?
Until now i've got:
config['garbage_icalurl'] = 'https://calendar.google.com/calendar/ic ... /basic.ics';
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: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
//pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
//Restabfallbehaelter: {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'},
Restabfallbehaelter: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
//kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},
};
Unfortunately my Dashticz does show up, but the garbage add on shows loading and doesn't continue....
thanks in advance
Don't forget to define config['garbage_company']
Try the following:
Code: Select all
config['garbage_company'] = 'ical';
config['garbage_icalurl'] = 'https://calendar.google.com/calendar/ical/afvaltwist%40gmail.com/public/basic.ics';
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_mapping'] = {
rest: ['Rest'],
gelb: ['Gelber'],
bio: ['Bio'],
papier: ['Papier']
}
config['garbage'] = {
rest: {kliko: 'black', code: '#000000', name: 'Restabfall', icon: 'img/garbage/kliko_black.png'},
gelb: {kliko: 'yellow', code: '#f9e231', name: 'Gelber Sack', icon: 'img/garbage/kliko_yellow.png'},
bio: {kliko: 'green', code: '#375b23', name: 'Bio', icon: 'img/garbage/kliko_green.png'},
papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
};