Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Lokonli
Posts: 2261
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

The json output looks fine.

Your zipcode and housenumber are working on my system, so it's difficult for me to reproduce.

Did you maybe define your own garbage_mapping and/or your own garbage type?
If yes, can you post them here.
peerkersezuuker
Posts: 70
Joined: Monday 14 December 2015 22:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Mierlo
Contact:

Re: Dashticz - Module - Garbage collector

Post by peerkersezuuker »

Hi Lokonli,
I had no garbage mapping configured.......
So i put the one from the https://dashticz.readthedocs.io/en/mast ... rbage.html in my CONFIG.js and it is working now.

So resume : cure changed to mijnafvalwijzer and put the garbage mapping in the CONFIG.js

Thanks for the support.

Regards
Peer
Kencirot
Posts: 5
Joined: Wednesday 05 June 2019 14:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Kencirot »

I started using Dashticz today and I really love the customization of it.

Currently having some issues with the garbage collection module but after a good 7 hours I need to give up on getting this too work.

Major things I did:
Upgrade to latest Beta today (
Apache2 up and running on a Raspberry 3B
Added ical from waste company (blink) to google calendar and trying to share (public share and private share of ical file)
Reverse engineering garbage.js file (gemertbakeldinsdag calendar is outdated by 2 year)
When I picked some random company (best) and a random address in Best it was the only time I saw an actual date popping up.
Tried mapping with capitals and without.


Over the 1000th refreshs I have seen 999 times "loading...." in the block.

I will copy the config I currently have which I know can't work because of outdated calender.

Code: Select all

config['garbage_company'] = 'gemertbakeldinsdag';
config['garbage_icalurl'] = '';
config['google_api_key'] = '';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = '5421GS;
config['garbage_street'] = 'heijtsveld';
config['garbage_housenumber'] = '1';
config['garbage_maxitems'] = '6';
config['garbage_width'] = '12';
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'] = 1;

config['garbage_mapping'] = {
	rest: ['Restafval'],
    pmd: ['Plastic, Metaal en Drankkartons'],
    gft: ['GFT - Gemert-Bakel'],
    Papier: ['Papier']
  }

config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'}
};
Anybody have an idea how I get this module to work?
There is a ical available for the upcoming 50 days for my area (https://www.mijnblink.nl/ical/1652200000006949) but no luck getting the info in Dashticz (neither with added and sharing google).
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

Can you try with the following settings:

Code: Select all

config['garbage_company'] = 'ical';
config['garbage_icalurl'] = 'https://www.mijnblink.nl/ical/1652200000006949';
Blah blah blah
Kencirot
Posts: 5
Joined: Wednesday 05 June 2019 14:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Kencirot »

This give me "loading..." with no end.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

Kencirot wrote: Sunday 24 May 2020 22:53 This give me "loading..." with no end.
Can you check if PHP is enabled?
For more info see: https://dashticz.readthedocs.io/en/beta ... stall.html
Blah blah blah
Kencirot
Posts: 5
Joined: Wednesday 05 June 2019 14:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Kencirot »

Yes, it is.
Index.php with

Code: Select all

<?php echo "hello world"; ?>
on apache working perfect when I visit with a browser.
Attachments
phpinfo.PNG
phpinfo.PNG (85.63 KiB) Viewed 1454 times
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

I just tried with only these settings without a problem:

Code: Select all

config['garbage_company'] = 'ical';
config['garbage_icalurl'] = 'https://www.mijnblink.nl/ical/1652200000006949';
Can you remove/comment out all garbage settings in your config.js and just use these two lines to see if it will load the calendar.
Blah blah blah
Kencirot
Posts: 5
Joined: Wednesday 05 June 2019 14:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Kencirot »

It is finally working now with using only those lines.

I want to all the config settings and found this in my list to be the problem:

Code: Select all

config['default_cors_url'] = '0';
Thanks
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

Glad it’s working.
Blah blah blah
jdenotter
Posts: 1
Joined: Wednesday 03 June 2020 9:17
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by jdenotter »

Hi,

I have been playing with dashticz for about 5 weeks now and I'm very happy with the possibilities!
I already introduced it to the family with a tablet which is always on in the living-room with home automation control and info like public-transport, family agenda, links to school information pages etc...

But 1 thing I really want to get up and running is the garbage calendar.
The issue is specific to Meerlanden and my adres. If I use i.e. omrin and an address in Leeuwarden It works.
My address is 1432PC 49...
For testing I use the latest beta version (3.4.9.1).
For the family page I have the master version running.

I hope someone can help me out.

Rgrds,
Jacco.
------------------------------------------------
Als het niet kan zoals het moet, dan moet het zoals het kan!
------------------------------------------------
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by jvdz »

Hi Jacco,

Your Afvalkalendar for Meerlanden has been moved from provider OPZET to XIMMIO. I am not familiar with this garbage collector solution as I have written a separate GarbageCalendar solution, but though I mentioning it so you can investigate how to make this work with this Garbage Collector.
Here are the recent discussion about this change: https://www.domoticz.com/forum/search.p ... sf=msgonly

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Lokonli
Posts: 2261
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Dashticz is not using XIMMIO yet, so that will requiring some recoding/testing.

It doesn't look too complex...

Any volunteers from the Meerlanden region?
nitro
Posts: 11
Joined: Sunday 27 October 2019 13:42
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by nitro »

I have added the garbage collector to my Dashticz, only the only thing it does is loading??
Filled all the fields with my home address but it's still loading.
Also tried with the ICS to add is as well but the same result.

Dashticz V3.0.6 master
Domoticz version: 2020.2
dzVents version: 3.0.2
Python version: 3.6.9
PHP version: 7.3.10

Hopefully you can help me.
Lokonli
Posts: 2261
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

nitro wrote: Thursday 18 June 2020 14:31 I have added the garbage collector to my Dashticz, only the only thing it does is loading??
Filled all the fields with my home address but it's still loading.
Also tried with the ICS to add is as well but the same result.

Dashticz V3.0.6 master
Domoticz version: 2020.2
dzVents version: 3.0.2
Python version: 3.6.9
PHP version: 7.3.10

Hopefully you can help me.
Your Dashticz version is pretty old. First try the latest master:
https://github.com/Dashticz/dashticz

What's your garbage company and postal code?
nitro
Posts: 11
Joined: Sunday 27 October 2019 13:42
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by nitro »

Maybe a dumb question, but how can i update Dashticz?
If i check the docs the only thing i see is:
Update from a previous version
If the default page is working then you can copy your previous CONFIG.js, custom.css, custom.js from your previous installation to dashticz/custom.

Just refresh your browser, and your new dashboard is shown. No need to rebuild the docker container.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

nitro wrote: Thursday 18 June 2020 15:00 Maybe a dumb question, but how can i update Dashticz?
If i check the docs the only thing i see is:
Update from a previous version
If the default page is working then you can copy your previous CONFIG.js, custom.css, custom.js from your previous installation to dashticz/custom.

Just refresh your browser, and your new dashboard is shown. No need to rebuild the docker container.
Option 1. From terminal you can add the following command in Dashticz folder:

Code: Select all

git pull
Option 2. Download zip file from GitHub and copy in your Dashticz folder. Create backup of your custom folder(s) first.
Blah blah blah
nitro
Posts: 11
Joined: Sunday 27 October 2019 13:42
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by nitro »

Thx for the update.
I have updated to the last version V3.5 Master.
But the garbage collector is still loading.
nitro
Posts: 11
Joined: Sunday 27 October 2019 13:42
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by nitro »

Lokonli wrote: Thursday 18 June 2020 14:52
nitro wrote: Thursday 18 June 2020 14:31 I have added the garbage collector to my Dashticz, only the only thing it does is loading??
Filled all the fields with my home address but it's still loading.
Also tried with the ICS to add is as well but the same result.

Dashticz V3.0.6 master
Domoticz version: 2020.2
dzVents version: 3.0.2
Python version: 3.6.9
PHP version: 7.3.10

Hopefully you can help me.
Your Dashticz version is pretty old. First try the latest master:
https://github.com/Dashticz/dashticz

What's your garbage company and postal code?
Garbage company = uden
postal code = 5402

Edit:
It is working now, in the command i had a space between the numbers and the characters. That was the problem.
config['garbage_zipcode'] = '5402 XX';

So it need to be:
config['garbage_zipcode'] = '5402XX';
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by GilbertvH »

Hi all,

Thanks to this forum I was able to create my own Dashticz dashboard with all kind of plugins. One of them is the garbage collector.
Works like a charm (De Afval App) but the prefix is in English format while every setting is in 'nl_NL'. Can someone tell me how to change this in Dutch date prefix?
Opera Snapshot_2020-06-23_110418_192.168.178.24.png
Opera Snapshot_2020-06-23_110418_192.168.178.24.png (188.82 KiB) Viewed 1286 times
EDIT: Nevermind. Got it fixed!
Post Reply

Who is online

Users browsing this forum: madpatrick and 1 guest