Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Toon app: Afvalwijzer

Postby Toonz » Sat Mar 09, 2019 8:28 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1129
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby PowerAce » Sun Mar 10, 2019 11:05 am

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
PowerAce
Starting Member
Starting Member
 
Posts: 18
Joined: August 2017

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Mar 10, 2019 12:19 pm

Will have a look later today....
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1129
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Mar 10, 2019 7:26 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1129
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Mar 10, 2019 7:40 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1129
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby glsf91 » Sun Mar 10, 2019 7:42 pm

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
glsf91
Member
Member
 
Posts: 77
Joined: September 2017

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Mar 10, 2019 7:53 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1129
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby glsf91 » Sun Mar 10, 2019 7:55 pm

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) ?
glsf91
Member
Member
 
Posts: 77
Joined: September 2017

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Mar 10, 2019 7:58 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1129
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby glsf91 » Sun Mar 10, 2019 8:07 pm

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.
glsf91
Member
Member
 
Posts: 77
Joined: September 2017

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Mar 10, 2019 8:20 pm

Weird, will have a look at the differences
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1129
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby glsf91 » Sun Mar 10, 2019 8:26 pm

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: 77
Joined: September 2017

Re: Toon app: Afvalwijzer

Postby glsf91 » Sun Mar 10, 2019 9:04 pm

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.
glsf91
Member
Member
 
Posts: 77
Joined: September 2017

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Mar 10, 2019 11:01 pm

Nice find, thx...
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1129
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby tripper1 » Fri Mar 15, 2019 6:20 pm

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?
tripper1
Starting Member
Starting Member
 
Posts: 4
Joined: March 2019

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest