Page 45 of 48

Re: Dashticz - Module - Garbage collector

Posted: Thursday 07 October 2021 21:45
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)

Re: Dashticz - Module - Garbage collector

Posted: Thursday 07 October 2021 21:48
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

Re: Dashticz - Module - Garbage collector

Posted: Thursday 07 October 2021 21:53
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

Re: Dashticz - Module - Garbage collector

Posted: Friday 22 October 2021 15:09
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.

Re: Dashticz - Module - Garbage collector

Posted: Friday 22 October 2021 18:18
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

Re: Dashticz - Module - Garbage collector

Posted: Friday 22 October 2021 18:38
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!

Re: Dashticz - Module - Garbage collector

Posted: Friday 22 October 2021 18:39
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

Re: Dashticz - Module - Garbage collector

Posted: Friday 22 October 2021 18:41
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!!!

Re: Dashticz - Module - Garbage collector

Posted: Friday 22 October 2021 18:59
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. ;)

Re: Dashticz - Module - Garbage collector

Posted: Monday 01 November 2021 17:12
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 ?

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 02 November 2021 20:38
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

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 November 2021 15:43
by pvklink
ok, i will setup my test env for this, input is coming.... :-)

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 November 2021 16:27
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 2019 times
err_console.jpg
err_console.jpg (91.87 KiB) Viewed 2019 times
cors_error_right.jpg
cors_error_right.jpg (87.5 KiB) Viewed 2019 times

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 November 2021 16:27
by pvklink
last image
networkcors.jpg
networkcors.jpg (95.21 KiB) Viewed 2019 times

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 November 2021 16:39
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 71 times
corss.jpg
corss.jpg (158.51 KiB) Viewed 2019 times
console.jpg
console.jpg (201.14 KiB) Viewed 2019 times

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 November 2021 16:39
by pvklink
riht_click_err_corrs.jpg
riht_click_err_corrs.jpg (354.94 KiB) Viewed 2019 times

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 November 2021 16:40
by pvklink

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 03 November 2021 16:46
by pvklink
and another grepped at the firstart start before f5 three times
another.jpg
another.jpg (177.01 KiB) Viewed 2019 times
apache2conf.txt
(7.05 KiB) Downloaded 51 times

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 08 December 2021 22:00
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

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 08 December 2021 22:06
by Lokonli
It's solved in Dashticz beta already.
I'll create a new master release later this month.