Page 21 of 48

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 January 2018 6:07
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

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 January 2018 6:42
by jdemas
Hi,

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

JD

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 January 2018 14:46
by Derik
Dear: aiolos
Not working...
Please will you share your code??

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 January 2018 18:48
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 2779 times

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 January 2018 19:01
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'

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 January 2018 21:45
by robgeerts
PR is merged :)

Re: Dashticz - Module - Garbage collector

Posted: Thursday 04 January 2018 11:27
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

Re: Dashticz - Module - Garbage collector

Posted: Thursday 04 January 2018 14:45
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';)

Re: Dashticz - Module - Garbage collector

Posted: Thursday 04 January 2018 19:38
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.

Re: Dashticz - Module - Garbage collector

Posted: Thursday 04 January 2018 22:04
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??

Re: Dashticz - Module - Garbage collector

Posted: Thursday 04 January 2018 23:19
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.

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 January 2018 13:52
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.

Re: Dashticz - Module - Garbage collector

Posted: Friday 05 January 2018 18:35
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

Re: Dashticz - Module - Garbage collector

Posted: Saturday 06 January 2018 13:06
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 ]

Re: Dashticz - Module - Garbage collector

Posted: Saturday 06 January 2018 14:03
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 :)

Re: Dashticz - Module - Garbage collector

Posted: Sunday 07 January 2018 23:49
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.

Re: Dashticz - Module - Garbage collector

Posted: Monday 08 January 2018 8:55
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.

Re: Dashticz - Module - Garbage collector

Posted: Monday 08 January 2018 21:30
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.

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 10 January 2018 14:32
by Moosjes
I have added the Garbage calander of Veldhoven to my Dashticz but all I get in the dashboard is 'Laden...'

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 10 January 2018 16:59
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