Page 27 of 60

Re: Toon app: Afvalwijzer

PostPosted: Tue Apr 03, 2018 11:16 am
by madpatrick
Hi Toonz,

I'm using my own icons (as you can see above), but after an update these are replaced by default package icons.
Can this be changed somehow that the icons will not being changed after an update ?

Re: Toon app: Afvalwijzer

PostPosted: Tue Apr 03, 2018 5:55 pm
by michel30
Toonz wrote:ok, but this processing needs to be done on your PC/webserver as Toon has no browser capabilities.
Would be nice if you can automate this process to have a text based calendar file (flat text, xml, ical format, whatever) available on your own webserver which can be retrieved by Toon.


Hello ToonZ,

I was just checking my google calander, is it also possible to link the afvalwijzer with the google calander?

I see you have many options for google calander, export or create a link etc.

Re: Toon app: Afvalwijzer

PostPosted: Tue Apr 03, 2018 6:16 pm
by Toonz
madpatrick wrote:Hi Toonz,

I'm using my own icons (as you can see above), but after an update these are replaced by default package icons.
Can this be changed somehow that the icons will not being changed after an update ?


Can be done in a future release.
I am thinking of creating a setting which allows you to select a custom set of standard icons....

Re: Toon app: Afvalwijzer

PostPosted: Tue Apr 03, 2018 6:26 pm
by Toonz
michel30 wrote:I was just checking my google calander, is it also possible to link the afvalwijzer with the google calander?

I see you have many options for google calander, export or create a link etc.

Not directly because you need to login at Google, without a browser and with Toon's crappy javascript implementation this is not doable (at least I don't know how to do this).
Exported as an Ical will be ok I guess, let me have a look again....

Re: Toon app: Afvalwijzer

PostPosted: Tue Apr 03, 2018 6:27 pm
by madpatrick
Toonz wrote:
madpatrick wrote:Hi Toonz,

I'm using my own icons (as you can see above), but after an update these are replaced by default package icons.
Can this be changed somehow that the icons will not being changed after an update ?


Can be done in a future release.
I am thinking of creating a setting which allows you to select s custom set of standard icons....

Maybe you can use the same directory the other icons (A-Z).
if they are present, this will overrule the standard icons.

Re: Toon app: Afvalwijzer

PostPosted: Tue Apr 03, 2018 7:42 pm
by Toonz
michel30 wrote:I was just checking my google calander, is it also possible to link the afvalwijzer with the google calander?
I see you have many options for google calander, export or create a link etc.


ok, getting anywhere now. Found out that you can simply retrieve your google calendar as an ics file without logging in using the following https call:
https://calendar.google.com/calendar/ic ... /basic.ics
I changed my private key to zeroes ;-) .

You can get this link for your own agenda by clicking 'Settings' in Google Calendar.
In the left column click on the agenda you want to make available.
Scroll down to copy the link under 'Secret address in Ical format'

This can be read by Toon directly, so that's good.
Now the multi-million dollar question, what to do with it :-) ?

Re: Toon app: Afvalwijzer

PostPosted: Tue Apr 03, 2018 9:36 pm
by michel30
Good question,
Birthday or dentist :-)

Re: Toon app: Afvalwijzer

PostPosted: Tue Apr 03, 2018 10:06 pm
by TerrorSource
Hopefully it can be downloaded somewhat automagically, maybe update once a day/week or so.

Re: Toon app: Afvalwijzer

PostPosted: Wed Apr 04, 2018 7:14 am
by Toonz
TerrorSource wrote:Hopefully it can be downloaded somewhat automagically, maybe update once a day/week or so.

That is not the issue, Toon can read the calendar directly at any time. Question is, how to use it on Toon. Follow the ics entries from waste providers? Custom format? Need some guidelines/standards how to name your calendar entries

Re: Toon app: Afvalwijzer

PostPosted: Wed Apr 04, 2018 10:11 am
by Toonz
Can also create a separate calendar app maybe, with a tile with the first (or first two) upcoming events....

Re: Toon app: Afvalwijzer

PostPosted: Wed Apr 04, 2018 10:45 am
by BOverdevest
My provider, Avalex, generates this link to which you can add to your calender.
Would this work straight in your Toon App:
https://www.avalex.nl/ical/0503200000104881

If you then show the first two events or more fancy all events for the coming 7 days, that would be a great solution for a Afvalwijzer for Avalex (and others giving the same service).

Re: Toon app: Afvalwijzer

PostPosted: Wed Apr 04, 2018 6:47 pm
by Toonz
Will add Avalex in next release....

Re: Toon app: Afvalwijzer

PostPosted: Sun Apr 08, 2018 9:29 pm
by Toonz
Hi all,

Preliminary changelog version 3.7:
- avalex.nl implemented (waste provider 24, enter ical calendar id in settings screen)

Expected to hit the ToonStore Tuesday latest...

Kind regardz,

Toonz

Re: Toon app: Afvalwijzer

PostPosted: Sun Apr 08, 2018 9:58 pm
by rickvnl
Can you add support for TwenteMilieu as well?
Found this code in Garbage collector module for Dashtics. Maybe this helps you to implement?

Code: Select all
   }*/
   if(service=='twentemilieu'){
      $.post('https://wasteapi.2go-mobile.com/api/FetchAdress',{
         'companyCode':'8d97bb56-5afd-4cbc-a651-b4f7314264b4',
         'postCode': postcode,
         'houseNumber':homenumber,
         'houseLetter':'',
         'houseNumberAddition':''

      },function(data){
         $.post('https://wasteapi.2go-mobile.com/api/GetCalendar',{
            'companyCode':'8d97bb56-5afd-4cbc-a651-b4f7314264b4',
            'uniqueAddressID':data['dataList'][0]['UniqueId'],
            'startDate':startDate.format("YYYY-MM-DD"),
            'endDate':endDate.format("YYYY-MM-DD")

         },function(data){
            data = data.dataList;
            for(d in data){
               var curr = data[d].description;
               curr = capitalizeFirstLetter(curr.toLowerCase());
               if(typeof(returnDates[curr])=='undefined'){
                  returnDates[curr] = {}
               }

               for(dt in data[d].pickupDates){
                  var testDate = moment(data[d].pickupDates[dt]);
                  if(testDate.isBetween(startDate, endDate, 'days', true)){
                     returnDates[curr][testDate.format("YYYY-MM-DD")+'_'+curr]=getTrashRow(curr,testDate);
                  }
               }
            }
            addToContainer(random,returnDates,maxitems);
         });
      });
      
   }

Re: Toon app: Afvalwijzer

PostPosted: Mon Apr 09, 2018 10:25 am
by Toonz
Hi Rick,

problem is that Toon doesn't have proper browser functionality to perform http POST calls and a rather crappy (old) javascript implementation.
My aim is to have this app natively running on Toon and therefor I have to live with its limitations.
As soon as someone has a good solution to make http POST calls from Toon I am more than happy to integrate that in the app.

Kind regardz,

Toonz