Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Post Reply
klaphekje
Starting Member
Starting Member
Posts: 36
Joined: Sat Oct 08, 2016 10:05 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by klaphekje »

Just to confirm: dar.nl works perfectly.

Toonz, thanks!
odelay99
Starting Member
Starting Member
Posts: 20
Joined: Thu May 11, 2017 11:07 am

Re: Toon app: waste collection (Afvalwijzer)

Post by odelay99 »

Toonz wrote:
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
Working! Many thanks Toonz
TechApprentice
Starting Member
Starting Member
Posts: 6
Joined: Tue Mar 28, 2017 12:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by TechApprentice »

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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

TechApprentice 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
.
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 https
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
TechApprentice
Starting Member
Starting Member
Posts: 6
Joined: Tue Mar 28, 2017 12:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by TechApprentice »

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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

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
member of the Toon Software Collective
b1r0n3r
Starting Member
Starting Member
Posts: 8
Joined: Tue Jul 04, 2017 8:17 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by b1r0n3r »

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!
b1r0n3r
Starting Member
Starting Member
Posts: 8
Joined: Tue Jul 04, 2017 8:17 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by b1r0n3r »

@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 Image 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?
martijnd
Starting Member
Starting Member
Posts: 2
Joined: Mon Mar 27, 2017 10:42 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by martijnd »

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?
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

[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
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

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?
just replace this function in ClockApp.qml to add the weekday:

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
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

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 had a look, can be done but this site also uses the 'POST' method to process zipcode/housenr (not standard supported by Toon).
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
martjah
Starting Member
Starting Member
Posts: 9
Joined: Sat Jul 22, 2017 7:26 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by martjah »

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)

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:
Image
Attachments
waste_calendar.zip
agenda bestand
(1.1 KiB) Downloaded 474 times
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

Will have a look after I return from my holidays....
member of the Toon Software Collective
DennisD
Starting Member
Starting Member
Posts: 24
Joined: Tue Jul 11, 2017 7:28 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by DennisD »

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?
Post Reply

Return to “Toon Apps”