Page 4 of 84

Re: Toon app: waste collection (Afvalwijzer)

Posted: Tue Jun 06, 2017 9:33 pm
by marcelr
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?

Re: Toon app: waste collection (Afvalwijzer)

Posted: Tue Jun 06, 2017 10:10 pm
by TerrorSource
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Tue Jun 06, 2017 10:27 pm
by dennis071nl
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???

Re: Toon app: waste collection (Afvalwijzer)

Posted: Tue Jun 06, 2017 11:43 pm
by Toonz
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Wed Jun 07, 2017 7:46 pm
by Toonz
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Thu Jun 08, 2017 12:46 pm
by Ierlandfan
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.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Thu Jun 08, 2017 6:09 pm
by Toonz
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?

Re: Toon app: waste collection (Afvalwijzer)

Posted: Thu Jun 08, 2017 8:34 pm
by Toonz
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jun 09, 2017 9:00 pm
by klaphekje
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?

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jun 09, 2017 9:40 pm
by Toonz
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 :-( )

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jun 09, 2017 11:30 pm
by Toonz
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)?

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Jun 10, 2017 6:08 pm
by Toonz
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Mon Jun 12, 2017 4:02 pm
by odelay99
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.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Mon Jun 12, 2017 6:46 pm
by Ierlandfan
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Mon Jun 12, 2017 7:21 pm
by Toonz
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