Page 1 of 48

Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 9:38
by robgeerts
If you want to have a block with next pickup dates for your garbage, go to the Garbage-tab in the settings-popup and fill in your information.
Next, define it in a column like:

Code: Select all

columns[1] = {}
columns[1]['width'] = 2;
columns[1]['blocks'] = ['garbage']

You can change the names for the type of garbage, add to config.js:

Code: Select all

config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart'},
};
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;

Currently supported cities/companies/services:

ical > iCal
ophaalkalender > Ophaalkalender (BE)
edg > EDG (DE)
deafvalapp > Afval App (NL)
afvalwijzerarnhem > Afvalwijzer Arnhem (NL)
alphenaandenrijn > Alphen aan de Rijn (NL)
avalex > Avalex (NL)
gemeenteberkelland > Berkelland (NL)
best > Best (NL)
circulusberkel > Circulus Berkel (NL)
cure > Cure (NL)
cyclusnv > Cyclus NV (NL)
dar > Dar (NL)
gemertbakelmaandag > Gemert-Bakel, maandag (NL)
gemertbakeldinsdag > Gemert-Bakel, dinsdag (NL)
gemertbakelwoensdag > Gemert-Bakel, woensdag (NL)
goes > Goes (NL)
hvc > HVC Groep (NL)
meerlanden > Meerlanden (NL)
mijnafvalwijzer > Mijn Afval Wijzer (NL)
recyclemanager > Recycle Manager
rmn > RMN (NL)
rova > Rova (NL)
sudwestfryslan > Sudwest Fryslan (NL)
twentemilieu > Twente Milieu (NL)
uden > Uden (NL)
veldhoven > Veldhoven (NL)
vianen > Vianen (NL)
waalre > Waalre (NL)

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 10:36
by mvveelen
Hi Rob, is it possible to do something with the following URL for Hoorn ?

https://inzamelkalender.hvcgroep.nl/maand

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 10:40
by bsmeding
+1
Would like support for this trash calendar also

I found that the URL https://inzamelkalender.hvcgroep.nl/log ... eging=&x=1

give the information in web format, but cannot found a json or other ease readable format for scripting...
maybe some other can strip the information ?

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 10:41
by EdwinK
Wanted to add the output from JSON by recyclemanager, but it's too large to put in a post. :(

'Your message contains 103259 characters.
The maximum number of allowed characters is 60000'

I can only gif you the url of this app. https://vpn-wec-api.recyclemanager.nl/v ... &number=27

Only paper, green and grey are important, as the other are just collected from underground containers.

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 10:56
by pkrabben
robgeerts wrote:If you want to have a block with next pickup dates for your garbage, add the following to config.js:

Code: Select all

var trashcan = {}
trashcan.afvalapp = { trashapp: 'deafvalapp', width:4,zipcode:'5692VG', housenumber:'33', country:'NL' }
trashcan.cure = { trashapp: 'cure', width:8, zipcode:'5654SB', housenumber:'3' }
trashcan.afvalwijzer = { trashapp: 'mijnafvalwijzer', width:4, zipcode:'3582ES', housenumber:'1' }
trashcan.berkel= { trashapp: 'gemeenteberkelland', width:4, zipcode:'7156JA', housenumber:'1' }
trashcan.cyclus = { trashapp: 'cyclusnv', width:4, zipcode:'2806TP', housenumber:'23' }
trashcan.venray = { trashapp: 'venray', width:4, zipcode:'5863BB', housenumber:'47' }
trashcan.meerlanden = { trashapp: 'meerlanden', width:4, zipcode:'2111BS', housenumber:'42' }
trashcan.circulusberkel = { trashapp: 'circulusberkel', width:4, zipcode:'6971KA', housenumber:'81' }
And define them in a columns like:

Code: Select all

columns[1]['blocks'] = [trashcan.cure]
OR

Code: Select all

columns[1]['blocks'] = [trashcan.afvalapp]
I will add support for more types of calendars, if you have one wich outputs JSON/XML, please send me :)
Hi Rob

Is the recycle manager also working?

https://www.recyclemanager.nl/afvalkalender

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 11:06
by EdwinK
pkrabben wrote:

Hi Rob

Is the recycle manager also working?

https://www.recyclemanager.nl/afvalkalender
I just posted a way to find the JSON for recyclemanager. It's just a few posts up ;)

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 11:10
by pkrabben
EdKo66 wrote:
pkrabben wrote:

Hi Rob

Is the recycle manager also working?

https://www.recyclemanager.nl/afvalkalender
I just posted a way to find the JSON for recyclemanager. It's just a few posts up ;)
Oke Thanks. I didn't noticed that ;-)
I will wait for the reply

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 11:26
by robgeerts
Please test recyclemanager in latest beta:

Code: Select all

trashcan.recyclemanager = { trashapp: 'recyclemanager', width:4, zipcode:'3161lh', housenumber:'27' }

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 11:38
by EdwinK
robgeerts wrote:Please test recyclemanager in latest beta:

Code: Select all

trashcan.recyclemanager = { trashapp: 'recyclemanager', width:4, zipcode:'3161lh', housenumber:'27' }
Works :) Paper should be tomorrow. Today is GFT. Maybe an error in the JSON

Only need to change some things to have it fit better. Might move it to another column ;)
Screen Shot 2017-05-05 at 11.39.08.png
Screen Shot 2017-05-05 at 11.39.08.png (124.77 KiB) Viewed 20933 times

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 11:41
by mlamie
Can you include Alphen aan den Rijn as well?
http://afvalkalender.alphenaandenrijn.nl

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 11:45
by robgeerts

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 11:49
by robgeerts
EdKo66 wrote:
robgeerts wrote:Please test recyclemanager in latest beta:

Code: Select all

trashcan.recyclemanager = { trashapp: 'recyclemanager', width:4, zipcode:'3161lh', housenumber:'27' }
Works :) Paper should be tomorrow. Today is GFT. Maybe an error in the JSON

Only need to change some things to have it fit better. Might move it to another column ;)
Screen Shot 2017-05-05 at 11.39.08.png
Change width:4 to width:12

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 11:54
by robgeerts
mlamie wrote:Can you include Alphen aan den Rijn as well?
http://afvalkalender.alphenaandenrijn.nl
Added in latest beta!

I cant get the calendar for HVC group to work yet..

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 14:14
by Ierlandfan
robgeerts wrote:
mlamie wrote:Can you include Alphen aan den Rijn as well?
http://afvalkalender.alphenaandenrijn.nl
Added in latest beta!

I cant get the calendar for HVC group to work yet..
Are you using this?

Code: Select all

http://inzamelkalender.hvcgroep.nl/push/calendar?callback=jQuery20204883549400154621_1493985891393&postcode=1671jv&huisnummer=22&huisletter=&toevoeging=&adresid=999999999&tijdstip_push=0&_=1493985891404

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 14:15
by robgeerts
Thank you ;) will fix this ( I had only the zipcode parameter ;)

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 14:43
by robgeerts
HVC is in the last beta!

Code: Select all

trashcan.hvc = { trashapp: 'hvc', width:12, zipcode:'1671jv', housenumber:'22' }

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 15:15
by bsmeding
robgeerts wrote:HVC is in the last beta!

Code: Select all

trashcan.hvc = { trashapp: 'hvc', width:12, zipcode:'1671jv', housenumber:'22' }

WHow great! Will test this when I'm at home

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 15:54
by mvveelen
Whoohoo, I'll test it when I get home. Leaving now.....

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 16:54
by bsmeding
Yes, it is working voor hvcgroep ! :D :D

Many thanks!

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 May 2017 18:09
by mvveelen
The HVC version works, but I get this:
Schermafbeelding 2017-05-05 om 18.07.02.png
Schermafbeelding 2017-05-05 om 18.07.02.png (183.53 KiB) Viewed 20776 times
Invalid date ??

The following dates are the ones that should be displayed:

Restafval: woensdag 10 mei
GFT: woensdag 17 mei
Plastic: woensdag 24 mei
GFT: woensdag 31 mei


I think I also have to locate this in another block (it's too high)

Can we also change the names ourselves? I get Gft , but Pmd isn't really clear. I prefer GFT also over Gft.
Another question: can we outline the dates ?

bsmeding wrote:Yes, it is working voor hvcgroep ! :D :D

Many thanks!
Look great, although my ZIP code gives the " invalid date " for the 10th.