Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

User avatar
madpatrick
Member
Member
Posts: 104
Joined: Wed Dec 06, 2017 9:52 pm
Location: Zuid-Holland

Re: Toon app: Afvalwijzer

Post 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 ?
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: Afvalwijzer

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

Re: Toon app: Afvalwijzer

Post 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....
Last edited by Toonz on Tue Apr 03, 2018 7:40 pm, edited 1 time in total.
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post 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....
member of the Toon Software Collective
User avatar
madpatrick
Member
Member
Posts: 104
Joined: Wed Dec 06, 2017 9:52 pm
Location: Zuid-Holland

Re: Toon app: Afvalwijzer

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

Re: Toon app: Afvalwijzer

Post 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 :-) ?
member of the Toon Software Collective
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: Afvalwijzer

Post by michel30 »

Good question,
Birthday or dentist :-)
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon app: Afvalwijzer

Post by TerrorSource »

Hopefully it can be downloaded somewhat automagically, maybe update once a day/week or so.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

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

Re: Toon app: Afvalwijzer

Post by Toonz »

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
BOverdevest
Starting Member
Starting Member
Posts: 16
Joined: Mon Feb 19, 2018 11:45 pm
Location: Delft

Re: Toon app: Afvalwijzer

Post 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).
B Overdevest
Rooted Toon, Raspberry 3B+, Domoticz
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Will add Avalex in next release....
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post 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
member of the Toon Software Collective
rickvnl
Starting Member
Starting Member
Posts: 10
Joined: Thu Apr 05, 2018 1:20 am

Re: Toon app: Afvalwijzer

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

Re: Toon app: Afvalwijzer

Post 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
member of the Toon Software Collective
Post Reply

Return to “Toon Apps”