Page 3 of 48

Re: Dashticz - Module - Garbage collector

Posted: Sunday 07 May 2017 20:49
by pkrabben
Hi All

The recycle manager is working only I can't get the block wider then 4.
I tried

Code: Select all

blocks['trashcan.recyclemanager'] = {} 
blocks['trashcan.recyclemanager']['width'] = 12;
but for some reason it stays width 4 do you have any clue?

Re: Dashticz - Module - Garbage collector

Posted: Sunday 07 May 2017 20:52
by robgeerts
In latest beta you can change the names for the type of garbage, add to config.js:

Code: Select all

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
(Gft becomes GFT and Pmd becomes Plastic)

Also you can change the colors:

Code: Select all

var trashcolors = {}
trashcolors['Gft'] = 'Green';
trashcolors['Pmd'] = 'Orange';

Re: Dashticz - Module - Garbage collector

Posted: Sunday 07 May 2017 20:52
by robgeerts
pkrabben wrote:Hi All

The recycle manager is working only I can't get the block wider then 4.
I tried

Code: Select all

blocks['trashcan.recyclemanager'] = {} 
blocks['trashcan.recyclemanager']['width'] = 12;
but for some reason it stays width 4 do you have any clue?
You have to set the width here:

Code: Select all

trashcan.recyclemanager = { trashapp: 'recyclemanager', width:12, zipcode:'3161lh', housenumber:'27' }

Re: Dashticz - Module - Garbage collector

Posted: Sunday 07 May 2017 20:56
by pkrabben
robgeerts wrote:
pkrabben wrote:Hi All

The recycle manager is working only I can't get the block wider then 4.
I tried

Code: Select all

blocks['trashcan.recyclemanager'] = {} 
blocks['trashcan.recyclemanager']['width'] = 12;
but for some reason it stays width 4 do you have any clue?
You have to set the width here:

Code: Select all

trashcan.recyclemanager = { trashapp: 'recyclemanager', width:12, zipcode:'3161lh', housenumber:'27' }
Thanks Rob for your quick reply.
I just overlooked that option :oops:

Re: Dashticz - Module - Garbage collector

Posted: Monday 08 May 2017 9:58
by remb0
I will user the trashcan module but get:
Undefined

var trashcan = {}
trashcan.hvc = { trashapp: 'hvc', width:12, zipcode:'3328LN', housenumber:'39'}

columns[1] = {}
columns[1]['blocks'] = ['clock',buttons.buienradar,buttons.nzbget,buttons.radio,trashcan.hvc,'streamplayer'];
columns[1]['width'] = 2;

Re: Dashticz - Module - Garbage collector

Posted: Monday 08 May 2017 10:05
by blacksn0w
remb0 wrote:I will user the trashcan module but get:
Undefined

var trashcan = {}
trashcan.hvc = { trashapp: 'hvc', width:12, zipcode:'3328LN', housenumber:'39'}

columns[1] = {}
columns[1]['blocks'] = ['clock',buttons.buienradar,buttons.nzbget,buttons.radio,trashcan.hvc,'streamplayer'];
columns[1]['width'] = 2;
You are missing a ; at the end of your second line.

Re: Dashticz - Module - Garbage collector

Posted: Monday 08 May 2017 10:32
by robgeerts
The missing ; does not matter in Javascript ;)
Remco, could you check if you are using the latest /js/trash.js ?

Re: Dashticz - Module - Garbage collector

Posted: Monday 08 May 2017 12:11
by qwerk
I know there is a difference in firefox and chrome, with ""invalid date"

but also in chrome it goes without logic


Firefox:
firefox-afval.JPG
firefox-afval.JPG (18.27 KiB) Viewed 2936 times
Chrome:
chrome-afval.JPG
chrome-afval.JPG (16.09 KiB) Viewed 2936 times
running the latest beta. "oud papier" is next saterday

Re: Dashticz - Module - Garbage collector

Posted: Monday 08 May 2017 14:00
by gielie
I have the same problem, i use Safari on OsX and iPad.

Image

How do i increase the trash icon?

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 10:42
by robgeerts
Could you test in latest beta if you still gets invalid date?

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 10:56
by pvdhelm
Nope invalid date is gone. Good work Rob

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 11:21
by qwerk
Nice, invalid date in chrome and firefox gone.

you are doing great, Rob. Kudo's

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 15:47
by bsmeding
Yes working perfect now on iPad (safari)

THANKS!

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 16:50
by gielie
I have different colours for the text corresponding to the afval, is it possible to change the color of the trashcan, corresponding to the trash of that week.

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 17:36
by robgeerts
No.. but in my case I have weeks where everything is getting picked up at separate days..what colour do you want it to be ;)

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 18:22
by gielie
robgeerts wrote:No.. but in my case I have weeks where everything is getting picked up at separate days..what colour do you want it to be ;)
Haha that would-be a big mesh. Is it possible to only show the next trash date, so only one line and then correspond the color of the trash icon.

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 18:24
by robgeerts
I can still show multiple lines but color the icon corresponding to the first pickup date to come..

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 18:53
by remb0
When I did git pull i got: already up to date.
But I did not had the right js file.

I have updated manually and it works! thanks! great module!

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 19:49
by mvveelen
robgeerts wrote:I can still show multiple lines but color the icon corresponding to the first pickup date to come..
Would be nice. The invalid date is gone here too :) !

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 09 May 2017 21:08
by Martijn85
Great addon! Nice work again m8 :D

Is it possible to add: http://afvalkalender.sudwestfryslan.nl ?