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 17 January 2018 14:51

EdwinK wrote:
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

...
That makes sense. 'Grof' and 'Grijs' both resolve to a grey bin. A while ago someone also asked for a similar change in this behaviour and I think we have to refactor this a bit (and maybe even give the option to add some config options for this). Some of the requests are a bit conflicting, since bin colours and their type of garbage differ per region.
Contributor to Dashticz
More on my Github profile

User avatar
EdwinK
Posts: 1182
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 15:08

Off course.. Didn't even see that. Maybe I can fix this myself for now with just another color bin for one of them.
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 » Wednesday 17 January 2018 21:58

Thanks, I cannot get it to work though..
Spoiler: show
config['garbage_company'] = 'area';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '1234XX';
config['garbage_street'] = 'Streetname;
config['garbage_housenumber'] = '83';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '5';
config['garbage_hideicon'] = 0;
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;
It just gives 'Loading' next to the Kliko icon... Have I done something wrong? Also tried without Streetname and few other options.
aiolos wrote:
Tuesday 16 January 2018 1:44
maceddy wrote:
Saturday 13 January 2018 22:16
Any chance you will implement 'Area Reiniging'?

</ snip>
Both these garbage collection calendars are added. See this PR

The garbage company configuration is:
config['garbage_company'] = 'area';
and
config['garbage_company'] = 'almere';

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 22:09

maceddy wrote:
Wednesday 17 January 2018 21:58
Thanks, I cannot get it to work though..
Spoiler: show
config['garbage_company'] = 'area';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '1234XX';
config['garbage_street'] = 'Streetname;
config['garbage_housenumber'] = '83';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '5';
config['garbage_hideicon'] = 0;
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;
It just gives 'Loading' next to the Kliko icon... Have I done something wrong? Also tried without Streetname and few other options.
aiolos wrote:
Tuesday 16 January 2018 1:44
maceddy wrote:
Saturday 13 January 2018 22:16
Any chance you will implement 'Area Reiniging'?

</ snip>
Both these garbage collection calendars are added. See this PR

The garbage company configuration is:
config['garbage_company'] = 'area';
and
config['garbage_company'] = 'almere';
Can you send me your postalcode/housenumber (can also be your neighbours ;)) by PM, there might be a new type of garbage in there which I haven't seen yet and on which it is failing.

Edit: A fix for the waste api is available in a PR. There is also some preparation in it for a configurable mapping of the colours of the bin. More about that later, not sure about the solution yet, and I don't want people to have to update their config every time.
Contributor to Dashticz
More on my Github profile

Zoekm
Posts: 23
Joined: Friday 18 November 2016 12:34
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Zoekm » Thursday 18 January 2018 11:54

Zoekm wrote:
Friday 08 December 2017 14:10
Just recently installed Dashticz and I like it very much, great work! Yesterday was the first time the garbage ("Restafval") pickupdate passed by and I noticed that on the day of pickup of "Restafval", in my case Thursdays ("donderdag"), the block already shows the next pickup days/dates and garbage type, so on Thursday I see the next weeks messages and later. Yesterday, Thursday, they came to pickup "Restafval", but the Dashticz shows "GFT":"Thursday". For me this is confusing, is it possible that the first line displays the garbage type until that day has passed? Is there a configuration setting for this?
Updated Dahticz and now using iCal, same issue pops up again, see picture. At the day of pick-up (18th of January) it does not show what will be picked up.
Attachments
2018-01-18 afval.jpg
2018-01-18 afval.jpg (3.57 KiB) Viewed 1484 times

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 » Thursday 18 January 2018 20:24

Zoekm wrote:
Thursday 18 January 2018 11:54
Zoekm wrote:
Friday 08 December 2017 14:10
Just recently installed Dashticz and I like it very much, great work! Yesterday was the first time the garbage ("Restafval") pickupdate passed by and I noticed that on the day of pickup of "Restafval", in my case Thursdays ("donderdag"), the block already shows the next pickup days/dates and garbage type, so on Thursday I see the next weeks messages and later. Yesterday, Thursday, they came to pickup "Restafval", but the Dashticz shows "GFT":"Thursday". For me this is confusing, is it possible that the first line displays the garbage type until that day has passed? Is there a configuration setting for this?
Updated Dahticz and now using iCal, same issue pops up again, see picture. At the day of pick-up (18th of January) it does not show what will be picked up.
What iCal calendar do you use? I tried this with my own google calendar (as iCal link) and there the appointment for today shows up (no matter if it is a full-day appointment or just for an hour). It can be that the source only delivers the appointments in the future, which can mean that on the day itself, it is already disappeared. But that's just a guess.
Contributor to Dashticz
More on my Github profile

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 » Thursday 18 January 2018 21:48

aiolos wrote:
Wednesday 17 January 2018 22:09

Can you send me your postalcode/housenumber (can also be your neighbours ;)) by PM, there might be a new type of garbage in there which I haven't seen yet and on which it is failing.

Edit: A fix for the waste api is available in a PR. There is also some preparation in it for a configurable mapping of the colours of the bin. More about that later, not sure about the solution yet, and I don't want people to have to update their config every time.
It's working now! Is there anything to do about the days and date in American notation? It says 'monday' and 1/29/2018...
Sorry, I'm a Pietje Precies haha!!

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 19 January 2018 0:39

maceddy wrote:
Thursday 18 January 2018 21:48
aiolos wrote:
Wednesday 17 January 2018 22:09

Can you send me your postalcode/housenumber (can also be your neighbours ;)) by PM, there might be a new type of garbage in there which I haven't seen yet and on which it is failing.

Edit: A fix for the waste api is available in a PR. There is also some preparation in it for a configurable mapping of the colours of the bin. More about that later, not sure about the solution yet, and I don't want people to have to update their config every time.
It's working now! Is there anything to do about the days and date in American notation? It says 'monday' and 1/29/2018...
Sorry, I'm a Pietje Precies haha!!
You can use

Code: Select all

config['calendarlanguage'] = 'nl_NL';
to get it in Dutch.
Contributor to Dashticz
More on my Github profile

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 » Sunday 21 January 2018 14:11

aiolos wrote:
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.
thanks a lot!

snadderr
Posts: 1
Joined: Wednesday 24 January 2018 10:41
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Eindhoven, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by snadderr » Wednesday 24 January 2018 10:56

Hi all,

i'm trying to change some display names in the garbage module. This is working fine for almost all types of garbage, but i can't change the "luiers" name. It's not showing at all in the module when i enable the "use names" config. When i set the "use names" config to false, Luier is showing.

I'm using the "mijnafvalwijzer" service. When i open the url (http://dashticz.nl/afval/?service=mijna ... er&zipcode...) manually, i get the following output:

[{"date":"2018-01-05","title":"tuinafval"},{"date":"2018-01-05","title":"restafval"},{"date":"2018-01-05","title":"luiers"},{"date":"2018-01-05","title":"keukenafval"},{"date":"2018-01-12","title":"luiers"},{"date":"2018-01-12","title":"pmd"},

How do i change the "luier" name in the Dashticz garbage module? This is not working:

config['garbage'] = {
luiers: {kliko: 'green', code: '#375b23', name: 'LUIERS'},

For example, if i want to change "restafval" to "RESTAFVAL" i need to configure this:

config['garbage'] = {
rest: {kliko: 'green', code: '#375b23', name: 'RESTAFVAL'},

In the service URL i see also restafval (instead of rest), so i think luiers is also a different name, but i can't see where the match is made.

Thanks!

PeJeWe
Posts: 10
Joined: Monday 28 November 2016 21:52
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by PeJeWe » Tuesday 30 January 2018 21:58

My kliko icon stay's grey.


CONFIG.js

Code: Select all

//AFVAL PROGRAMMA
config['garbage'] = {
    gft: {kliko: 'green', code: '#98fb98', name: 'GFT'},
    pmd: {kliko: 'orange', code: '#faa500', name: 'Plastic'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval'},
    papier: {kliko: 'blue', code: '#0198E1', 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;
config['garbage_icon_use_colors'] = true;
the files are in the garbage map are
kliko_black.png
kliko_green.png
etc.

Buzzje
Posts: 5
Joined: Saturday 18 June 2016 21:17
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Buzzje » Wednesday 31 January 2018 1:17

How would I had the Den Haag calendar (e.g. http://huisvuilkalender.denhaag.nl/ical ... 0000517306)? Seems that the result (https://wedevise.nl/dashticz/ical/demo/ ... 0000517306) comes up empty?

naitsirhc
Posts: 32
Joined: Sunday 17 January 2016 12:20
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by naitsirhc » Thursday 01 February 2018 14:07

Hi,

I own a Synology which has Owncloud installed. I managed to get an Ical file from the "garbagewebsite" and imported it to my Owncloud calendar. I can create a link. (http://10.0.0.149/owncloud/remote.php/d ... /personal/)

Is it possible to import data by the garbage module from my Owncloud? I have to say that my Synology is protected by password.

Kind regards
Und Tschjuß

marcel19
Posts: 15
Joined: Sunday 08 January 2017 10:20
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by marcel19 » Thursday 01 February 2018 22:25

is it possible to get my city on this?

https://www.gad.nl/ophaalschema.aspx

rbeech
Posts: 2
Joined: Wednesday 06 December 2017 22:21
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by rbeech » Monday 05 February 2018 22:19

I got google ical working, thanks for previous help. However, my events have disappeared.

I think repeating events don't seem to be captured after the first event?

Martinvdm
Posts: 19
Joined: Saturday 29 August 2015 14:07
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Martinvdm » Thursday 08 February 2018 13:56

DvD wrote:
Saturday 27 May 2017 17:39
Is it possible to add reinis to the garbage collector ? thnx in advance

http://www.reinis.nl/postcodecheck/

Daniel
Did you ever got this working? I want to use Reinis also.

User avatar
gielie
Posts: 216
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Garbage collector

Post by gielie » Friday 09 February 2018 17:23

mijnafvalwijzer is not working anymore, i read something about adding an ical link, how do i change that?
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

Jendemen
Posts: 8
Joined: Tuesday 10 February 2015 22:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Jendemen » Friday 09 February 2018 18:22

Hi,

I installed Dashticz this week and want to use the garbage info.
Read throught all 23 pages of this forum, came across multiple problems with screen stays on 'loading', implemented the suggestions but.....
Also my screen just shows 'loading'. I removed everything in the CONFIG.js to prevent that something else is causing the problem.
Hope anyone has suggestions?

This is my config|:|
var config = {}
config['domoticz_ip'] = 'http://192.xx.xx.xx:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '50';
config['dashticz_refresh'] = '600';

config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;

config['garbage_company'] = 'mijnafvalwijzer';
config['garbage_zipcode'] = '4822RL';
config['garbage_housenumber'] = '15';

var columns = {};
columns['bar'] = {};
columns['bar']['blocks'] = ['logo','miniclock','settings'];

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

var screens = {};
screens[1] = {};
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1];

User avatar
RobertK
Posts: 17
Joined: Wednesday 31 January 2018 23:55
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Dashticz - Module - Garbage collector

Post by RobertK » Friday 09 February 2018 22:12

It's likely not a problem in the scripts, but rather an issue with mijnafvalwijzer itself (I have the same 'Loading...' issue myself
as well for the last 2 days).
Trying to load the json url in a plain browser does not return anything useful either.
Using the DEMO postalcode+number from the mijnafvalwijzer website and putting it into the json URL:
http://json.mijnafvalwijzer.nl/?method= ... oevoeging=

returns:
Op dit moment is het erg druk. Probeert u het later nog eens. Onze excuses voor het ongemak.

renerene
Posts: 116
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by renerene » Tuesday 13 February 2018 8:54

MijnAfvalwijzer is not working anymore. Noticed it some days ago.
GIT PULL tells me I got the latest Dashticz. The website works OK

Her is my config.js:

Code: Select all

config['garbage_company'] = 'mijnafvalwijzer';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'xxxxyy';
config['garbage_street'] = '<name>';
config['garbage_housenumber'] = '30';
config['garbage_maxitems'] = '2';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests