Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

glsf91 wrote:After Herstart Toon, de box stays empty. Also after Opslaan instellingen. No text into the box, also no header that is getting data.

Toon is on 4.19.10. I use provider 15 and a local file which is also not shown.
can you PM' me a valid zipcode/housenr from your area?
member of the Toon Software Collective
PowerAce
Starting Member
Starting Member
Posts: 18
Joined: Thu Aug 31, 2017 1:21 pm

Re: Toon app: Afvalwijzer

Post by PowerAce »

Hi Toonz,

I can confirm that it is working again over here as well. Reinstall of Wastecollection v 4.19 worked like before. Only when it is downloading data the first time it is only showing two dates instead of a full page as it did before. Since January my community decided to collect "Restafval" and "GFT" separately were it was combined before. Maybe this is preventing the app to download the full list (mijnafvalwijzer.nl, PC 6904BN, 23)?

Thanks a lot once more!

PowerAce
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Will have a look later today....
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

glsf91 wrote:After Herstart Toon, de box stays empty. Also after Opslaan instellingen. No text into the box, also no header that is getting data.
Hi gls91,

Thanks for your PM, with your zipcode/housenr and waste collector 15, the app works fine here on Toon 1 and Toon 2.
Can you try maybe without the extra dates file, just to be certain it is not caused by that file?

Kind regardz,

Toonz
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

PowerAce wrote:Hi Toonz,

I can confirm that it is working again over here as well. Reinstall of Wastecollection v 4.19 worked like before. Only when it is downloading data the first time it is only showing two dates instead of a full page as it did before. Since January my community decided to collect "Restafval" and "GFT" separately were it was combined before. Maybe this is preventing the app to download the full list (mijnafvalwijzer.nl, PC 6904BN, 23)?

Thanks a lot once more!

PowerAce

Hi, they used a new description I haven't seen before.
You can easily add this yourself (I will include it in next release as well).

Add the following line to the function wasteTypeMijnafvalwijzer in WastecollectionApp.qml :

Code: Select all

                        case "groente, fruit en tuinafval": return 3;
Kind regardz,

Toonz
member of the Toon Software Collective
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: Afvalwijzer

Post by glsf91 »

Toonz wrote:
glsf91 wrote:After Herstart Toon, de box stays empty. Also after Opslaan instellingen. No text into the box, also no header that is getting data.
Hi gls91,

Thanks for your PM, with your zipcode/housenr and waste collector 15, the app works fine here on Toon 1 and Toon 2.
Can you try maybe without the extra dates file, just to be certain it is not caused by that file?

Kind regardz,

Toonz
With 4.10 version is was working fine, but after update not anymore.
I tried removing app en installing again. Tried first without extra dates file. It says it is getting data. But in the end no data is showed.

Do you have another wasteprovider with data I can try?

Is the previous version 4.10 also somewhere available?

When I try curl I see: curl: (60) SSL certificate problem: unable to get local issuer certificate
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

old version can be found on the forums fileserver: http://files.domoticaforum.eu/index.php ... ction-4.10

But I am pretty sure 4.10 won't work either but feel free to give it a try.
Upgrading to 5.0.4 is probably necessary due to better handling of SSL certificates (see elsewhere on this forum for details by TheHogNL).
The root cause is likely a change in the SSL certificates on the afvalalert website which is not supported by the old firmwares.

Kind regardz,

Toonz
member of the Toon Software Collective
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: Afvalwijzer

Post by glsf91 »

Toonz wrote:old version can be found on the forums fileserver: http://files.domoticaforum.eu/index.php ... ction-4.10

But I am pretty sure 4.10 won't work either but feel free to give it a try.
Upgrading to 5.0.4 is probably necessary due to better handling of SSL certificates (see elsewhere on this forum for details by TheHogNL).
The root cause is likely a change in the SSL certificates on the afvalalert website which is not supported by the old firmwares.

Kind regardz,

Toonz

Can I just install this with opkg install wastecollection_4.10-r0_qb2.ipk or do I first have to remove the current version (and how) ?
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

first remove the new one with:

Code: Select all

opkg remove wastecollection
and then install the old one with

Code: Select all

opkg install wastecollection_4.10-r0_qb2.ipk
member of the Toon Software Collective
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: Afvalwijzer

Post by glsf91 »

Toonz wrote:first remove the new one with:

Code: Select all

opkg remove wastecollection
and then install the old one with

Code: Select all

opkg install wastecollection_4.10-r0_qb2.ipk
It works again with this version. So it should not be a certificate problem.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Weird, will have a look at the differences
member of the Toon Software Collective
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: Afvalwijzer

Post by glsf91 »

Toonz wrote:Weird, will have a look at the differences
I will try a few versions higher. Will let you know which is the last version which is working.
glsf91
Member
Member
Posts: 184
Joined: Fri Sep 15, 2017 9:25 pm

Re: Toon app: Afvalwijzer

Post by glsf91 »

Toonz wrote:Weird, will have a look at the differences
Version 10 is the last working version. Version 11 is not working anymore.

I found the problem:

Code: Select all

	function readAfvalalert() {
	
		var i = 0;
		var j = 0;
		wasteDatesString = "";
		var wasteType = "";
		var alertDates = [];

		var xmlhttp = new XMLHttpRequest();
		console.log("************ start afvalalert");

		xmlhttp.onreadystatechange = function() {
			console.log("************ alvalalert state/status:" + xmlhttp.readyState + "/" + xmlhttp.status);
			if (xmlhttp.readyState == XMLHttpRequest.DONE) {
				console.log("************ alvalalert start processing:" + xmlhttp.responseText);
When adding these consolelog lines in my 4.10 version I have the same problem.
I don't know why but it looks like this is giving problems.

edit:
I installed 4.19 again and removed the above console.log lines.
Looks like it is working fine now.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Nice find, thx...
member of the Toon Software Collective
tripper1
Starting Member
Starting Member
Posts: 7
Joined: Thu Mar 14, 2019 6:28 pm

Re: Toon app: Afvalwijzer

Post by tripper1 »

Hi I have upgraded a Toon1 to fw 5.04 then rooted the device, than copied the new 5.04 resources files to the Toon and every thing looks OK.
I than installed the Toonstore pkg and every thing looks Ok. I installed several apps all works OK, accept the afvalwijzer. The app installed OK.
I could change the settings and put in nr 14 Rova as the reference. I disables the zipcode and house nr as wel as the belgian street nr.
In my environment ROVA Afvalkalender.htm is the references, so I copied the htm file to the /root/waste location, however the app is popping up with a white screen with no information. It looks like that the app could not access or find the Afval Kalender.htm.

Has there been any changes in Fw 5.04 why the afvalwijzer app could not access the htm file?

I have the same problem with creating my own logo. I created a small file of 20 by 100 pixels. Put it in the /root/logo.png however Toon is not showing any information after enabling this function. Also here it looks like that the app could not find or access the logo.png file.
Does someone have any idea what is going wrong?
Post Reply

Return to “Toon Apps”