Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

Re: Toon app: waste collection (Afvalwijzer)

Postby marcelr » Tue Jun 06, 2017 8:33 pm

You probably need to download the .ics file from your municipality''s website. And then follow the instructions as stated in the Manuals thread.
(this is for an address in Valkenburg, that I picked ramdomly):

https://www.katwijk.nl/nc/wonen-verkeer ... 0f3097a349

It's an ics that is valid until the end of the year, so you only need to download it once a year (on january 1st ;-)). Not sure if this particular .ics format will work out of the box.
Toonz?
marcelr
Global Moderator
Global Moderator
 
Posts: 1145
Joined: May 2012
Location: Ehv

Re: Toon app: waste collection (Afvalwijzer)

Postby TerrorSource » Tue Jun 06, 2017 9:10 pm

dennis071nl wrote:Hi guys,

Where can i find a list of waste collection providers?? I live in Katwijk, actually Valkenburg gemeente Katwijk, but i can't find my area on the given sites...

Can anyone confirm this??

Thanks, Dennis


Isnt this website the correct one?
https://www.katwijk.nl/nc/wonen-verkeer ... nzameling/

I used a zipcode from a house on Funda (2235 AR - 44) and i'm seeing a result. Can you can your own zipcode/housenumber?
Zipcode+housenumber is hashed so that will make it somewhat complicated i guess.
https://www.katwijk.nl/nc/wonen-verkeer ... bdf64b32d0
TerrorSource
Member
Member
 
Posts: 417
Joined: May 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby dennis071nl » Tue Jun 06, 2017 9:27 pm

isn't it possible to create an ICS myself, since the data in this one isn't correct......:-)

i mean, it's not that hard to create a recurring appointment for my grijze bak and the next week for the GFT bak....

Should i take some formatting into account???
dennis071nl
Starting Member
Starting Member
 
Posts: 35
Joined: June 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Tue Jun 06, 2017 10:43 pm

Hi Dennis,

you can take the 'manual' workaround once a year
Download the calendar .ics file from the katwijk website and copy it to Toon as "/root/waste/waste_calendar.ics".

I just need to change the app a bit to read the correct descriptions "Groene container" / "Grijze container".
Will do tomorrow (too late now)

Regardz,

Toonz
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Wed Jun 07, 2017 6:46 pm

Hi all,

I enhanced the app with the waste provider 'katwijk.nl'.
As this provider is using 'https', a separate method of retrieving the data needs to be installed as posted by Marcelr earlier.
This version is reading the file '/root/waste/waste_calendar.ics' to get the waste collection dates for Katwijk.

Configuration:
You need to edit WastecollectionApp.qml at the top to select one of the five supported waste providers
And edit your zipcode/house nr (not needed for Cure Avalbeheer, Cyclus NV and Katwijk.nl).
This version is fully compatible with the thermostat_mod V1.2 posted earlier.

Currently supported:
"mijnafvalwijzer.nl"
"deafvalapp.nl"
"cure-afvalbeheer.nl"
"cyclusnv.nl"
"katwijk.nl"

Let me know if you want support for additional providers.

Regardsz,

Toonz
Attachments
wastecollection_V1.5.zip
(13.57 KiB) Downloaded 161 times
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby Ierlandfan » Thu Jun 08, 2017 11:46 am

Can you add support for this one?

http://inzamelkalender.hvcgroep.nl/push ... =&adresid=
(Ofcourse random postalcode but working)

By researching the right link the page gave me an interesting error....spits out the database name, username, password, port, path etc. etc.
Will tell them.
Ierlandfan
Member
Member
 
Posts: 150
Joined: October 2013

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Thu Jun 08, 2017 5:09 pm

gives as a result:
{"error":"Retrieving list data failed"}

Webpage gives me:
"Geen inzameling op dit adres
Er is geen inzameling door HVC op uw adres. Ga terug naar de vorige pagina wanneer u een andere postcode wilt invoeren. Bent u er zeker van dat HVC bij u de afvalinzameling verzorgt? Neemt u dan contact op met onze klantenservice via 0800 - 0700 of klantenservice@hvcgroep.nl . "

using 1671 EK / 2 works fine....output looks ok, no separate paper collection?
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Thu Jun 08, 2017 7:34 pm

Hi all,

I enhanced the app with the waste provider 'hvcgroep.nl'.

Configuration:
You need to edit WastecollectionApp.qml at the top to select one of the six supported waste providers
And edit your zipcode/house nr (not needed for Cure Avalbeheer, Cyclus NV and Katwijk.nl).
This version is fully compatible with the thermostat_mod V1.2 posted earlier.

Currently supported:
"mijnafvalwijzer.nl"
"deafvalapp.nl"
"cure-afvalbeheer.nl"
"cyclusnv.nl"
"katwijk.nl"
"hvcgroep.nl"

