Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

git checkout beta
git pull


Sent from my SM-A320FL using Tapatalk

peet3kabo
Posts: 49
Joined: Thursday 05 July 2018 17:29
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by peet3kabo »

Lokonli wrote:
klaaspiet wrote: Wednesday 29 January 2020 21:25
peet3kabo wrote: Saturday 25 August 2018 11:15 Rob, is it possible to implement the Omrin afvalkalender?
There is an app available from them, maybe to get the info you need? App called "Omrin Afval"
Otherwise it's only a PDF that you get and then I will try to implement it as an Ical into Dashicz but have to figure out how that goes,
is there some progress for this item
Merged into beta.
Thanks a lot, will check

Verstuurd vanaf mijn ONEPLUS A6013 met Tapatalk

Alfagek
Posts: 26
Joined: Sunday 09 February 2020 15:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Leeuwarden
Contact:

Re: Dashticz - Module - Garbage collector

Post by Alfagek »

Lokonli wrote: Thursday 20 February 2020 19:16
klaaspiet wrote: Wednesday 29 January 2020 21:25
peet3kabo wrote: Saturday 25 August 2018 11:15 Rob, is it possible to implement the Omrin afvalkalender?
There is an app available from them, maybe to get the info you need? App called "Omrin Afval"
Otherwise it's only a PDF that you get and then I will try to implement it as an Ical into Dashicz but have to figure out how that goes,
is there some progress for this item
Merged into beta.
I updated to 3.4.0. (nice with the pics in the newsfeed 8-) )

I tried to use Omrin. But i only get a black stripe on the column. So he does something, but he doesn't show something.
What i'm doing wrong?

Code: Select all

config['garbage_company'] = 'omrin';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'My zipcode';
config['garbage_street'] = 'My street';
config['garbage_housenumber'] = '9';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';

Code: Select all

columns[6] = {};
columns[6]['blocks'] = [['garbage']];
columns[6]['width'] = 4;
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Try with:

Code: Select all

columns[6]['blocks'] = ['garbage'];
Alfagek
Posts: 26
Joined: Sunday 09 February 2020 15:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Leeuwarden
Contact:

Re: Dashticz - Module - Garbage collector

Post by Alfagek »

Lokonli wrote: Sunday 08 March 2020 11:16 Try with:

Code: Select all

columns[6]['blocks'] = ['garbage'];
Then i get a real nice mess :lol: . He is putting all the things off screen 1 and 2 on 1 screen.

But still a black stripe, with no info.

Even if i empty the complete config.js and only put the next in it, i only get a black stipe

Code: Select all

var config = {}
config['language'] = 'nl_NL'; 
config['domoticz_ip'] = 'http://xxx.xxx.xxx.xxx:8080';
config['domoticz_refresh'] = '3';
config['dashticz_refresh'] = '60';
config['auto_positioning'] = 0; // Use 0 thisifyou have defined your own columns
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd D MMM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['hide_topbar'] = 1;
config['last_update'] = 0;
//config['standby_after'] = 5;
config['default_news_url'] = 'http://www.nu.nl/rss/Algemeen';
config['garbage_company'] = 'omrin';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'My zipcode';
config['garbage_street'] = 'My street';
config['garbage_housenumber'] = '9';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';

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

var screens = {}
screens[1] = {}
screens[1]['columns'] = [6]
klaaspiet
Posts: 34
Joined: Tuesday 09 January 2018 8:29
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Harlingen
Contact:

Re: Dashticz - Module - Garbage collector

Post by klaaspiet »

Alfagek wrote: Sunday 08 March 2020 11:24
Lokonli wrote: Sunday 08 March 2020 11:16 Try with:

Code: Select all

columns[6]['blocks'] = ['garbage'];
Then i get a real nice mess :lol: . He is putting all the things off screen 1 and 2 on 1 screen.

But still a black stripe, with no info.

Even if i empty the complete config.js and only put the next in it, i only get a black stipe

Code: Select all

var config = {}
config['language'] = 'nl_NL'; 
config['domoticz_ip'] = 'http://xxx.xxx.xxx.xxx:8080';
config['domoticz_refresh'] = '3';
config['dashticz_refresh'] = '60';
config['auto_positioning'] = 0; // Use 0 thisifyou have defined your own columns
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd D MMM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['hide_topbar'] = 1;
config['last_update'] = 0;
//config['standby_after'] = 5;
config['default_news_url'] = 'http://www.nu.nl/rss/Algemeen';
config['garbage_company'] = 'omrin';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'My zipcode';
config['garbage_street'] = 'My street';
config['garbage_housenumber'] = '9';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';

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

var screens = {}
screens[1] = {}
screens[1]['columns'] = [6]

I got the same problem
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by Gianni »

why do you use double [[

columns[6]['blocks'] = [['garbage']];
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by Gianni »

Lokonli wrote: Thursday 23 January 2020 20:19
evandenbroek wrote: Thursday 23 January 2020 19:44 I cannot retrieve data for Uden. I got the message "Laden...". I'm using version 3.3.4 beta.
Fixed in latest beta.
still keep saying 'laden' on my version
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by Gianni »

looking in my apache error log i see this error

Code: Select all

[Mon Mar 09 00:03:22.403972 2020] [:error] [pid 3681] [client xxx.xxx.xxx.Xxx:xxxx] PHP Warning:  file_get_contents(https://www.ophaalkalender.be/calendar/findstreets/?query=xxxxxxxxxxxxxxxxxxxxxx): failed to open stream: operation failed in /var/www/html/homecontrol/vendor/dashticz/cors.php on line 3, referer: http://10.10.40.3/homecontrol/
this is line 3

echo file_get_contents($_SERVER["QUERY_STRING"]);
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Gianni wrote: Monday 09 March 2020 0:22 looking in my apache error log i see this error

Code: Select all

[Mon Mar 09 00:03:22.403972 2020] [:error] [pid 3681] [client xxx.xxx.xxx.Xxx:xxxx] PHP Warning:  file_get_contents(https://www.ophaalkalender.be/calendar/findstreets/?query=xxxxxxxxxxxxxxxxxxxxxx): failed to open stream: operation failed in /var/www/html/homecontrol/vendor/dashticz/cors.php on line 3, referer: http://10.10.40.3/homecontrol/
this is line 3

echo file_get_contents($_SERVER["QUERY_STRING"]);
I see you are using ophaalkalender.be. Probably something changed at their side. Can you provide a valid streetname, housenumber and zipcode? Then I'll test.
Gianni
Posts: 230
Joined: Saturday 21 July 2018 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Home@Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by Gianni »

pb @Lokonli
klaaspiet
Posts: 34
Joined: Tuesday 09 January 2018 8:29
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Harlingen
Contact:

Re: Dashticz - Module - Garbage collector

Post by klaaspiet »

Gianni wrote: Monday 09 March 2020 0:04 why do you use double [[

columns[6]['blocks'] = [['garbage']];
Aantekening 2020-03-09 112723.png
Aantekening 2020-03-09 112723.png (20.42 KiB) Viewed 1115 times
this is what i got


config['garbage_company'] = 'omrin';
config['garbage_icalurl'] = 0;
config['google_api_key'] = 0;
config['garbage_calendar_id'] = 0;
config['garbage_zipcode'] = 'xxxxxx';
config['garbage_street'] = 'xxxx';
config['garbage_housenumber'] = 'xx';
config['garbage_housenumberadd'] = 0;
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';


columns[3] = {}
columns[3]['blocks'] = [buttons.buienradar,'garbage']
columns[3]['width'] = 2;
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

klaaspiet wrote: Monday 09 March 2020 11:29
Gianni wrote: Monday 09 March 2020 0:04 why do you use double [[

columns[6]['blocks'] = [['garbage']];
Aantekening 2020-03-09 112723.png

this is what i got


config['garbage_company'] = 'omrin';
config['garbage_icalurl'] = 0;
config['google_api_key'] = 0;
config['garbage_calendar_id'] = 0;
config['garbage_zipcode'] = 'xxxxxx';
config['garbage_street'] = 'xxxx';
config['garbage_housenumber'] = 'xx';
config['garbage_housenumberadd'] = 0;
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';


columns[3] = {}
columns[3]['blocks'] = [buttons.buienradar,'garbage']
columns[3]['width'] = 2;
Did you already update to the latest beta? :

Code: Select all

git checkout beta
git pull
Can you remove the following line from your CONFIG.js:
config['garbage_housenumberadd'] = 0;

Can you send me your zipcode and housenumber by PM, then I'll test tonight.
Alfagek
Posts: 26
Joined: Sunday 09 February 2020 15:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Leeuwarden
Contact:

Re: Dashticz - Module - Garbage collector

Post by Alfagek »

Gianni wrote: Monday 09 March 2020 0:04 why do you use double [[

columns[6]['blocks'] = [['garbage']];
:oops: Stupid me.

That was the problem, now he is working.

@lokonli: Thanks for putting Omrin to it
Image
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

klaaspiet wrote: Sunday 08 March 2020 19:56
Alfagek wrote: Sunday 08 March 2020 11:24
Lokonli wrote: Sunday 08 March 2020 11:16 Try with:

Code: Select all

columns[6]['blocks'] = ['garbage'];
Then i get a real nice mess :lol: . He is putting all the things off screen 1 and 2 on 1 screen.

But still a black stripe, with no info.

Even if i empty the complete config.js and only put the next in it, i only get a black stipe

Code: Select all

var config = {}
config['language'] = 'nl_NL'; 
config['domoticz_ip'] = 'http://xxx.xxx.xxx.xxx:8080';
config['domoticz_refresh'] = '3';
config['dashticz_refresh'] = '60';
config['auto_positioning'] = 0; // Use 0 thisifyou have defined your own columns
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd D MMM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['hide_topbar'] = 1;
config['last_update'] = 0;
//config['standby_after'] = 5;
config['default_news_url'] = 'http://www.nu.nl/rss/Algemeen';
config['garbage_company'] = 'omrin';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'My zipcode';
config['garbage_street'] = 'My street';
config['garbage_housenumber'] = '9';
config['garbage_maxitems'] = '3';
config['garbage_width'] = '12';

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

var screens = {}
screens[1] = {}
screens[1]['columns'] = [6]

I got the same problem
There was a small bug in the Omrin garbage module for housenumbers > 9.
This has been fixed in latest beta.
JanvdW
Posts: 118
Joined: Saturday 21 December 2019 8:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by JanvdW »

When I implement the garbage collector I get a Dashticz message in red at the bottom of the screen: "Domoticz error! Garbage requires a PHP enabled web server".

I tried to uninstall php-xml, php-curl, php and apache2 and did a new install as mentioned on https://www.domoticz.com/wiki/Dashticz_ ... stallation, but it doesn't change. When I remove the garbage block from the Dashticz screen the error disappears.

I run Dashticz and Domoticz on a RPI with an OSMC image.

Does anyone know how this can be solved?
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

JanvdW wrote: Thursday 19 March 2020 10:43 When I implement the garbage collector I get a Dashticz message in red at the bottom of the screen: "Domoticz error! Garbage requires a PHP enabled web server".

I tried to uninstall php-xml, php-curl, php and apache2 and did a new install as mentioned on https://www.domoticz.com/wiki/Dashticz_ ... stallation, but it doesn't change. When I remove the garbage block from the Dashticz screen the error disappears.

I run Dashticz and Domoticz on a RPI with an OSMC image.

Does anyone know how this can be solved?
You are using outdated instructions.

Try this:
https://dashticz.readthedocs.io/en/mast ... ation.html
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,
It seems that Cure has changed to mijnafvalwijzer.nl.
How do i switch to this new garbage data provider ?

Not Working anymore : https://afvalkalender.cure-afvalbeheer. ... n/5731LB-6
Working (at least i get some json data) : http://json.mijnafvalwijzer.nl/?method= ... isnummer=6

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

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

peerkersezuuker wrote: Saturday 18 April 2020 15:18 Hi,
It seems that Cure has changed to mijnafvalwijzer.nl.
How do i switch to this new garbage data provider ?

Not Working anymore : https://afvalkalender.cure-afvalbeheer. ... n/5731LB-6
Working (at least i get some json data) : http://json.mijnafvalwijzer.nl/?method= ... isnummer=6

Regards
Peer
This one is easy (I hope). Switch to mijnafvalwijzer.nl :)

Code: Select all

config['garbage_company'] = 'mijnafvalwijzer';
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,
Thank you, that made a little fix (i think).
When i connect to /vendor/dashticz/garbage/index.php?service=mijnafvalwijzer&sub=undefined&zipcode=5731LB&nr=6&t=
i get a pretty json response :
Spoiler: show

Code: Select all

[
{
date: "2020-04-01",
title: "restafval"
},
{
date: "2020-04-06",
title: "pmd"
},
{
date: "2020-04-06",
title: "papier"
},
{
date: "2020-04-07",
title: "gft"
},
{
date: "2020-04-08",
title: "gft"
},
{
date: "2020-04-15",
title: "restafval"
},
{
date: "2020-04-20",
title: "pmd"
},
{
date: "2020-04-21",
title: "gft"
},
{
date: "2020-04-29",
title: "restafval"
},
{
date: "2020-05-04",
title: "pmd"
},
{
date: "2020-05-04",
title: "papier"
},
{
date: "2020-05-09",
title: "gft"
},
{
date: "2020-05-13",
title: "restafval"
},
{
date: "2020-05-18",
title: "pmd"
},
{
date: "2020-05-19",
title: "gft"
},
{
date: "2020-05-27",
title: "restafval"
},
{
date: "2020-06-02",
title: "gft"
},
{
date: "2020-06-06",
title: "pmd"
},
{
date: "2020-06-10",
title: "restafval"
},
{
date: "2020-06-15",
title: "papier"
},
{
date: "2020-06-15",
title: "pmd"
},
{
date: "2020-06-16",
title: "gft"
},
{
date: "2020-06-24",
title: "restafval"
},
{
date: "2020-06-29",
title: "pmd"
},
{
date: "2020-06-30",
title: "gft"
},
{
date: "2020-07-08",
title: "restafval"
},
{
date: "2020-07-13",
title: "pmd"
},
{
date: "2020-07-13",
title: "papier"
},
{
date: "2020-07-14",
title: "gft"
},
{
date: "2020-07-22",
title: "restafval"
},
{
date: "2020-07-27",
title: "pmd"
},
{
date: "2020-07-28",
title: "gft"
},
{
date: "2020-08-05",
title: "restafval"
},
{
date: "2020-08-10",
title: "pmd"
},
{
date: "2020-08-10",
title: "papier"
},
{
date: "2020-08-11",
title: "gft"
},
{
date: "2020-08-19",
title: "restafval"
},
{
date: "2020-08-24",
title: "pmd"
},
{
date: "2020-08-25",
title: "gft"
},
{
date: "2020-09-02",
title: "restafval"
},
{
date: "2020-09-07",
title: "pmd"
},
{
date: "2020-09-07",
title: "papier"
},
{
date: "2020-09-08",
title: "gft"
},
{
date: "2020-09-16",
title: "restafval"
},
{
date: "2020-09-21",
title: "pmd"
},
{
date: "2020-09-22",
title: "gft"
},
{
date: "2020-09-30",
title: "restafval"
},
{
date: "2020-10-05",
title: "pmd"
},
{
date: "2020-10-05",
title: "papier"
},
{
date: "2020-10-06",
title: "gft"
},
{
date: "2020-10-14",
title: "restafval"
},
{
date: "2020-10-19",
title: "pmd"
},
{
date: "2020-10-20",
title: "gft"
},
{
date: "2020-10-28",
title: "restafval"
},
{
date: "2020-11-02",
title: "pmd"
},
{
date: "2020-11-02",
title: "papier"
},
{
date: "2020-11-03",
title: "gft"
},
{
date: "2020-11-11",
title: "restafval"
},
{
date: "2020-11-16",
title: "pmd"
},
{
date: "2020-11-17",
title: "gft"
},
{
date: "2020-11-25",
title: "restafval"
},
{
date: "2020-11-30",
title: "papier"
},
{
date: "2020-11-30",
title: "pmd"
},
{
date: "2020-12-01",
title: "gft"
},
{
date: "2020-12-09",
title: "restafval"
},
{
date: "2020-12-14",
title: "pmd"
},
{
date: "2020-12-15",
title: "gft"
},
{
date: "2020-12-23",
title: "restafval"
},
{
date: "2020-12-28",
title: "pmd"
},
{
date: "2020-12-28",
title: "papier"
}
]
But the icon in my dashboard keeps "Loading" ("Laden" in Dutch)
And when i open inspect is see an error about the mapGarbageType :
Spoiler: show

Code: Select all

bundle.js?t=1:26 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in 1
    at isArrayLike (bundle.js?t=1:26)
    at Function.each (bundle.js?t=1:26)
    at mapGarbageType (<anonymous>:456:11)
    at <anonymous>:233:34
    at Array.map (<anonymous>)
    at Object.success (<anonymous>:229:14)
    at fire (bundle.js?t=1:37)
    at Object.fireWith [as resolveWith] (bundle.js?t=1:37)
    at done (bundle.js?t=1:37)
    at XMLHttpRequest.<anonymous> (bundle.js?t=1:37)
Regards Peer
Post Reply

Who is online

Users browsing this forum: mark.sellwood and 1 guest