Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by michel30 »

You mean this link for RD4.

Code: Select all

 https://www.rd4info.nl/NSI/Burger/aspx/afvalkalender_public.aspx 
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

michel30 wrote:You mean this link for RD4.

Code: Select all

 https://www.rd4info.nl/NSI/Burger/aspx/afvalkalender_public.aspx 
Yes , including your zipcode and housenr
member of the Toon Software Collective
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by michel30 »

@Toonz,

I want to install this one manual in ssh but I received the following error message:

Code: Select all

Upgrading wastecollection on root from 2.5-r0 to 2.6-r0...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for wastecollection:
 * 	tsc-certificates (>= 1.0.0) * 
 * opkg_install_cmd: Cannot install package wastecollection.
jozg
Member
Member
Posts: 56
Joined: Wed Nov 15, 2017 1:13 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by jozg »

michel30 wrote:@Toonz,

I want to install this one manual in ssh but I received the following error message:

Code: Select all

Upgrading wastecollection on root from 2.5-r0 to 2.6-r0...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for wastecollection:
 * 	tsc-certificates (>= 1.0.0) * 
 * opkg_install_cmd: Cannot install package wastecollection.
Hello Michel,

Download and install the tsc-certificates ipk first.
I found it at: http://files.domoticaforum.eu/index.php ... ates-1.0.0

My afvalwijzer is working great, thanks.

Regards,
gijsje
Starting Member
Starting Member
Posts: 25
Joined: Sun Dec 03, 2017 12:52 am

Re: Toon app: waste collection (Afvalwijzer)

Post by gijsje »

Hi,

I use mijnafavalwijzer to get the info but it shows the dates but it also shows "onbekend"
Can you have a look?
Postcode 5056GJ nr 10

Thanks in advance
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

michel30 wrote:@Toonz,

I want to install this one manual in ssh but I received the following error message:

Code: Select all

Upgrading wastecollection on root from 2.5-r0 to 2.6-r0...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for wastecollection:
 * 	tsc-certificates (>= 1.0.0) * 
 * opkg_install_cmd: Cannot install package wastecollection.
Michel,

I haven't released 2.6 yet by the way, I haven't fully tested it.
This ipk version you have is work in progress and is not the final version.
Also the installer needs further work.
So proceed at your own risk.

When released and installed via ToonStore all dependencies will automatically be installed as well.

In general, I strongly advise against manual installation of unreleased versions.
We often put unfinished stuff there to try out before releasing to ToonStore.

Kind regardz,

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

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

gijsje wrote:I use mijnafavalwijzer to get the info but it shows the dates but it also shows "onbekend"
Can you have a look?
Done. Caused by the fact that you combined collection of paper/plastic and gft/restafval.
Will be in the final version 2.6 when released via ToonStore.
member of the Toon Software Collective
gijsje
Starting Member
Starting Member
Posts: 25
Joined: Sun Dec 03, 2017 12:52 am

Re: Toon app: waste collection (Afvalwijzer)

Post by gijsje »

Toonz wrote:
gijsje wrote:I use mijnafavalwijzer to get the info but it shows the dates but it also shows "onbekend"
Can you have a look?
Done. Caused by the fact that you combined collection of paper/plastic and gft/restafval.
Will be in the final version 2.6 when released via ToonStore.
Thanks
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by michel30 »

jozg wrote:
michel30 wrote:@Toonz,

I want to install this one manual in ssh but I received the following error message:

Code: Select all

Upgrading wastecollection on root from 2.5-r0 to 2.6-r0...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for wastecollection:
 * 	tsc-certificates (>= 1.0.0) * 
 * opkg_install_cmd: Cannot install package wastecollection.
Hello Michel,

Download and install the tsc-certificates ipk first.
I found it at: http://files.domoticaforum.eu/index.php ... ates-1.0.0

My afvalwijzer is working great, thanks.

Regards,

Thanks for this information, I will wait when Toonz release the software to make sure that everything works.
jeltel
Starting Member
Starting Member
Posts: 18
Joined: Tue Dec 05, 2017 10:16 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by jeltel »

I've added a dar.nl waste collection agenda via the manual. The sh scripts downloads the waste_calendar.ics to /root/waste.
I've set the 'afvalverwerker' to 7, but it doesn't work. Also setting it to 0 (the manual) options gives an empty tile.

You can get a sample calendar.ics at: https://afvalkalender.dar.nl/ical/0268200000042288
Maybe the layout has changed?

What can be done?
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

jeltel wrote:I've added a dar.nl waste collection agenda via the manual. The sh scripts downloads the waste_calendar.ics to /root/waste.
I've set the 'afvalverwerker' to 7, but it doesn't work. Also setting it to 0 (the manual) options gives an empty tile.

You can get a sample calendar.ics at: https://afvalkalender.dar.nl/ical/0268200000042288
Maybe the layout has changed?

What can be done?
dar.nl changed it's website. I implemented the new format already in the upcoming release 2.6 and also retrieving the data directly via https.
So no need for the download scripts anymore.
member of the Toon Software Collective
jeltel
Starting Member
Starting Member
Posts: 18
Joined: Tue Dec 05, 2017 10:16 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by jeltel »

Toonz wrote:
jeltel wrote:I've added a dar.nl waste collection agenda via the manual. The sh scripts downloads the waste_calendar.ics to /root/waste.
I've set the 'afvalverwerker' to 7, but it doesn't work. Also setting it to 0 (the manual) options gives an empty tile.

You can get a sample calendar.ics at: https://afvalkalender.dar.nl/ical/0268200000042288
Maybe the layout has changed?

What can be done?
dar.nl changed it's website. I implemented the new format already in the upcoming release 2.6 and also retrieving the data directly via https.
So no need for the download scripts anymore.
I'll wait for it then. Thanks.
hubble
Starting Member
Starting Member
Posts: 4
Joined: Mon Jan 08, 2018 11:36 am

Re: Toon app: waste collection (Afvalwijzer)

Post by hubble »

Hi Toonz.

I added some code to support the Gemeente Drimmelen Afvalkalendar....
Maybe you can use this code to add Gemeente Drimmelen as wasteCollector 18 in your new upcoming release 2.6


https://drimmelen.nl/afvalkalender
ics: https://drimmelen.nl/trash-removal-calendar/4844AT/9

I downloaded and placed the ics files as mentioned in post viewtopic.php?f=87&t=11235#p82536 in stored it on my toon: /root/waste/waste_calendar.ics

Added two new functions to WastecollectionApp.qml and an addtional action if the wasteCollector = 18.....

Code: Select all


      // Added to function readWasteDates() to process Gemeente Drimmelen

               if (wasteCollector == "18") {
                       readDrimmelen();     
               }                            


      function wasteTypeDrimmelen(shortName)
      {
               switch (shortName) {
                       case "GFT": return 3;
                       case "Pap": return 2;
                       case "Pla": return 1;
                       case "Res": return 0;
                       default: break;
               }
               return "?";
      }

      function readDrimmelen() {                                                                                                                                                         
                                                                                                                                                                                         
              var i = 0;
              var j = 0;
              wasteDatesString = "";
              var wasteType = "";
              var DrimmelenDates = [];
              
              var xmlhttp = new XMLHttpRequest(); 
              xmlhttp.onreadystatechange = function() { 
                      if (xmlhttp.readyState == XMLHttpRequest.DONE) { 
                              var aNode = xmlhttp.responseText;
                              
                              // read specific waste collection dates                                                                                                                    

                              i = aNode.indexOf("DTSTART;VALUE=DATE:");                                                                                                                  

                              if ( i > 0 ) {
                                      while (i > 0) {
                                              j = aNode.indexOf("SUMMARY", i); 
                                              wasteType = wasteTypeDrimmelen(aNode.substring(j+27, j+30)); 
                                              DrimmelenDates.push(aNode.substring(i+19, i+23) + "-" + aNode.substring(i+23, i+25) + "-" + aNode.substring(i+25, i+27) + "," + wasteType);                                                                                                                                                                                         
                                              
                                              // Get next event
                                              i = aNode.indexOf("DTSTART;VALUE=DATE:", i + 19);
                                      }
                              }
                              var tmp = WastecollectionJS.sortArray(DrimmelenDates); 

                              for (i = 0; i < tmp.length; i++) {
                                      wasteDatesString = wasteDatesString + tmp[i] + "\n";
                              }
                              writeWasteDates();
                      }
              }
              xmlhttp.open("GET", "file:///root/waste/waste_calendar.ics", true);
              xmlhttp.send();
      } 

Grz.
Hubble
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

hubble wrote:Hi Toonz.

I added some code to support the Gemeente Drimmelen Afvalkalendar....
Maybe you can use this code to add Gemeente Drimmelen as wasteCollector 18 in your new upcoming release 2.6
Grz.
Hubble
Sure will add as '19' (18 is just given away to zrd.nl). I like these kind of change requests :-)

Just done, and as a bonus it will retrieve the calendar via https directly, no need to download the calendar yourself.
I just need to update the certificates package as well to include the one needed for your site.

Watch this space....

Kind regardz,

Toonz
Last edited by Toonz on Tue Jan 09, 2018 11:40 pm, edited 1 time in total.
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1876
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

Hi all,

Finally the release 2.6 is available on ToonStore.
Changelog 2.6:
- removed recyclemanager.nl provider
- implemented automatic retrieval via https for rd4info.nl, now need to enter zipcode and housenr in the config screen
- implemented automatic retrieval via https for cure-afvalbeheer.nl,cyclusnv.nl, dar.nl, zrd.nl and meerlanden.nl
- added provider afvalalert.nl (provider 15: enter zipcode/house nr in config screen)
- added provider zrd.nl (provider 18: enter kalender id in configscreen)
- added provider drimmelen.nl (provider 19: enter zipcode/housenr in config screen)
- added ssl certificate for drimmelen.nl

For reference the sheet with config requirements for each waste provider:
WasteCollection_Config manual.zip
(9.35 KiB) Downloaded 378 times
Kind regardz,

Toonz
Last edited by Toonz on Fri Jan 12, 2018 4:29 pm, edited 2 times in total.
member of the Toon Software Collective
Post Reply

Return to “Toon Apps”