Page 12 of 48
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Saturday 05 August 2017 21:10
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.
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Saturday 05 August 2017 21:37
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...
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Saturday 05 August 2017 21:44
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?
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Saturday 05 August 2017 21:46
by robgeerts
Sorry not yet...
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Saturday 05 August 2017 22:55
by Phantom
Thanks i got it to work, also nice to have the 'setting' option now also.
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Sunday 06 August 2017 13:59
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?
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Sunday 06 August 2017 14:06
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.
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Sunday 06 August 2017 14:06
by robgeerts
Oh and you can remove:
Code: Select all
var trashcan = {}
trashcan.afvalwijzer = {trasapp: 'mijnafvalwijzer', zipcode: '' }
Re: Dashticz - [BETA] Module - Garbage collector
Posted: Tuesday 08 August 2017 10:33
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
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 14:19
by DewGew
Is it possible to create my own garbage kalender with ical? I dont have this service in my company?
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 14:28
by robgeerts
Yes, you could choose for 'iCal' in the 'service/company' field and fill in your own ical-url
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 14:49
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.
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 14:49
by robgeerts
Could you send me the link?
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 14:53
by DewGew
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 15:07
by robgeerts
This is a private ical... you have to set it to public...
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 15:11
by DewGew
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 15:22
by robgeerts
Well, the calendar is empty... there are no events...
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 15:30
by DewGew
not anymore ..

Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 15:42
by robgeerts
Works now? Refresh to be sure..
Re: Dashticz - Module - Garbage collector
Posted: Tuesday 08 August 2017 15:48
by DewGew
robgeerts wrote:Works now? Refresh to be sure..
Still loading....