Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

jdemas
Posts: 15
Joined: Saturday 16 September 2017 9:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by jdemas »

rd4 doesn't work [solved]

i changed in garbage.js
line 222
'dddd DD MMMM YYYY' to 'dddd dd MMMM yyyy' and then it's working again.

Jeffrey
jdemas
Posts: 15
Joined: Saturday 16 September 2017 9:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by jdemas »

Hi,

I am sorry last thing wasn't the solution.
please ad Snoeiafval and kerstbomen as gabage types then it works.

JD
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by Derik »

Dear: aiolos
Not working...
Please will you share your code??
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
aiolos
Posts: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos »

Derik wrote: Wednesday 03 January 2018 14:46 Dear: aiolos
Not working...
Please will you share your code??
With this CONFIG.js:
Spoiler: show

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://ip: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']  = '6865ED';
config['garbage_housenumber']  = '100';

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];
and this custom.css
Spoiler: show

Code: Select all

.trash .state div.trashtoday      { font-size: 30px; font-weight: 3; margin-left: 29px; font-weight: bold; font-variant: small-caps;}
.trash .state div.trashtomorrow       { font-size: 27px; font-weight: 2; margin-left: 29px; font-variant: small-caps;}
.trash .state div.trashrow        { font-size: 25px; font-weight: 1; margin-left: 29px; font-variant: small-caps;}
.img.trashcan           { height: 65px; width: 65px; margin-left:0px; margin-top: 20px;}
div.col-icon { width: 100px !important; max-width: 100px !important;}
(it turns out you also need to add the 'max-width' property for div.col-icon if you have a smaller screen.)
I get this result:
Schermafbeelding 2018-01-03 om 17.45.38.png
Schermafbeelding 2018-01-03 om 17.45.38.png (76.26 KiB) Viewed 2781 times
Contributor to Dashticz
More on my Github profile
aiolos
Posts: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos »

jdemas wrote: Wednesday 03 January 2018 6:42 Hi,

I am sorry last thing wasn't the solution.
please ad Snoeiafval and kerstbomen as gabage types then it works.

JD
Can you show the relevant parts of your CONFIG.js? It is loading at my side. Kerstbomen just falls back to the 'black' option. (however, this might give an unexpected result if you use config['garbage_use_colors'])

Edit:
I created a PR with some changes:
- The 'kerstboom' garbage type is added (including icon)
- If a garbage type is not in the config['garbage'] setting, it is not shown anymore: For example: if you don't want to see the 'gft' garbage type: remove it from config['garbage']
- 'snoei' now falls also in the category 'gft'
Contributor to Dashticz
More on my Github profile
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 »

PR is merged :)
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by Derik »

Dear... aiolos

When i use your code my whole dash is going crazy....
So i think you have a strange part in your code.
Or i have..

I checkt the mine in the w3 html 5 checker:
https://validator.w3.org/#validate_by_i ... th_options

Code: Select all

Warning: This document appears to be written in English. Consider adding lang="en" (or variant) to the html start tag.

From line 1, column 1; to line 1, column 15

var config = {}↩confi

For further guidance, consult Declaring the overall language of a page and Choosing language tags.

If the HTML checker has misidentified the language of this document, please file an issue report or send e-mail to report the problem.

Error: Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>.

From line 1, column 1; to line 1, column 15

var config = {}↩confi

Error: Element head is missing a required instance of child element title.

From line 1, column 1; to line 1, column 15

var config = {}↩confi

Content model for element head:
If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content, of which no more than one is a title element and no more than one is a base element.
Otherwise: One or more elements of metadata content, of which exactly one is a title element and no more than one is a base element.
Only 1 warn en 2 errors from out the warn..
So i think my document is ok?
I do not understand what i can i do with this warn... [ so i think it is ok :-) ]


So i turn off the icon....

Can i have your compleet code ex. private settings..
So i can learn or check the different s between us...

xx
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
aiolos
Posts: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos »

Derik wrote: Thursday 04 January 2018 11:27 Dear... aiolos

When i use your code my whole dash is going crazy....
So i think you have a strange part in your code.
Or i have..

I checkt the mine in the w3 html 5 checker:
https://validator.w3.org/#validate_by_i ... th_options

Code: Select all

Warning: This document appears to be written in English. Consider adding lang="en" (or variant) to the html start tag.

From line 1, column 1; to line 1, column 15

var config = {}↩confi

For further guidance, consult Declaring the overall language of a page and Choosing language tags.

If the HTML checker has misidentified the language of this document, please file an issue report or send e-mail to report the problem.

Error: Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>.

From line 1, column 1; to line 1, column 15

var config = {}↩confi

Error: Element head is missing a required instance of child element title.

From line 1, column 1; to line 1, column 15

var config = {}↩confi

Content model for element head:
If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content, of which no more than one is a title element and no more than one is a base element.
Otherwise: One or more elements of metadata content, of which exactly one is a title element and no more than one is a base element.
Only 1 warn en 2 errors from out the warn..
So i think my document is ok?
I do not understand what i can i do with this warn... [ so i think it is ok :-) ]


So i turn off the icon....

Can i have your compleet code ex. private settings..
So i can learn or check the different s between us...

xx
The code I pasted is literally all I have in my CONFIG.js and custom.css to test it (you only need to adjust your domoticz information: config['domoticz_ip'] = 'http://ip:8080';)
Contributor to Dashticz
More on my Github profile
aiolos
Posts: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos »

JacEngels wrote: Monday 01 January 2018 22:05
timyboyb wrote: Monday 01 January 2018 21:57 Hello,

Since my town Groningen is also not digital available I try to get the ical from google working and make my own. He says only "loading". What to do? how to check the diffrent parts?
Maybe for Groningen this link can be used and implemented: https://gemeente.groningen.nl/afvalwijzer/groningen
A PR for the garbage collection in Groningen is ready for merge.

Configuration:

Code: Select all

config['garbage_company'] = 'groningen';
and of course the postal code and house number.
Contributor to Dashticz
More on my Github profile
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by Derik »

dear aiolos..
Something is not correct with your code.
In the wiki is more code then u use?
What part do i need yours or the latest in the wiki??

Code: Select all

config['garbage'] = {
  gft:	{kliko: 'green', 	code: 'green', name: 'GFT-Folie'},
  pmd: 	{kliko: 'orange', 	code: '#db5518', name: 'PMD'},
    rest: 	{kliko: 'grey', 	code: 'grey', name: 'Rest'},
    papier: 	{kliko: 'blue', 	code: 'blue', name: 'Papier'},
    kca:	{kliko: 'red', 		code: '#b21807', name: 'Chemisch afval'},
    brown: 	{kliko: 'brown', 	code: '#7c3607', name: 'Bruin'},
  black: 	{kliko: 'black',	code: '#000000', name: 'Zwart'},};
When i remove this part.. is see finale a kliko///
The wiki is not correct??
Pff cost me 2 days..

thanks/..

Hope the switch is going well without this part code??
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
timyboyb
Posts: 8
Joined: Friday 11 August 2017 21:12
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by timyboyb »

aiolos wrote:
JacEngels wrote: Monday 01 January 2018 22:05
timyboyb wrote: Monday 01 January 2018 21:57 Hello,

Since my town Groningen is also not digital available I try to get the ical from google working and make my own. He says only "loading". What to do? how to check the diffrent parts?
Maybe for Groningen this link can be used and implemented: https://gemeente.groningen.nl/afvalwijzer/groningen
A PR for the garbage collection in Groningen is ready for merge.

Configuration:

Code: Select all

config['garbage_company'] = 'groningen';
and of course the postal code and house number.
Oh seriously, that is great. Testing will be next week but thanks in advanced.
aiolos
Posts: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos »

Derik wrote: Thursday 04 January 2018 22:04 dear aiolos..
Something is not correct with your code.
In the wiki is more code then u use?
What part do i need yours or the latest in the wiki??

Code: Select all

config['garbage'] = {
  gft:	{kliko: 'green', 	code: 'green', name: 'GFT-Folie'},
  pmd: 	{kliko: 'orange', 	code: '#db5518', name: 'PMD'},
    rest: 	{kliko: 'grey', 	code: 'grey', name: 'Rest'},
    papier: 	{kliko: 'blue', 	code: 'blue', name: 'Papier'},
    kca:	{kliko: 'red', 		code: '#b21807', name: 'Chemisch afval'},
    brown: 	{kliko: 'brown', 	code: '#7c3607', name: 'Bruin'},
  black: 	{kliko: 'black',	code: '#000000', name: 'Zwart'},};
When i remove this part.. is see finale a kliko///
The wiki is not correct??
Pff cost me 2 days..

thanks/..

Hope the switch is going well without this part code??
It looks like the code on the wiki is missing the icon part. The default value in the current codebase is

Code: Select all

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'},
        kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
        brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
        black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
        milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
        kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},
};
But remember: if you don't change anything in there, you don't need it in your CONFIG.js (and it is better to keep your CONFIG.js as little as possible, since future changes otherwise might require you to update your config (as you can see now, since the icon part is added a while ago)). Also for debugging it is easier to start with a small config and add the lines part by part. That's why I only put in the bare minimum, where the code from above was not present.
Contributor to Dashticz
More on my Github profile
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by htilburgs »

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
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by Derik »

i don't use the icon settings any more...
Not working stable unfortunately....
The lines ar good for my wife...
So i have more space left for more nice stuff..

Only a difficult part because it is free time for the developers..
Only when the wiki is not correct to last beta.
Then i think there are lost of problems
use the wiki or not?
Or some where in a thread you can find the answer.
sorry for my feedback. Only when there is a important change in the code.
Please update the wiki, or remove the old settings.. [ so there will be les questions on the forum [ i think ]
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by AndreFR »

hi Rob,

is it possible to add: afvalkalender.container-beheer.nl (that's for the Rotterdam area) as the mijnafvalwijzer won't work (mijnafvalwijzer is only pointing to a 'demo'). Thanks in advance :)
aiolos
Posts: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos »

AndreFR wrote: Saturday 06 January 2018 14:03 hi Rob,

is it possible to add: afvalkalender.container-beheer.nl (that's for the Rotterdam area) as the mijnafvalwijzer won't work (mijnafvalwijzer is only pointing to a 'demo'). Thanks in advance :)
Hi Andre,

At first site it looks tricky to add this. Do you know if there is an app that can also be used to get the information? It might be easier to see how the app fetches the data.

Thanks.
Contributor to Dashticz
More on my Github profile
AndreFR
Posts: 14
Joined: Thursday 30 November 2017 19:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by AndreFR »

aiolos wrote: Sunday 07 January 2018 23:49
AndreFR wrote: Saturday 06 January 2018 14:03 hi Rob,

is it possible to add: afvalkalender.container-beheer.nl (that's for the Rotterdam area) as the mijnafvalwijzer won't work (mijnafvalwijzer is only pointing to a 'demo'). Thanks in advance :)
Hi Andre,

At first site it looks tricky to add this. Do you know if there is an app that can also be used to get the information? It might be easier to see how the app fetches the data.

Thanks.
hi Aiolos, unfortunately the app 'Afvalwijzer' isn't working as it's pointing to the 'mijnafvalwijzer' website :( de link I've given is the only one working.
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 »

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.
Moosjes
Posts: 6
Joined: Wednesday 10 January 2018 14:31
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Moosjes »

I have added the Garbage calander of Veldhoven to my Dashticz but all I get in the dashboard is 'Laden...'
Moosjes
Posts: 6
Joined: Wednesday 10 January 2018 14:31
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Moosjes »

Moosjes wrote: Wednesday 10 January 2018 14: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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest