Page 16 of 86

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jan 05, 2018 8:31 pm
by michel30
You mean this link for RD4.

Code: Select all

 https://www.rd4info.nl/NSI/Burger/aspx/afvalkalender_public.aspx 

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jan 05, 2018 8:40 pm
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Jan 06, 2018 1:18 am
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.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Jan 06, 2018 9:18 am
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,

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Jan 06, 2018 9:56 am
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Jan 06, 2018 10:20 am
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Jan 06, 2018 10:53 am
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.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Jan 06, 2018 11:02 am
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Jan 06, 2018 8:14 pm
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.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sun Jan 07, 2018 1:04 pm
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?

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sun Jan 07, 2018 3:30 pm
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.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sun Jan 07, 2018 4:01 pm
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.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Mon Jan 08, 2018 9:53 pm
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Mon Jan 08, 2018 10:14 pm
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Tue Jan 09, 2018 11:31 pm
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 408 times
Kind regardz,

Toonz