Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Toon app: Afvalwijzer

Postby madpatrick » Tue Apr 03, 2018 11:16 am

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 ?
User avatar
madpatrick
Member
Member
 
Posts: 85
Joined: December 2017
Location: Zuid-Holland

Re: Toon app: Afvalwijzer

Postby michel30 » Tue Apr 03, 2018 5:55 pm

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.
michel30
Member
Member
 
Posts: 216
Joined: August 2017

Re: Toon app: Afvalwijzer

Postby Toonz » Tue Apr 03, 2018 6:16 pm

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....
Last edited by Toonz on Tue Apr 03, 2018 6:40 pm, edited 1 time in total.
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1197
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby Toonz » Tue Apr 03, 2018 6:26 pm

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....
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1197
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby madpatrick » Tue Apr 03, 2018 6:27 pm

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.
User avatar
madpatrick
Member
Member
 
Posts: 85
Joined: December 2017
Location: Zuid-Holland

Re: Toon app: Afvalwijzer

Postby Toonz » Tue Apr 03, 2018 7:42 pm

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 :-) ?
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1197
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby michel30 » Tue Apr 03, 2018 9:36 pm

Good question,
Birthday or dentist :-)
michel30
Member
Member
 
Posts: 216
Joined: August 2017

Re: Toon app: Afvalwijzer

Postby TerrorSource » Tue Apr 03, 2018 10:06 pm

Hopefully it can be downloaded somewhat automagically, maybe update once a day/week or so.
TerrorSource
Member
Member
 
Posts: 289
Joined: May 2017

Re: Toon app: Afvalwijzer

Postby Toonz » Wed Apr 04, 2018 7:14 am

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
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1197
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby Toonz » Wed Apr 04, 2018 10:11 am

Can also create a separate calendar app maybe, with a tile with the first (or first two) upcoming events....
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1197
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby BOverdevest » Wed Apr 04, 2018 10:45 am

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).
B Overdevest
Rooted Toon, Raspberry 3B+, Domoticz
BOverdevest
Starting Member
Starting Member
 
Posts: 16
Joined: February 2018
Location: Delft

Re: Toon app: Afvalwijzer

Postby Toonz » Wed Apr 04, 2018 6:47 pm

Will add Avalex in next release....
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1197
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Apr 08, 2018 9:29 pm

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
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1197
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby rickvnl » Sun Apr 08, 2018 9:58 pm

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);
         });
      });
      
   }
rickvnl
Starting Member
Starting Member
 
Posts: 9
Joined: April 2018

Re: Toon app: Afvalwijzer

Postby Toonz » Mon Apr 09, 2018 10:25 am

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
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1197
Joined: December 2016

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest