Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

User avatar
Rolandet
Posts: 95
Joined: Thursday 31 January 2019 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by Rolandet »

Lokonli wrote: Thursday 07 October 2021 21:33
Rolandet wrote: Thursday 07 October 2021 19:03
Lokonli wrote: Thursday 07 October 2021 19:00 It refreshes automatically. Can you send me your zip code+house number? Then I'll check.

Verstuurd vanaf mijn AC2003 met Tapatalk
8925LC 5

Thanks. Can't figure out what 's wrong here. It used to work just fine.
It's working on my system.

Can you open the following url in a browser, and post the output here?

Code: Select all

http://dashticz ip:port/vendor/dashticz/garbage/index.php?service=omrin&sub=undefined&zipcode=8925LC&nr=5&t=
(Use your own dashticz ip:port address)

Further:
What's your Dashticz version?
And your PHP version as reported by Dashticz?

You can find the version info via the Dashticz settings icon (upper right) -> info tab
OMFG
I'm posting in the wrong forum section

Mea culpa, I'll see myself out (im not using dashticz, I shouldn't be here)
Custodes Septentrionum
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Rolandet wrote: Thursday 07 October 2021 21:45
Lokonli wrote: Thursday 07 October 2021 21:33
Rolandet wrote: Thursday 07 October 2021 19:03

8925LC 5

Thanks. Can't figure out what 's wrong here. It used to work just fine.
It's working on my system.

Can you open the following url in a browser, and post the output here?

Code: Select all

http://dashticz ip:port/vendor/dashticz/garbage/index.php?service=omrin&sub=undefined&zipcode=8925LC&nr=5&t=
(Use your own dashticz ip:port address)

Further:
What's your Dashticz version?
And your PHP version as reported by Dashticz?

You can find the version info via the Dashticz settings icon (upper right) -> info tab
I"m not using Dashticz. I have it setup in Domoticz itself.
You are in the Dashticz forum. Please check the following link for Domoticz:
viewtopic.php?f=61&t=31295
User avatar
Rolandet
Posts: 95
Joined: Thursday 31 January 2019 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by Rolandet »

Lokonli wrote: Thursday 07 October 2021 21:48
You are in the Dashticz forum. Please check the following link for Domoticz:
viewtopic.php?f=61&t=31295
:lol: Tnx. I'm outahere
Last edited by Rolandet on Friday 22 October 2021 15:10, edited 1 time in total.
Custodes Septentrionum
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by sammyke007 »

Recycle (Belgium) stopped working since a day or three. Any idea why? Didn't change anything for the last weeks in my config.
User avatar
jvdz
Posts: 2208
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 »

I see they changed their data again.
Old test:

Code: Select all

$match = curlWebMatch("https://recycleapp.be".$match[1],'/var n="(\w*)",c=".api.v1.assets/');
new data secret now ends at:

Code: Select all

var n="Cr...CeAdEW",r="/api/v1/assets/"
...so that regex needs a change to accommodate for the change from "c=" to "r=" or just "..".

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by sammyke007 »

jvdz wrote: Friday 22 October 2021 18:18 I see they changed their data again.
Old test:

Code: Select all

$match = curlWebMatch("https://recycleapp.be".$match[1],'/var n="(\w*)",c=".api.v1.assets/');
new data secret now ends at:

Code: Select all

var n="Cr...CeAdEW",r="/api/v1/assets/"
...so that regex needs a change to accommodate for the change from "c=" to "r=" or just "..".

Jos
I don't know how many times they changed their code the last years. I'm really sorry, but also really thankful for always keeping the code up to date. Tnx Jos and Lokonli!
Last edited by sammyke007 on Friday 22 October 2021 18:40, edited 2 times in total.
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

sammyke007 wrote: Friday 22 October 2021 18:38
jvdz wrote: Friday 22 October 2021 18:18 I see they changed their data again.
Old test:

Code: Select all

$match = curlWebMatch("https://recycleapp.be".$match[1],'/var n="(\w*)",c=".api.v1.assets/');
new data secret now ends at:

Code: Select all

var n="Cr...CeAdEW",r="/api/v1/assets/"
...so that regex needs a change to accommodate for the change from "c=" to "r=" or just "..".

Jos
I don't know how many times they changed their code the last years. I'm really sorry, but also really thankful for always keeping the code up to date. Tnx Jos and Lokonli!
Thanks Jos!

I've fixed RecycleApp in latest beta
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Dashticz - Module - Garbage collector

Post by sammyke007 »

Lokonli wrote: Friday 22 October 2021 18:39
sammyke007 wrote: Friday 22 October 2021 18:38
jvdz wrote: Friday 22 October 2021 18:18 I see they changed their data again.
Old test:

Code: Select all

$match = curlWebMatch("https://recycleapp.be".$match[1],'/var n="(\w*)",c=".api.v1.assets/');
new data secret now ends at:

Code: Select all

var n="Cr...CeAdEW",r="/api/v1/assets/"
...so that regex needs a change to accommodate for the change from "c=" to "r=" or just "..".

Jos
I don't know how many times they changed their code the last years. I'm really sorry, but also really thankful for always keeping the code up to date. Tnx Jos and Lokonli!
Thanks Jos!

I've fixed RecycleApp in latest beta
Updated and working again, tnx!!!
User avatar
jvdz
Posts: 2208
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 »

sammyke007 wrote: Friday 22 October 2021 18:38 I don't know how many times they changed their code the last years. I'm really sorry, but also really thankful for always keeping the code up to date. Tnx Jos and Lokonli!
Hey we are doing "screen scraping" so this is what one can expect when there is no supported API option. ;)
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvklink »

Lokonli wrote: Thursday 26 August 2021 20:49
pvklink wrote: Wednesday 25 August 2021 16:24 Hi, after a long holiday i updated to the latest new dashticz beta (scriptautomatic), and have some (small) problems.
One of them is the garbage functionality.

dashticz 3.8.4
domoticz docker 2021.1 (13422)
python 3.7.3
php 7.4.22

This is my config that works with the latest beta from july, no idea what is wrong, but i also have problems with 112/alarmmeldingen and agenda/f1 agenda/football and some news stuff... these give no records or are hanging...
Looks if some sync programm is not working anymore in this beta version..
Can i go back to a previous version of dashticz, or is there a workaround?

@update with the manual install procedure i got this latest version working.
But With the automatic one i get the problems described

config['garbage_mapping'] = {
rest: ['grof', 'grey', 'rest', 'grijs','grijze'],
gft: ['gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biodégradables', 'snoei'],
pmd: ['plastic', 'pmd', 'verpakking', 'kunststof', 'valorlux'],
papier: ['papier', 'blauw', 'blue', 'recycling bin collection'],
kca: ['chemisch', 'kca','kga'],
brown: ['brown', 'verre'],
black: ['black', 'zwart'],
milieu: ['milieu'],
kerstboom: ['kerst'],};
config['garbage'] = {
gft: {kliko: 'green', code: '#FFFFFF', name: 'GFT (groene bak)', icon: 'img/garbage/kliko_green.png'},
pmd: {kliko: 'orange', code: '#FFFFFF', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
rest: {kliko: 'grey', code: '#FFFFFF', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
papier: {kliko: 'blue', code: '#FFFFFF', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
kca: {kliko: 'red', code: '#FFFFFF', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
brown: {kliko: 'brown', code: '#FFFFFF', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
black: {kliko: 'black', code: '#FFFFFF', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
milieu: {kliko: 'yellow', code: '#FFFFFF', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
kerstboom: {kliko: 'green', code: '#FFFFFF', name: 'Kerstboom', icon: 'img/garbage/tree.png'},};

blocks['mygarbage'] =
{
icalurl: '',
google_api_key:'',
garbage_calendar_id: '',
garbage_use_colors: 1,
garbage_use_names: 1,
garbage_icon_use_colors: 1,
garbage_hideicon: 0,
garbage_use_cors_prefix: 1,
company: 'avalex',
zipcode: 'xxxxxxxx',
street: 'xxxxxxxxxxxx',
housenumber: xx,
housenumberadd: '',
maxitems: 12,
width: 5
}
Looking at the issues you have with the auto install version I think it relates to the CORS proxy. And probably that is caused by the PHP version that is used. It might be Synology related. I'll do some tests and try to reproduce. Thanks for reporting.
HI @Lokonli,
Can you have a look at the CORS problems with dashticz docker ?
I just installed a fresh copy off the latest dashticz/apache-php with the dashticz automatic procedure and that went all fine
When adding my config everything (and thats a lot!) works except CORS stuff like garbage anwb and calenders), the first two are are hanging and the last empty. I dont know where to look, or what to try, do you have some tips so i can run some test or instal some extras in the apache/php container ?
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

pvklink wrote: Monday 01 November 2021 17:12
HI @Lokonli,
Can you have a look at the CORS problems with dashticz docker ?
I just installed a fresh copy off the latest dashticz/apache-php with the dashticz automatic procedure and that went all fine
When adding my config everything (and thats a lot!) works except CORS stuff like garbage anwb and calenders), the first two are are hanging and the last empty. I dont know where to look, or what to try, do you have some tips so i can run some test or instal some extras in the apache/php container ?
In chrome open DevTools by pressing F12.
Refresh Dashticz in the browser

On the Devtools console tab:
Which errors/messages/warnings are reported?

On the Devtools Network tab filter on cors.

You should see one or more network requests

1) What is the status code of the network request?

2) right click on the first cors network request->copy->copy link address

and paste the link address here.

3) Left click on the network request. Copy/paste the response here
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvklink »

ok, i will setup my test env for this, input is coming.... :-)
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvklink »

OK, i collected some outcome from chrome,

from console, network cors (first entry) and n entry that is red ,

see attachments,

hope these img are not to much downsized, otherwise i make new ones,
left click first cors.jpg
left click first cors.jpg (126.94 KiB) Viewed 1691 times
err_console.jpg
err_console.jpg (91.87 KiB) Viewed 1691 times
cors_error_right.jpg
cors_error_right.jpg (87.5 KiB) Viewed 1691 times
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvklink »

last image
networkcors.jpg
networkcors.jpg (95.21 KiB) Viewed 1691 times
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvklink »

perhaps these a better to read..

I dont get erros from the garbage , but the screen says loading on the screen and right below garbage undefined
left_click.txt
(135 Bytes) Downloaded 67 times
corss.jpg
corss.jpg (158.51 KiB) Viewed 1691 times
console.jpg
console.jpg (201.14 KiB) Viewed 1691 times
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvklink »

riht_click_err_corrs.jpg
riht_click_err_corrs.jpg (354.94 KiB) Viewed 1691 times
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvklink »

Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvklink »

and another grepped at the firstart start before f5 three times
another.jpg
another.jpg (177.01 KiB) Viewed 1691 times
apache2conf.txt
(7.05 KiB) Downloaded 44 times
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
peter68
Posts: 7
Joined: Wednesday 20 September 2017 12:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by peter68 »

Hi,
problem with loading garbage collector Venlo. found that Dashticz goes to https://www.venlo.nl/trash-removal-calendar/5944**/32. This site does not exists (anymore)..
Found that the working URL is https://www.venlo.nl/mijn-afvalkalender/5944**/32. How and were can i fix this?
Thanks, Peter
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

It's solved in Dashticz beta already.
I'll create a new master release later this month.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests