Toon app: Afvalwijzer
Moderators: marcelr, TheHogNL, Toonz
Re: Toon app: waste collection (Afvalwijzer)
Just to confirm: dar.nl works perfectly.
Toonz, thanks!
Toonz, thanks!
Re: Toon app: waste collection (Afvalwijzer)
Working! Many thanks ToonzToonz wrote:Already supported and confirmed working by Ierlandfanodelay99 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..
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
-
- Starting Member
- Posts: 6
- Joined: Tue Mar 28, 2017 12:58 pm
Re: Toon app: waste collection (Afvalwijzer)
I would like to request the addition of the waste collection in Gemeente Westland.
I found on their own website some tool to check the up coming emptying date: https://www.gemeentewestland.nl/afval/a ... eling.html
The widget points to:https://bijmijindebuurt.gemeentewestland.nl/#!/
With both you need to enter a zip code. 2291NG points in my general direction if you need that for testing.
Thanks in advance.
I found on their own website some tool to check the up coming emptying date: https://www.gemeentewestland.nl/afval/a ... eling.html
The widget points to:https://bijmijindebuurt.gemeentewestland.nl/#!/
With both you need to enter a zip code. 2291NG points in my general direction if you need that for testing.
Thanks in advance.
Re: Toon app: waste collection (Afvalwijzer)
I had a quick look, it can be done but you have to use the 'wget' method Marcelr posted earlier because the site is using httpsTechApprentice wrote:I would like to request the addition of the waste collection in Gemeente Westland.
I found on their own website some tool to check the up coming emptying date: https://www.gemeentewestland.nl/afval/a ... eling.html
.
The exact url to retrieve is: https://bijmijindebuurt.gemeentewestlan ... ode=2291NG
which gives you the next three waste collection dates.
I will be travelling the next week(ends) so it will take some time before I can build this into the app.
Kind regardz,
Toonz
member of the Toon Software Collective
-
- Starting Member
- Posts: 6
- Joined: Tue Mar 28, 2017 12:58 pm
Re: Toon app: waste collection (Afvalwijzer)
I am already happy that it is possible and that you will try to implement it when you have time.
I am really happy and thankful about al the work you and other more knowledgeable people (than me) put into this otherwise limited piece of hardware.
So thanks and I will be waiting patiently.
I am really happy and thankful about al the work you and other more knowledgeable people (than me) put into this otherwise limited piece of hardware.
So thanks and I will be waiting patiently.
Re: Toon app: waste collection (Afvalwijzer)
I had a second look, unfortunately I was a bit too fast with my conclusion. That URL retrieves standard dates from 2013 for a default address, actual dates are retrieved via an inline form which works fine in a browser but which is not processed if you retrieve the page via WGET. Maybe someone else on the forum finds a way around that.
If so, let us know here, I can pick it up from there early July.
Kind regardz,
Toonz
If so, let us know here, I can pick it up from there early July.
Kind regardz,
Toonz
member of the Toon Software Collective
Re: Toon app: waste collection (Afvalwijzer)
Hi Toonz, first off, thanks for the fantastic work! Buienradar is working nicely on my rooted TOON (thanks Marcel!) and thanks to that, Toon has made it back to its former place on the wall.
Of course I also tried the afvalwijzer application, only to discover I was a bit quick on the trigger.
I am living in Meppel and am unable to figure out how to get the data into the Toon app. I hope you or someone is able to help me get this going?
the link is http://meppelafvalkalender.2go-mobile.com/
you're then faced with some input fields, for example:
Postcode: 7943EN
Huisnummer: 2
and click the 'Bevestigen" button.
Thanks in advance!
Of course I also tried the afvalwijzer application, only to discover I was a bit quick on the trigger.
I am living in Meppel and am unable to figure out how to get the data into the Toon app. I hope you or someone is able to help me get this going?
the link is http://meppelafvalkalender.2go-mobile.com/
you're then faced with some input fields, for example:
Postcode: 7943EN
Huisnummer: 2
and click the 'Bevestigen" button.
Thanks in advance!
Re: Toon app: waste collection (Afvalwijzer)
@Toonz; question nr2.. In the screenshots on the first pages, I notice the date is printed in the sceen-saver time tile.
please let me know how you did that?
[edit] hmkay.. found the myclock 'project' yesterday evening and played around with it a bit. I also saw some screenshot
showing the abbreviation of the weekday in front of the Bigtimetext. I want that! 
With the risk of going pretty off-topic: how does one concatenate strings in a variable in qt?
And/or: could you share your clock app files with us?
please let me know how you did that?
[edit] hmkay.. found the myclock 'project' yesterday evening and played around with it a bit. I also saw some screenshot

With the risk of going pretty off-topic: how does one concatenate strings in a variable in qt?
And/or: could you share your clock app files with us?
Re: Toon app: waste collection (Afvalwijzer)
Could you add afvalkalender.rova.nl? the site does not support json, when logged in the data is available in the xhtml format.
any idea how to get that data into your app?
any idea how to get that data into your app?
Re: Toon app: waste collection (Afvalwijzer)
[quote="b1r0n3r"]the link is http://meppelafvalkalender.2go-mobile.com/
quote]
Hi b1r0n3r,
Unfortunately this site uses the 'post' method to post the form data which cannot easily be retrieved via wget or http.
The good News is, you can do this manually and the calendar contains data for almost a year, so manually is probably acceptable.
The downloaded Kalender.ics is pretty standard and can easily be read, however...
your community has a complete new type of waste ('VET-goed') I have never seen before and I need to create new icons for that which is a bit more work.
Happy to do this after my holiday which starts in 2 days.
Kind regardz,
Toonz
quote]
Hi b1r0n3r,
Unfortunately this site uses the 'post' method to post the form data which cannot easily be retrieved via wget or http.
The good News is, you can do this manually and the calendar contains data for almost a year, so manually is probably acceptable.
The downloaded Kalender.ics is pretty standard and can easily be read, however...
your community has a complete new type of waste ('VET-goed') I have never seen before and I need to create new icons for that which is a bit more work.
Happy to do this after my holiday which starts in 2 days.
Kind regardz,
Toonz
member of the Toon Software Collective
Re: Toon app: waste collection (Afvalwijzer)
just replace this function in ClockApp.qml to add the weekday:b1r0n3r wrote:@Toonz; question nr2.. In the screenshots on the first pages, I notice the date is printed in the sceen-saver time tile.
please let me know how you did that?
[edit] hmkay.. found the myclock 'project' yesterday evening and played around with it a bit. showing the abbreviation of the weekday in front of the Bigtimetext. I want that!
With the risk of going pretty off-topic: how does one concatenate strings in a variable in qt?
And/or: could you share your clock app files with us?
Code: Select all
function updateClockTiles() {
var now = new Date().getTime();
timeStr = i18n.dateTime(now,i18n.dow_full).substring(0,2).toLowerCase() + " " + i18n.dateTime(now, i18n.time_yes);
dateStr = i18n.dateTime(now, i18n.mon_full);
}
member of the Toon Software Collective
Re: Toon app: waste collection (Afvalwijzer)
I had a look, can be done but this site also uses the 'POST' method to process zipcode/housenr (not standard supported by Toon).martijnd wrote:Could you add afvalkalender.rova.nl? the site does not support json, when logged in the data is available in the xhtml format.
any idea how to get that data into your app?
I really need to look into this 'POST' method stuff after my holidays, too many requests now waiting on solving this..
I had a look and after retrieving the kalender page, processing that data is a piece of cake.
Please have a couple of weeks patience

Kind regardz,
Toonz
member of the Toon Software Collective
Re: Toon app: waste collection (Afvalwijzer)
Hi Toonz,
i've been trying to get the app working with my own waste service. I've downloaded the ICS file manually to /root/waste/waste_calendar.ics and changed the provider to cyclusnv.nl to read the file.
I changed these parts in an attempt to get it to work (i got no linux scriping skills). I changed the words so it matches the words in the ICS file. (but no luck)
now i get this in the display:

i've been trying to get the app working with my own waste service. I've downloaded the ICS file manually to /root/waste/waste_calendar.ics and changed the provider to cyclusnv.nl to read the file.
I changed these parts in an attempt to get it to work (i got no linux scriping skills). I changed the words so it matches the words in the ICS file. (but no luck)
Code: Select all
function wasteTypeCureAfvalbeheer(shortName) {
switch (shortName) {
case "GFT": return 3; //cyclusnv plus cureafvalbeheer
case "Groene": return 3; //katwijk.nl
case "Papier": return 2; //cureafvalbeheer
case "Oud pa": return 2; //cyclusnv.nl
case "Plastic": return 1; //cyclusnv.nl
case "Rest": return 0; //cyclusnv plus cureafvalbeheer
case "Grijze": return 0; //katwijk.nl
default: break;
}
return "?";
}
function wasteTypeCyclusnv(shortName) {
switch (shortName) {
case "GFT": return 3;
case "Papier": return 2;
case "Plasti": return 1;
case "Rest": return 0;
default: break;
}
return "?";
}
now i get this in the display:

- Attachments
-
- waste_calendar.zip
- agenda bestand
- (1.1 KiB) Downloaded 566 times
Re: Toon app: waste collection (Afvalwijzer)
Will have a look after I return from my holidays....
member of the Toon Software Collective
Re: Toon app: waste collection (Afvalwijzer)
Since i live in a small village, and don't use a big company with calendars. I was wondering if it would be possible to use the google calendar for this?