Dashticz - Module - Garbage collector

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: htilburgs, robgeerts

Post Reply
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:

Dashticz - Module - Garbage collector

Post by robgeerts » Friday 05 May 2017 9:38

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)
Last edited by mlamie on Saturday 06 May 2017 13:57, edited 6 times in total.
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
mvveelen
Posts: 639
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by mvveelen » Friday 05 May 2017 10:36

Hi Rob, is it possible to do something with the following URL for Hoorn ?

https://inzamelkalender.hvcgroep.nl/maand
Synology DS414 DSM6.1 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

bsmeding
Posts: 39
Joined: Tuesday 28 October 2014 19:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by bsmeding » Friday 05 May 2017 10:40

+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 ?

User avatar
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK » Friday 05 May 2017 10:41

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.
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

pkrabben
Posts: 50
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Dashticz - Module - Garbage collector

Post by pkrabben » Friday 05 May 2017 10:56

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

User avatar
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK » Friday 05 May 2017 11:06

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 ;)
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

pkrabben
Posts: 50
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Dashticz - Module - Garbage collector

Post by pkrabben » Friday 05 May 2017 11:10

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

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 » Friday 05 May 2017 11:26

Please test recyclemanager in latest beta:

Code: Select all

trashcan.recyclemanager = { trashapp: 'recyclemanager', width:4, zipcode:'3161lh', housenumber:'27' }
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
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK » Friday 05 May 2017 11:38

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 3319 times
Last edited by EdwinK on Friday 05 May 2017 11:41, edited 1 time in total.
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
mlamie
Posts: 150
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by mlamie » Friday 05 May 2017 11:41

Can you include Alphen aan den Rijn as well?
http://afvalkalender.alphenaandenrijn.nl
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V

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 » Friday 05 May 2017 11:45

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 - Module - Garbage collector

Post by robgeerts » Friday 05 May 2017 11:49

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
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 - Module - Garbage collector

Post by robgeerts » Friday 05 May 2017 11:54

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

Ierlandfan
Posts: 71
Joined: Friday 09 October 2015 17:40
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Ierlandfan » Friday 05 May 2017 14:14

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

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 » Friday 05 May 2017 14:15

Thank you ;) will fix this ( I had only the zipcode parameter ;)
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 - Module - Garbage collector

Post by robgeerts » Friday 05 May 2017 14:43

HVC is in the last beta!

Code: Select all

trashcan.hvc = { trashapp: 'hvc', width:12, zipcode:'1671jv', housenumber:'22' }
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

bsmeding
Posts: 39
Joined: Tuesday 28 October 2014 19:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by bsmeding » Friday 05 May 2017 15:15

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

User avatar
mvveelen
Posts: 639
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by mvveelen » Friday 05 May 2017 15:54

Whoohoo, I'll test it when I get home. Leaving now.....
Synology DS414 DSM6.1 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

bsmeding
Posts: 39
Joined: Tuesday 28 October 2014 19:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by bsmeding » Friday 05 May 2017 16:54

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

Many thanks!
Attachments
Schermafbeelding 2017-05-05 om 16.52.11.png
Schermafbeelding 2017-05-05 om 16.52.11.png (49.62 KiB) Viewed 3197 times

User avatar
mvveelen
Posts: 639
Joined: Friday 31 October 2014 11:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by mvveelen » Friday 05 May 2017 18:09

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 3162 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.
Last edited by mvveelen on Friday 05 May 2017 19:34, edited 1 time in total.
Synology DS414 DSM6.1 + RFXCOM rfxtrx433E + Xiaomi Gateway + Philips HUE Lights + Nefit Easy + Dashticz v2 + Domoticz latest Beta

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest