Dashticz - Module - Garbage collector

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

aiolos
Posts: 129
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos » Wednesday 10 January 2018 18:12

Moosjes wrote:
Wednesday 10 January 2018 17:59
Moosjes wrote:
Wednesday 10 January 2018 15:32
I have added the Garbage calander of Veldhoven to my Dashticz but all I get in the dashboard is 'Laden...'
I found the sollution to my own problem. I had selected the company 'Veldhoven' instead of 'veldhoven' (mind the capital V). After changing this it still did not work.

After I changed the company to 'ical' it worked :D
But then you're using config['garbage_icalurl'] and not config['garbage_zipcode'] and config['garbage_housenumber']? Zipcode and housenumber are used by the veldhoven parser.
Contributor to Dashticz
More on my Github profile

AndreFR
Posts: 14
Joined: Thursday 30 November 2017 20:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by AndreFR » Wednesday 10 January 2018 20:07

robgeerts wrote:
Monday 08 January 2018 22:30
Hmm indeed, we cannot use the afvalkalender.container-beheer.nl website.
But I've read on the website of Rotterdam that you should be able to use mijnafvalwijzer.
Try choosing this in dashticz-settings and enter your zipcode and house number.
Hi Rob/aiolos,
I’ve requested to have our city to be included to the ‘mijnafvalwijzer.nl’ website, it works if I use another ‘postcode’....

jake
Posts: 439
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Dashticz - Module - Garbage collector

Post by jake » Thursday 11 January 2018 23:25

htilburgs wrote:When using config['garbage_icon_use_colors'] = false; in your config.js, no icon is showed.
When checking I think the problem is:

Code: Select all

<img class="trashcan" src="img/kliko.png" style="opacity: 1;">
While it should be img/trashcan/kliko.png
garbage.js needs an update. Indeed kliko.png has moved, but not yet in the code.

instead of "img/kliko.png", it should be "img/garbage/kliko.png"

User avatar
EdwinK
Posts: 1284
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 » Thursday 11 January 2018 23:32

jake wrote:
Thursday 11 January 2018 23:25
htilburgs wrote:When using config['garbage_icon_use_colors'] = false; in your config.js, no icon is showed.
When checking I think the problem is:

Code: Select all

<img class="trashcan" src="img/kliko.png" style="opacity: 1;">
While it should be img/trashcan/kliko.png
garbage.js needs an update. Indeed kliko.png has moved, but not yet in the code.

instead of "img/kliko.png", it should be "img/garbage/kliko.png"
Was just going to post about this :)
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

aiolos
Posts: 129
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos » Friday 12 January 2018 14:53

Thanks for noticing. I made a PR to fix it.
Contributor to Dashticz
More on my Github profile

geertvercamer
Posts: 18
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by geertvercamer » Friday 12 January 2018 16:39

There is a problem with the 'ophaalkalender' method for Belgium.

In the function mapGarbageType() a mapping is done from 'blue' to 'papier', however that should be 'PMD (line 350)'. 'brown' should map to 'papier'

In my region we only have 'pmd', 'restafval' and 'p-k', but there are more in ie. Gent:
- GFT: green
- Glas: yellow
- Grof huisvuil afroep: purple
- Kerstboom: lightgreen
- P-K: brown
- PMD: blue
- Restafval: grey

and it may be nice to have a config/setting variable for the date format.

Thanks.

User avatar
EdwinK
Posts: 1284
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 12 January 2018 16:47

aiolos wrote:
Friday 12 January 2018 14:53
Thanks for noticing. I made a PR to fix it.

I still miss a 'thank you' button :)

So, thank you
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

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

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Saturday 13 January 2018 18:35

It's merged :)
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
EdwinK
Posts: 1284
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 » Saturday 13 January 2018 21:12

Thanks again
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

maceddy
Posts: 5
Joined: Saturday 13 January 2018 22:07
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Hoogeveen
Contact:

Re: Dashticz - Module - Garbage collector

Post by maceddy » Saturday 13 January 2018 22:16

Any chance you will implement 'Area Reiniging'?

http://www.areareiniging.nl/home/bewone ... -digitaal/

It shows a Calendar in some sort of frame and there is a possibility to download iCal, but I can not get it to work..
You may use my ZIP and house number (request per DM please :-) ) if you plan on testing it.

Thanks!

Regdul
Posts: 10
Joined: Friday 28 October 2016 11:24
Target OS: Linux
Domoticz version: 3.8153
Location: Lemmer - Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by Regdul » Monday 15 January 2018 0:36

is there any change to add "de friese meren' garbage calendar? same as maceddy, i cant get it to work. there is an option for Ical

https://dfm.afvalalert.nl/#

thanks!

pkrabben
Posts: 53
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 » Monday 15 January 2018 12:57

Hi All,

De Garbage collector is not working anymore in Almere
can you add http://afvalportaal2.2go-mobile.com/mod ... /calendar/

Thanks In advance

aiolos
Posts: 129
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos » Tuesday 16 January 2018 1:44

pkrabben wrote:
Monday 15 January 2018 12:57
Hi All,

De Garbage collector is not working anymore in Almere
can you add http://afvalportaal2.2go-mobile.com/mod ... /calendar/

Thanks In advance
maceddy wrote:
Saturday 13 January 2018 22:16
Any chance you will implement 'Area Reiniging'?

http://www.areareiniging.nl/home/bewone ... -digitaal/

It shows a Calendar in some sort of frame and there is a possibility to download iCal, but I can not get it to work..
You may use my ZIP and house number (request per DM please :-) ) if you plan on testing it.

Thanks!
Both these garbage collection calendars are added. See this PR

The garbage company configuration is:
config['garbage_company'] = 'area';
and
config['garbage_company'] = 'almere';
Please note that for Almere the GFT & Rest are combined, they show up as a green bin, this can of course be changed with selecting another bin for this type of garbage.

Both calendars use the same (or a very alike) API as 'Twente Milieu'. I expect more calendars are based on this API, which makes it very easy to add them.

I tested this with a random address in Emmen and Almere, please let me know if you experience any difficulties (after a merge of course, it is not in there yet)

I saw the 'De Friese Meren' request. Looks do-able, but I could not implement it in the short time I had available right now. I will look into it later.
Contributor to Dashticz
More on my Github profile

pkrabben
Posts: 53
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 » Tuesday 16 January 2018 12:09

Thanks Almere is working

User avatar
EdwinK
Posts: 1284
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 » Tuesday 16 January 2018 19:25

Is it right that the colors of the trashbin's dont change anymore?
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

aiolos
Posts: 129
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos » Wednesday 17 January 2018 0:58

Regdul wrote:
Monday 15 January 2018 0:36
is there any change to add "de friese meren' garbage calendar? same as maceddy, i cant get it to work. there is an option for Ical

https://dfm.afvalalert.nl/#

thanks!
In this PR the support for this garbage calendar is added.
Configuration:
config['garbage_company'] = 'afvalalert';
It is very likely this company also works for other regions than 'De Friese Meren'
EdwinK wrote:
Tuesday 16 January 2018 19:25
Is it right that the colors of the trashbin's dont change anymore?
It does with my config (which is pretty standard for development) For various garbage companies and addresses I saw different colours of bins.
Contributor to Dashticz
More on my Github profile

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

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Wednesday 17 January 2018 10:20

PR is merged! :)
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
EdwinK
Posts: 1284
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 » Wednesday 17 January 2018 11:01

aiolos wrote:
Wednesday 17 January 2018 0:58
EdwinK wrote:
Tuesday 16 January 2018 19:25
Is it right that the colors of the trashbin's dont change anymore?
It does with my config (which is pretty standard for development) For various garbage companies and addresses I saw different colours of bins.

Then I've to look through all the settings (again).
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
EdwinK
Posts: 1284
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 » Wednesday 17 January 2018 11:29

Looks there is something more happening.

As seen on https://www.mijnafvalwijzer.nl/nl/3161LH/27/ today is 'grof vuil' and on Friday we have 'rest'. But on dashticz it shows all the dates as 'rest'. Only 'gft' is changing colors in the text.

Part of config.js

Code: Select all

config['garbage_company'] = 'mijnafvalwijzer';
config['garbage_icalurl'] = '0';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = '3161LH';
config['garbage_street'] = 'Jonkerhof';
config['garbage_housenumber'] = '27';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = 2;
config['garbage_width'] = '6';
config['garbage_hideicon'] = '0';
config['garbage_icon_use_colors'] = 1;
config['garbage_use_colors'] = 1;
config['garbage_use_names'] = 1;
config['garbage_use_cors_prefix'] = '0';

...

//Afval
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: 'Grof Vuil'},
//  black: 	{kliko: 'black', 	code: '#000000', name: 'Zwart'},
};

Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

geertvercamer
Posts: 18
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by geertvercamer » Wednesday 17 January 2018 14:48

Maybe this has also something to do with this function mapGarbageType()?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest