Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Dashticz - Module - Garbage collector

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

Re: Dashticz - Module - Garbage collector

Post by mvveelen »

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

https://inzamelkalender.hvcgroep.nl/maand
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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 ?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post 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.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
pkrabben
Posts: 55
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Dashticz - Module - Garbage collector

Post 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
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post 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 ;)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
pkrabben
Posts: 55
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Dashticz - Module - Garbage collector

Post 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

Please test recyclemanager in latest beta:

Code: Select all

trashcan.recyclemanager = { trashapp: 'recyclemanager', width:4, zipcode:'3161lh', housenumber:'27' }
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post 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 17915 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 (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
mlamie
Posts: 122
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by mlamie »

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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post 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..
Ierlandfan
Posts: 89
Joined: Friday 09 October 2015 17:40
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

Thank you ;) will fix this ( I had only the zipcode parameter ;)
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

HVC is in the last beta!

Code: Select all

trashcan.hvc = { trashapp: 'hvc', width:12, zipcode:'1671jv', housenumber:'22' }
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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
User avatar
mvveelen
Posts: 686
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by mvveelen »

Whoohoo, I'll test it when I get home. Leaving now.....
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
bsmeding
Posts: 34
Joined: Tuesday 28 October 2014 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by bsmeding »

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 17793 times
User avatar
mvveelen
Posts: 686
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post 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 17758 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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest