Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

pkrabben
Posts: 55
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Dashticz - Module - Garbage collector

Post 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?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post 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';
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post 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' }
pkrabben
Posts: 55
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Dashticz - Module - Garbage collector

Post 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:
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post 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;
blacksn0w
Posts: 99
Joined: Friday 10 March 2017 22:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
Migration done, hello Home Assistant.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

The missing ; does not matter in Javascript ;)
Remco, could you check if you are using the latest /js/trash.js ?
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post 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 2812 times
Chrome:
chrome-afval.JPG
chrome-afval.JPG (16.09 KiB) Viewed 2812 times
running the latest beta. "oud papier" is next saterday
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Garbage collector

Post by gielie »

I have the same problem, i use Safari on OsX and iPad.

Image

How do i increase the trash icon?
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

Could you test in latest beta if you still gets invalid date?
pvdhelm
Posts: 29
Joined: Tuesday 14 March 2017 17:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Skendel
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvdhelm »

Nope invalid date is gone. Good work Rob
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by qwerk »

Nice, invalid date in chrome and firefox gone.

you are doing great, Rob. Kudo's
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by bsmeding »

Yes working perfect now on iPad (safari)

THANKS!
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post 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 ;)
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

I can still show multiple lines but color the icon corresponding to the first pickup date to come..
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post 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!
User avatar
mvveelen
Posts: 687
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post 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 :) !
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Martijn85
Posts: 53
Joined: Wednesday 20 January 2016 20:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by Martijn85 »

Great addon! Nice work again m8 :D

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

Who is online

Users browsing this forum: No registered users and 1 guest