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...