Page 28 of 48

Re: Dashticz - Module - Garbage collector

Posted: Sunday 17 March 2019 13:57
by Lokonli
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
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']

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

Re: Dashticz - Module - Garbage collector

Posted: Sunday 17 March 2019 19:40
by naitsirhc
Wow,
It's working like a charm, Thanks a lot....

Re: Dashticz - Module - Garbage collector

Posted: Monday 18 March 2019 12:26
by Marque1968
Just a small question. The Tilburg collection does not show "rest+gft" but only "gft" (but "plastic+papier" still exists). I had my icons changed to show the two colors assosiated with the bins (green/black and orange/blue respectively) but now it shows as green only this week. Is this because the root data has changed or is there a data manipulation change?

Re: Dashticz - Module - Garbage collector

Posted: Monday 18 March 2019 19:38
by Lokonli
Marque1968 wrote: Monday 18 March 2019 12:26 Just a small question. The Tilburg collection does not show "rest+gft" but only "gft" (but "plastic+papier" still exists). I had my icons changed to show the two colors assosiated with the bins (green/black and orange/blue respectively) but now it shows as green only this week. Is this because the root data has changed or is there a data manipulation change?
I don''t think there was any recent change to the Dashticz code. I guess that the Tilburg calendar changed it's description of the garbage types. With config['garbage'] and config['garbage_mapping'] I expect you can tune it to what you want.

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 24 April 2019 23:37
by JacKok
Hello Rob,

Could someone give me a walk through to configure garbage settings.

I live in hellendoorn, and we can see garbage calendar https://afvalportaal.2go-mobile.com/mod ... jverdal---

I download the ical file and inport it to my public calendar in Gmail.

My Config

config['garbage_company'] = 'ical';
config['garbage_icalurl'] = 'https://calendar.google.com/calendar?ci ... Z2xlLmNvbQ';
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'},
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'},
};

unfortunately it not working, and showing only Loading. Please help!

Working with latest version of Dashticz v2
thanks

Re: Dashticz - Module - Garbage collector

Posted: Thursday 25 April 2019 0:39
by JacKok
JacKok wrote: Wednesday 24 April 2019 23:37 Hello Rob,

Could someone give me a walk through to configure garbage settings.

I live in hellendoorn, and we can see garbage calendar https://afvalportaal.2go-mobile.com/mod ... jverdal---

I download the ical file and inport it to my public calendar in Gmail.

My Config

config['garbage_company'] = 'ical';
config['garbage_icalurl'] = 'https://calendar.google.com/calendar?ci ... Z2xlLmNvbQ';
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'},
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'},
};

unfortunately it not working, and showing only Loading. Please help!

Working with latest version of Dashticz v2
thanks
UPDATE! ITS WORKING!!!

I was using the wrong URL for my calendar

BAD:
config['garbage_icalurl'] = 'https://calendar.google.com/calendar?ci ... Z2xlLmNvbQ';

Good:
Find in Google calender the ''Public adres in Ical'' and use that link for config['garbage_icalurl'] =

Open Google Calendar > Settings > Click right calendar > public address in ical format

Re: Dashticz - Module - Garbage collector

Posted: Sunday 04 August 2019 0:04
by Gianni
need some help cant figure out myself

if i leave the garbage standard i get(ophaalkalender be)

restafval dinsdag
p-k dindag
pmd 13-08-2013

so this is correct like the calendar.

but if i put this code

Code: Select all

config['garbage'] = {
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'},
};
then i only get

restafval dinsdag
pmd 13-08-2013

SO no P-K
if i read goo then is the first mapping the word searching in the online calendar.
Papier en karton is written like P-K on the online calendar

so if i write this

Code: Select all

config['garbage'] = {
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'},
p-k: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
};
then i only got
restafval dinsdag
restafval 13*08*2019
restzfvzl 20*08*2019

if i made a mapping he only show pmd

Code: Select all

config['garbage_mapping'] = 
{papier: ['P-K', '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: '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'},
};
If i give this mapping it's say no data found

Code: Select all

  config['garbage_mapping'] = {
    rest: ['Restafval'],
    pmd: ['PMD'],
    papier: ['Papier','P-K','p-k']
  }
config['garbage'] = {

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'},
};
if i take the json cal en copied into te browser then this is correct

Code: Select all

0	
allDay	true
color	"grey"
start	"2019-08-06T00:00:00+02:00"
title	"Restafval"
1	
allDay	true
color	"brown"
start	"2019-08-06T00:00:00+02:00"
title	"P-K"
2	
allDay	true
color	"blue"
start	"2019-08-13T00:00:00+02:00"
title	"PMD"
3	
allDay	true
color	"grey"
start	"2019-08-13T00:00:00+02:00"
title	"Restafval"
4	
allDay	true
color	"grey"
start	"2019-08-20T00:00:00+02:00"
title	"Restafval"

how can i fix this?

Re: Dashticz - Module - Garbage collector

Posted: Sunday 04 August 2019 12:53
by Gianni
solved .
found the V2 manual.
Match the mapping with the json call and now it's work correct.

grts

Re: Dashticz - Module - Garbage collector

Posted: Monday 05 August 2019 16:13
by jaaap
Hi all,

I've tried to get it running, but no luck so far :-( I've got the script running in Domoticz itself, but I don't like the display of the variable in dashticz (I know I could fix this via custom.css, but I think it's nicer to have the garbage module run on dashticz). I only see the garbage can icon in dashticz, and 'Geen gegevens gevonden'.

My setup:
domoticz 4.10717 running on synology nas
dashticz V3.0.0 master running on synology nas,
python version: none,
php version 7.0.33

I've mapped the types of trash according to our local garbage company (I got the right names from the script in domoticz. That works so I know the mapping now refers to the right names).

Code: Select all

config['garbage_company'] = 'dar';
config['garbage_icalurl'] = '';
config['google_api_key'] = '';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = '6663AJ';
config['garbage_street'] = 'Radmakerstraat';
config['garbage_housenumber'] = '13';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = '5';
config['garbage_width'] = '4';
config['garbage_hideicon'] = false;
config['garbage_icon_use_colors'] = true;
config['garbage_use_colors'] = true;
config['garbage_use_names'] = true;
config['garbage_use_cors_prefix'] = true;
config['garbage_mapping'] = {
    rest: ['Restafval'],
    gft: ['Gft-afval'],
    pmd: ['Plastic+'],
    papier: ['Papier (overdag)'],
    kerstboom: ['kerst'],
};
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'Gft-afval', 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'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},
};
Any ideas?

Re: Dashticz - Module - Garbage collector

Posted: Thursday 19 September 2019 23:58
by jaaap
jaaap wrote: Monday 05 August 2019 16:13 Hi all,

I've tried to get it running, but no luck so far :-( I've got the script running in Domoticz itself, but I don't like the display of the variable in dashticz (I know I could fix this via custom.css, but I think it's nicer to have the garbage module run on dashticz). I only see the garbage can icon in dashticz, and 'Geen gegevens gevonden'.

My setup:
domoticz 4.10717 running on synology nas
dashticz V3.0.0 master running on synology nas,
python version: none,
php version 7.0.33

I've mapped the types of trash according to our local garbage company (I got the right names from the script in domoticz. That works so I know the mapping now refers to the right names).

Code: Select all

config['garbage_company'] = 'dar';
config['garbage_icalurl'] = '';
config['google_api_key'] = '';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = '6663AJ';
config['garbage_street'] = 'Radmakerstraat';
config['garbage_housenumber'] = '13';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = '5';
config['garbage_width'] = '4';
config['garbage_hideicon'] = false;
config['garbage_icon_use_colors'] = true;
config['garbage_use_colors'] = true;
config['garbage_use_names'] = true;
config['garbage_use_cors_prefix'] = true;
config['garbage_mapping'] = {
    rest: ['Restafval'],
    gft: ['Gft-afval'],
    pmd: ['Plastic+'],
    papier: ['Papier (overdag)'],
    kerstboom: ['kerst'],
};
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'Gft-afval', 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'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},
};
Any ideas?
I finally figured it out. It was all due to some extention settings on the PHP on my synology. It appears that I should not only tick the curl box, but also the openssl box.

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 01 October 2019 21:23
by madradrakie
Can somebody help me. Suddenly my garbage collector is not working anymore. I'am running dashticz and domoticz on a raspherry pi. This is the script i use at te moment:

Code: Select all

config['dashticz_php_path']='./vendor/dashticz/' 
config['garbage_company'] = 'almere';
config['garbage_icalurl'] = '0';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = '1234AAV';
config['garbage_street'] = 'xxx xx xxx';
config['garbage_housenumber'] = '1234';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_icon_use_colors'] = 1;
config['garbage_use_colors'] = 0;
config['garbage_use_names'] = 1;
config['garbage_use_cors_prefix'] = 1;
config['garbage_mapping'] = {
    rest: ['grof', 'grey', 'rest', 'grijs','grijze'],
    gft: ['gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biodégradables', 'snoei'],
    pmd: ['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'},
};
It shows on the screen:
Zwart: Vandaag
Zwart: Vrijdag

What is going wrong?

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 02 October 2019 18:13
by HansieNL
Have you changed something in your garbage settings?
My advice is to backup your CONFIG.js and try with basic garbage settings to see if that works.

Re: Dashticz - Module - Garbage collector

Posted: Sunday 06 October 2019 11:04
by madradrakie
HansieNL wrote: Wednesday 02 October 2019 18:13 Have you changed something in your garbage settings?
My advice is to backup your CONFIG.js and try with basic garbage settings to see if that works.
No i changed nothing. Also when i use basic settings in a clean dashticz installation it shows the same.

Re: Dashticz - Module - Garbage collector

Posted: Sunday 06 October 2019 14:30
by Lokonli
madradrakie wrote: Sunday 06 October 2019 11:04
HansieNL wrote: Wednesday 02 October 2019 18:13 Have you changed something in your garbage settings?
My advice is to backup your CONFIG.js and try with basic garbage settings to see if that works.
No i changed nothing. Also when i use basic settings in a clean dashticz installation it shows the same.
There is a change in the data Dashticz receives from the Almere garbage provider.

I've made the fix in the latest beta.

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 08 October 2019 21:58
by madradrakie
Lokonli wrote: Sunday 06 October 2019 14:30
madradrakie wrote: Sunday 06 October 2019 11:04
HansieNL wrote: Wednesday 02 October 2019 18:13 Have you changed something in your garbage settings?
My advice is to backup your CONFIG.js and try with basic garbage settings to see if that works.
No i changed nothing. Also when i use basic settings in a clean dashticz installation it shows the same.
There is a change in the data Dashticz receives from the Almere garbage provider.

I've made the fix in the latest beta.
Thanks again Lokonli, it is working again! :D

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 09 October 2019 8:36
by Lokonli
Good! Thanks for confirming.

Re: Dashticz - Module - Garbage collector

Posted: Saturday 16 November 2019 20:49
by marktn
Hello,

Is this working under dashticz v3?
I like to have a larger font.

Code: Select all

.trash .state div.trashrow {
    font-size: 100px;
}
.trash .state div.trashtoday {
    font-size: 100px;
}
.trash .state div.trashtomorrow {
    font-size: 100px;
}

Re: Dashticz - Module - Garbage collector

Posted: Sunday 17 November 2019 2:54
by HansieNL
marktn wrote: Saturday 16 November 2019 20:49 Hello,

Is this working under dashticz v3?
I like to have a larger font.

Code: Select all

.trash .state div.trashrow {
    font-size: 100px;
}
.trash .state div.trashtoday {
    font-size: 100px;
}
.trash .state div.trashtomorrow {
    font-size: 100px;
}
Just tried with latest beta. Looks like it is working.

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 19 November 2019 21:17
by marktn
HansieNL wrote: Sunday 17 November 2019 2:54
marktn wrote: Saturday 16 November 2019 20:49 Hello,

Is this working under dashticz v3?
I like to have a larger font.

Code: Select all

.trash .state div.trashrow {
    font-size: 100px;
}
.trash .state div.trashtoday {
    font-size: 100px;
}
.trash .state div.trashtomorrow {
    font-size: 100px;
}
Just tried with latest beta. Looks like it is working.
Oke....strange.
This is my custom.css
Can you send me your css file?
/*
.trash .state div.trashrow {
font-size: 100px;
}
.trash .state div.trashtoday {
font-size: 100px;
}
.trash .state div.trashtomorrow {
font-size: 100px;
}
*/

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 19 November 2019 23:28
by HansieNL
Are you sure??? If you put it between /* and */ it's a comment and nothing will be styled.