Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by Blueone »

I previously had this configuration:

Code: Select all

var trashcan = {}
trashcan.cure = { maxitems: 4, trashapp: 'cure', width:12, zipcode:'******', housenumber:'*' }

var trashcanstandby = {}
trashcanstandby.cure = { maxitems: 1, trashapp: 'cure', width:6, zipcode:'*****', housenumber:'*' }

var trashnames = {}
trashnames['Gft'] =      			'GFT';
trashnames['Pmd'] =    			    'PMD';
trashnames['Restafval'] = 			'Restafval';
trashnames['Papier en karton'] = 	'Papier';

var trashcolors = {}
trashcolors['Gft'] = 'White';
trashcolors['Pmd'] = 'White';
trashcolors['Restafval'] = 'White';
trashcolors['Papier en karton'] = 'White';
Is it still possible to use two definitions of the garbage, I had one with 1 item for the stanby screen and one with 4 items in the main screen, this doesn't seem to be possible anymore with the new type of config and when I put the above code in config.js I get an undifined error.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by robgeerts »

Blueone wrote:I previously had this configuration:

Code: Select all

var trashcan = {}
trashcan.cure = { maxitems: 4, trashapp: 'cure', width:12, zipcode:'******', housenumber:'*' }

var trashcanstandby = {}
trashcanstandby.cure = { maxitems: 1, trashapp: 'cure', width:6, zipcode:'*****', housenumber:'*' }

var trashnames = {}
trashnames['Gft'] =      			'GFT';
trashnames['Pmd'] =    			    'PMD';
trashnames['Restafval'] = 			'Restafval';
trashnames['Papier en karton'] = 	'Papier';

var trashcolors = {}
trashcolors['Gft'] = 'White';
trashcolors['Pmd'] = 'White';
trashcolors['Restafval'] = 'White';
trashcolors['Papier en karton'] = 'White';
Is it still possible to use two definitions of the garbage, I had one with 1 item for the stanby screen and one with 4 items in the main screen, this doesn't seem to be possible anymore with the new type of config and when I put the above code in config.js I get an undifined error.
Remove:

Code: Select all

var trashcan = {}
trashcan.cure = { maxitems: 4, trashapp: 'cure', width:12, zipcode:'******', housenumber:'*' }

var trashcanstandby = {}
trashcanstandby.cure = { maxitems: 1, trashapp: 'cure', width:6, zipcode:'*****', housenumber:'*' }
And use in your column-definitions: 'garbage'
instead of trashcan.cure

If you want to have another width on your standby-screen, I still have to fix this...


Phantom wrote:I have updated to the latest Beta, but now the trashcan gives and undefined message.
Here is what i got in the config.js

Code: Select all

var trashnames = {}
trashnames['Rest'] = 'Grijze bak';
trashnames['Gft'] = 'Groene bak';
trashnames['Pmd'] = 'Plastic';
trashnames['Papier'] = 'Blauwe bak';

var trashcolors = {}
trashcolors['Rest'] = 'Grey';
trashcolors['Gft'] = 'Green';
trashcolors['Pmd'] = 'Orange';
trashcolors['Papier'] = 'Blue';

var trashcan = {}
trashcan.afvalapp = { key:'afvalapp', maxitems: 5, trashapp: 'meerlanden', width:12,zipcode:'xxxxxx', housenumber:'xx', country:'NL' }

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','currentweather_big',buttons.buienradar,trashcan.afvalapp]

What am i doing wrong? it was working with the beta that i had running on from 4 days ago.
replace:

Code: Select all

columns[3]['blocks'] = ['clock','sunrise','currentweather_big',buttons.buienradar,trashcan.afvalapp]
with:

Code: Select all

columns[3]['blocks'] = ['clock','sunrise','currentweather_big',buttons.buienradar,'garbage']
And remove:

Code: Select all

var trashcan = {}
trashcan.afvalapp = { key:'afvalapp', maxitems: 5, trashapp: 'meerlanden', width:12,zipcode:'xxxxxx', housenumber:'xx', country:'NL' }
Its now done via the settings-screen



avantwist wrote:Got it working Rob, thanks.
Only problem now is that with adding this to my config I only see the gabrage in my screen and nothing else

/Trash options
var trashcan = {}
trashcan.hvc = { maxitems: 4, trashapp: 'hvc', width:6, zipcode:'3319wc', housenumber:'2' }

var trashnames = {}
trashnames['Rest'] = 'Grijze bak';
trashnames['Gft'] = 'Groene bak';
trashnames['Pmd'] = 'Plastic';
trashnames['Papier'] = 'Blauwe bak';

var trashcolors = {}
trashcolors['Rest'] = 'Grey';
trashcolors['Gft'] = 'Green';
trashcolors['Pmd'] = 'Orange';
trashcolors['Papier'] = 'Blue';


var columns = {}
columns[1] = {}
columns[1]['blocks'] = [trashcan.hvc]
replace

Code: Select all

columns[1]['blocks'] = [trashcan.hvc]
with:

Code: Select all

columns[1]['blocks'] = ['garbage']
And dont forget to add the other blocks... now only 'garbage' is in your column...
Blueone
Posts: 130
Joined: Friday 29 November 2013 11:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by Blueone »

robgeerts wrote:
Blueone wrote:I previously had this configuration:

Code: Select all

var trashcan = {}
trashcan.cure = { maxitems: 4, trashapp: 'cure', width:12, zipcode:'******', housenumber:'*' }

var trashcanstandby = {}
trashcanstandby.cure = { maxitems: 1, trashapp: 'cure', width:6, zipcode:'*****', housenumber:'*' }

var trashnames = {}
trashnames['Gft'] =      			'GFT';
trashnames['Pmd'] =    			    'PMD';
trashnames['Restafval'] = 			'Restafval';
trashnames['Papier en karton'] = 	'Papier';

var trashcolors = {}
trashcolors['Gft'] = 'White';
trashcolors['Pmd'] = 'White';
trashcolors['Restafval'] = 'White';
trashcolors['Papier en karton'] = 'White';
Is it still possible to use two definitions of the garbage, I had one with 1 item for the stanby screen and one with 4 items in the main screen, this doesn't seem to be possible anymore with the new type of config and when I put the above code in config.js I get an undifined error.
Remove:

Code: Select all

var trashcan = {}
trashcan.cure = { maxitems: 4, trashapp: 'cure', width:12, zipcode:'******', housenumber:'*' }

var trashcanstandby = {}
trashcanstandby.cure = { maxitems: 1, trashapp: 'cure', width:6, zipcode:'*****', housenumber:'*' }
And use in your column-definitions: 'garbage'
instead of trashcan.cure

If you want to have another width on your standby-screen, I still have to fix this...


I mean, In the standby I only have 1 row in the garbage block and in the main 4 rows, can I somehow do that so with the new config?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by robgeerts »

Sorry not yet...
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by Phantom »

Thanks i got it to work, also nice to have the 'setting' option now also.
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 - [BETA] Module - Garbage collector

Post by gielie »

With the latest beta my garbage doesn't work anymore, when i switch back to master it works fine.

Code: Select all

var trashcan = {}
trashcan.afvalwijzer = {trasapp: 'mijnafvalwijzer', zipcode: '' }

columns [1]['blocks'] = [trashcan.afvalwijzer]

as i said in the master its works fine but when i switch to beta its gone.
Any idea?
- 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 - [BETA] Module - Garbage collector

Post by robgeerts »

replace:

Code: Select all

columns [1]['blocks'] = [trashcan.afvalwijzer]
with:

Code: Select all

columns [1]['blocks'] = ['garbage']
If you still dont see anything, configure this block in the settings-popup.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by robgeerts »

Oh and you can remove:

Code: Select all

var trashcan = {}
trashcan.afvalwijzer = {trasapp: 'mijnafvalwijzer', zipcode: '' }
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 - [BETA] Module - Garbage collector

Post by gielie »

robgeerts wrote:Oh and you can remove:

Code: Select all

var trashcan = {}
trashcan.afvalwijzer = {trasapp: 'mijnafvalwijzer', zipcode: '' }
great tanks, worked like a charm
- 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
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew »

Is it possible to create my own garbage kalender with ical? I dont have this service in my company?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 »

Yes, you could choose for 'iCal' in the 'service/company' field and fill in your own ical-url
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew »

robgeerts wrote:Yes, you could choose for 'iCal' in the 'service/company' field and fill in your own ical-url
I´ve done that but is says "loading.." then nothing.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 send me the link?
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew »

Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 »

This is a private ical... you have to set it to public...
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew »

ok, I tryied puplic also:
https://calendar.google.com/calendar/ic ... /basic.ics
Same thing.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 »

Well, the calendar is empty... there are no events...
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew »

not anymore ..:)
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 »

Works now? Refresh to be sure..
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew »

robgeerts wrote:Works now? Refresh to be sure..
Still loading....
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Post Reply

Who is online

Users browsing this forum: habahabahaba and 1 guest