Dashticz - Module - Garbage collector

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: htilburgs, robgeerts

Blueone
Posts: 160
Joined: Friday 29 November 2013 12:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by Blueone » Saturday 05 August 2017 21:10

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.

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by robgeerts » Saturday 05 August 2017 21:37

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...
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

Blueone
Posts: 160
Joined: Friday 29 November 2013 12:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by Blueone » Saturday 05 August 2017 21:44

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?

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by robgeerts » Saturday 05 August 2017 21:46

Sorry not yet...
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
Phantom
Posts: 73
Joined: Saturday 31 December 2016 15:47
Target OS: Raspberry Pi
Domoticz version: 3.8034
Location: The Netherlands
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by Phantom » Saturday 05 August 2017 22:55

Thanks i got it to work, also nice to have the 'setting' option now also.

User avatar
gielie
Posts: 182
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by gielie » Sunday 06 August 2017 13:59

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?
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by robgeerts » Sunday 06 August 2017 14:06

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.
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by robgeerts » Sunday 06 August 2017 14:06

Oh and you can remove:

Code: Select all

var trashcan = {}
trashcan.afvalwijzer = {trasapp: 'mijnafvalwijzer', zipcode: '' }
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
gielie
Posts: 182
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - [BETA] Module - Garbage collector

Post by gielie » Tuesday 08 August 2017 10:33

robgeerts wrote:Oh and you can remove:

Code: Select all

var trashcan = {}
trashcan.afvalwijzer = {trasapp: 'mijnafvalwijzer', zipcode: '' }
great tanks, worked like a charm
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

User avatar
DewGew
Posts: 110
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew » Tuesday 08 August 2017 14:19

Is it possible to create my own garbage kalender with ical? I dont have this service in my company?
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Tuesday 08 August 2017 14:28

Yes, you could choose for 'iCal' in the 'service/company' field and fill in your own ical-url
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
DewGew
Posts: 110
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew » Tuesday 08 August 2017 14:49

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 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Tuesday 08 August 2017 14:49

Could you send me the link?
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
DewGew
Posts: 110
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew » Tuesday 08 August 2017 14:53

Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Tuesday 08 August 2017 15:07

This is a private ical... you have to set it to public...
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
DewGew
Posts: 110
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew » Tuesday 08 August 2017 15:11

ok, I tryied puplic also:
https://calendar.google.com/calendar/ic ... /basic.ics
Same thing.
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Tuesday 08 August 2017 15:22

Well, the calendar is empty... there are no events...
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
DewGew
Posts: 110
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew » Tuesday 08 August 2017 15:30

not anymore ..:)
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Tuesday 08 August 2017 15:42

Works now? Refresh to be sure..
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
DewGew
Posts: 110
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Sweden
Contact:

Re: Dashticz - Module - Garbage collector

Post by DewGew » Tuesday 08 August 2017 15:48

robgeerts wrote:Works now? Refresh to be sure..
Still loading....
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest