Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Haven't looked into it yet due to other priorities. Will do soon
member of the Toon Software Collective
MyZ
Member
Member
Posts: 53
Joined: Mon Jun 04, 2018 6:57 pm

Re: Toon app: Afvalwijzer

Post by MyZ »

Thnx 8)
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon app: Afvalwijzer

Post by oepi-loepi »


Bedankt voor deze geweldige APP!


Na wat puzzelen heb ik het aan de praat.

Voor Oostvoorne (xxxxxxx. Mijnafvalwijzer, optie 1) gaat de json helaas in de fout

Dit heb ik opgelost door een oude HTML functie uit 3.8 te plakken in function readMijnafvalwijzer() :

Echter in het stukje zit voor mijn postcode een extra spatie na de 'afvalcode' in de HTML. Dit heb ik opgelost door hetvolgende:

in het stukje uit de HTML code:

if ( i < endList) {
while (i < endList) {
j = aNode.indexOf('"', i);
wasteCodeHTML = aNode.substring(i + 7,j);
j = aNode.indexOf('"' + wasteCodeHTML + '"', i);
k = aNode.indexOf('>', j);

vervang de regel:

j = aNode.indexOf('"' + wasteCodeHTML + '"', i);

door:

j = aNode.indexOf('"' + wasteCodeHTML , i);


Is het ook mogelijk om een keuze te maken in het configuratiescherm voor bijvoorbeeld 31: "mijnafvalwijzer.nl (HTML)" ?
Wellicht zijn er meer gemeenten waar de JSON optie niet werkt..
Last edited by oepi-loepi on Fri Sep 11, 2020 10:31 pm, edited 1 time in total.
Daniel
Member
Member
Posts: 70
Joined: Fri Mar 15, 2019 4:50 pm

Re: Toon app: Afvalwijzer

Post by Daniel »

Thanks the app is working great.


For Hvc Lelystad is iCal/0995200000800456
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Hi all,

Version 4.21 is released in the ToonStore.
Changelog:
- new provider 31: mijnafvalwijzer.nl using HTML for mijnafvalwijzer cities (e.g. Oostvoorne) which do not support json (provider 1)
- added waste description for cyclusnv.nl (chemical waste)
- fixed the code which didn't show any dates on firmware 5 only if a waste description didn't exist

No need to update if it works fine for you at the moment.

Kind regardz,

Toonz
member of the Toon Software Collective
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

Re: Toon app: Afvalwijzer

Post by oepi-loepi »

Thank you very much for these changes.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

MyZ wrote:Hi Toonz,
Since I'm running on the latest firmware I have a problem with the status icon. When, for example, I put it "aan straat", the next morning the status has been reset. Any idea?
Finally made time to fix this very old bug/feature. The 'aan straat' status will not be reset anymore at midnight.
Will do some more testing tonight to be sure and release 4.22 when ok later this week.
EDIT: same logic need to be applied in the Thermostat panel in the resource files. Will be released separately.
EDIT2: testing successful, ready for release but first watching football tonight...
member of the Toon Software Collective
MyZ
Member
Member
Posts: 53
Joined: Mon Jun 04, 2018 6:57 pm

Re: Toon app: Afvalwijzer

Post by MyZ »

Nice, thnx! Also on behalf of my girlfriend :-D
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Hi all,

Version 4.22 is released in the ToonStore.
Changelog:
- The 'aan straat' status will not be reset anymore at midnight. This is fixed on the tile itself.

The same functionality has been applied to icons on the thermostat panel but that will be released separately via a new TCS resource file in the near future.

Kind regardz,

Toonz
member of the Toon Software Collective
MyZ
Member
Member
Posts: 53
Joined: Mon Jun 04, 2018 6:57 pm

Re: Toon app: Afvalwijzer

Post by MyZ »

Nice!!
Ricardo026
Starting Member
Starting Member
Posts: 8
Joined: Wed Apr 10, 2019 10:00 pm

Re: Toon app: Afvalwijzer

Post by Ricardo026 »

Hi, Is it possible to set the date of the waste ? Like my situation
Tomorrow is the Gtf day, and i always put the container on the street the evening before the pickup day.

But my toon is not showing a icon to warn me
spits
Starting Member
Starting Member
Posts: 1
Joined: Fri May 03, 2019 12:25 am

Re: Toon app: Afvalwijzer

Post by spits »

Toonz wrote:Hi all,

Version 4.22 is released in the ToonStore.
Changelog:
- The 'aan straat' status will not be reset anymore at midnight. This is fixed on the tile itself.

The same functionality has been applied to icons on the thermostat panel but that will be released separately via a new TCS resource file in the near future.

Kind regardz,

Toonz
In the WastecollectionApp.qml i changed a line because ther waste changed

from

Code: Select all

	function wasteTypeRova(shortName) {
		switch (shortName) {
			case "GFT": return 3;		//groente/fruit	
			case "REST": return 0;		//huisvuil
                        case "PAPIER": return 2;	//papier en karton
			default: break;
		}
		return "?";
to

Code: Select all

	function wasteTypeRova(shortName) {
		switch (shortName) {
			case "GFT": return 3;		//groente/fruit	
			case "REST": return 0;		//huisvuil
			case "PAPIER": return 2;	//papier en karton
                        case "PLASTICPLUS": return 1;   //plastic, drankpakken, metaal
			default: break;
		}
		return "?";
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

hi all,

for users in the rmn.nl area: I think I can now retrieve the calendars online (no need for cron and wget anymore to download the calendar to Toon).
Will do some testing in the coming days.....

If it works, I will not release this immediately.
I am in the midst of rewriting the app to be able to download the code for a specific provider.
Currently the app contains the code for all providers.
In the new setup the app will be much smaller and no need for new releases when new providers are added

Kind regardz,

Toonz
member of the Toon Software Collective
Fietspomp
Starting Member
Starting Member
Posts: 27
Joined: Tue Jan 30, 2018 12:09 pm

Re: Toon app: Afvalwijzer

Post by Fietspomp »

I haven't use this because it didn't work in my town (Oostvoorne as well).
But now the JSON also works in Oostvoorne! (Using a custom component for Home Assistant, so I'm guessing this one will work as well).

Great job on using the HTML scraper though for areas where JSON doesn't work.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Fietspomp wrote:I haven't use this because it didn't work in my town (Oostvoorne as well).
But now the JSON also works in Oostvoorne! (Using a custom component for Home Assistant, so I'm guessing this one will work as well).

Great job on using the HTML scraper though for areas where JSON doesn't work.
what company is collecting waste in Oostvoorne?
I am planning to release the next version of the app after the weekend so can include this as well
member of the Toon Software Collective
Post Reply

Return to “Toon Apps”