Let me know if you want support for additional providers.

Regardsz,

Toonz
Attachments
wastecollection_V1.6.zip
(13.8 KiB) Downloaded 151 times
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby klaphekje » Fri Jun 09, 2017 8:00 pm

Hi Toonz,

Do you think it's possible to add http://afvalkalender.dar.nl?

I think they only offer an .ical file but i can't seem to get the file trough wget.

Contents of the file if downloaded with wget:
Code: Select all
<br />
<b>Warning</b>:  mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: Access denied for user ''@'localhost' (using password: NO) in <b>/data/www/afvalkalender-dar-nl/Classes/Custom/KalenderManager.class.php</b> on line <b>516</b><br />
<br />
<b>Warning</b>:  mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: A link to the server could not be established in <b>/data/www/afvalkalender-dar-nl/Classes/Custom/KalenderManager.class.php</b> on line <b>516</b><br />
BEGIN:VCALENDAR
PRODID:-//Opzet/Inzamelkalender/
VERSION:2.0
METHOD:PUBLISH
X-MS-OLK-FORCEINSPECTOROPEN:TRUE

END:VCALENDAR


Downloading with Firefox works fine though...

Any suggestions?
klaphekje
Starting Member
Starting Member
 
Posts: 36
Joined: October 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Fri Jun 09, 2017 8:40 pm

you don't need to use wget. Toon can retrieve this directly (using http).
You can get a standard ics calendar file but as all the others, the contents differ each time (perfectly usable though). No standardisation in wasteland.

Sample: http://afvalkalender.dar.nl/download_ic ... 41XK&h=401

Will put this in the next release (shouldn't take long but I already get complaints to sit too long after the laptop in the evenings :-( )
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Fri Jun 09, 2017 10:30 pm

hmmm, processing the ics file was easy but indeed Toon refuses to download the ICS file.
@Marcelr : can you have a look and try if we can use wget for dar.nl (see the link above, works fine via IE)?
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Sat Jun 10, 2017 5:08 pm

Hi all,

I enhanced the app with the waste provider 'dar.nl'.
The calendar.ics file from their website needs to be manually downloaded and copied to: '/root/waste/waste_calendar.ics' .
Shouldn't be too much of an hassle as the file contains all dates for the rest of the year.

Configuration:
You need to edit WastecollectionApp.qml at the top to select one of the six supported waste providers
And edit your zipcode/house nr (not needed for Cure Avalbeheer, Cyclus NV, Dar.nl and Katwijk.nl).
This version is fully compatible with the thermostat_mod V1.2 posted earlier.

Currently supported:
"mijnafvalwijzer.nl"
"deafvalapp.nl"
"cure-afvalbeheer.nl"
"cyclusnv.nl"
"katwijk.nl"
"dar.nl"

Let me know if you want support for additional providers.

Regardsz,

Toonz
Attachments
wastecollection_V1.7.zip
(13.86 KiB) Downloaded 175 times
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby odelay99 » Mon Jun 12, 2017 3:02 pm

Toonz wrote:
Let me know if you want support for additional providers.

Regardsz,

Toonz


If you could make it work with https://inzamelkalender.hvcgroep.nl that would be great, but I think it will be hard as I do not see ant ICS support on the site.
odelay99
Starting Member
Starting Member
 
Posts: 20
Joined: May 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby Ierlandfan » Mon Jun 12, 2017 5:46 pm

Works like a Charm! I forgot to say thanx for that!

Toonz wrote:Hi all,

I enhanced the app with the waste provider 'hvcgroep.nl'.

Configuration:
You need to edit WastecollectionApp.qml at the top to select one of the six supported waste providers
And edit your zipcode/house nr (not needed for Cure Avalbeheer, Cyclus NV and Katwijk.nl).
This version is fully compatible with the thermostat_mod V1.2 posted earlier.

Currently supported:
"mijnafvalwijzer.nl"
"deafvalapp.nl"
"cure-afvalbeheer.nl"
"cyclusnv.nl"
"katwijk.nl"
"hvcgroep.nl"

Let me know if you want support for additional providers.

Regardsz,

Toonz
Ierlandfan
Member
Member
 
Posts: 150
Joined: October 2013

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Mon Jun 12, 2017 6:21 pm

odelay99 wrote:If you could make it work with https://inzamelkalender.hvcgroep.nl that would be great, but I think it will be hard as I do not see ant ICS support on the site.


Already supported and confirmed working by Ierlandfan :).
Output is taken directly from their webserver, no need to use ics files for this provider.

Just enter "hvcgroep.nl" and your zipcode/housenr at the top of WastecollectionApp.qml.

Kind regardz,

Toonz
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest