Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

Re: Toon app: waste collection (Afvalwijzer)

Postby klaphekje » Tue Jun 13, 2017 6:46 pm

Just to confirm: dar.nl works perfectly.

Toonz, thanks!
klaphekje
Starting Member
Starting Member
 
Posts: 36
Joined: October 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby odelay99 » Wed Jun 14, 2017 10:43 am

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
odelay99
Starting Member
Starting Member
 
Posts: 20
Joined: May 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby TechApprentice » Thu Jun 22, 2017 7:07 pm

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.
TechApprentice
Starting Member
Starting Member
 
Posts: 4
Joined: March 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Fri Jun 23, 2017 7:12 am

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby TechApprentice » Fri Jun 23, 2017 8:54 am

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.
TechApprentice
Starting Member
Starting Member
 
Posts: 4
Joined: March 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Sat Jun 24, 2017 3:55 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby b1r0n3r » Tue Jul 04, 2017 7:24 pm

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: July 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby b1r0n3r » Wed Jul 05, 2017 12:12 am

@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?
b1r0n3r
Starting Member
Starting Member
 
Posts: 8
Joined: July 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby martijnd » Wed Jul 05, 2017 7:45 pm

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?
martijnd
Starting Member
Starting Member
 
Posts: 2
Joined: March 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Wed Jul 05, 2017 8:56 pm

[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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Wed Jul 05, 2017 9:05 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Thu Jul 06, 2017 5:04 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1481
Joined: December 2016

Re: Toon app: waste collection (Afvalwijzer)

Postby martjah » Sun Jul 23, 2017 4:08 pm

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 168 times
martjah
Starting Member
Starting Member
 
Posts: 9
Joined: July 2017

Re: Toon app: waste collection (Afvalwijzer)

Postby Toonz » Tue Jul 25, 2017 10:16 am

Will have a look after I return from my holidays....
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 DennisD » Mon Jul 31, 2017 7:35 am

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?
DennisD
Starting Member
Starting Member
 
Posts: 19
Joined: July 2017

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest

cron