Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Post Reply
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by michel30 »

Is it also possible to add the following URL https://www.rd4info.nl/NSI/Burger/aspx/ ... ublic.aspx
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

michel30 wrote:Is it also possible to add the following URL https://www.rd4info.nl/NSI/Burger/aspx/ ... ublic.aspx
The site is using https, meaning you will have to use wget and a cron job to retrieve the data regularly.
Unfortunately rd4info is not providing a standard calendar file but I can scrape the data from the http page source.
I am a bit hesitant to give a due date right now but it is on my list.

Regardz,

Toonz
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

Hi all,

the old mod for the thermostat app did not look good on the newer firmware 4.x versions.
I made this small tweak to make it firmware 4 compatible. I can't put the temperature any higher without making much more invasive changes in the app.
No changes were needed for the Belgian icons, that is handled in the wastecollection app itself.

The attachment contains the full thermostat app for version 4.4.21 but only two files have been changed: ThermostatApp.qml and ThermostatSidepanel.qml.
All code changes are marked between the lines 'waste display start' and 'waste display end'.
Note: the icon will show only 6 minutes after restart of the gui and will be updated daily at 18.01 to show the icon for the next day

Summarizing:
- use the earlier posted version 1.2 of the mod for firmware version 3.7.9 (manually apply to other 3.x versions)
- use this version 1.3 on firmware 4.4.21 (manually apply to other 4.x versions)
both are compatible with any recent version of the wastecollection app.
The screenshot below shows the icon twice: once on the tile (which you don't need with this mod) and one via the thermostat mod.
thermostat_mod_1.3.png
thermostat_mod_1.3.png (29.46 KiB) Viewed 14806 times
Kind regardz,

Toonz
Attachments
wastecollection_thermostat_mod_v1.3_(fw4.4.21).zip
(163.69 KiB) Downloaded 460 times
member of the Toon Software Collective
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: waste collection (Afvalwijzer)

Post by marcelr »

Waste collection v2.2. is available from the toonstore. Please upgrade the toonstore to 0.9.5 first.
Matt88
Starting Member
Starting Member
Posts: 18
Joined: Sun Aug 27, 2017 8:24 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Matt88 »

Thanks for the hard work but it seems that Cyclus is not working in V2.2. Tried multiple adresses in our region but no data is showing up in the tile. Can someone confirm/check this? (Zip 2805)
Last edited by Matt88 on Sun Aug 27, 2017 10:15 pm, edited 1 time in total.
makkie2002
Member
Member
Posts: 66
Joined: Fri Aug 18, 2017 3:28 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by makkie2002 »

Thanks Toonz ... you made the first Belgians happy !
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

makkie2002 wrote:Thanks Toonz ... you made the first Belgians happy !
And you Belgians made us happy as well today, although you scared us quite a bit in the European hockey final :)
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

Matt88 wrote:Thanks for the hard work but it seems that Cyclus is not working in V2.2. Tried multiple adresses in our region but no data is showing up in the tile. Can someone confirm/check this? (Zip 2805)
Hi Matt88,

The waste collection app is reading the file '/root/waste/waste_calendar.ics' to display the waste collection dates for Cyclus NV.
As this provider is using 'https' which is not supported by Toon, a separate method of retrieving this .ics file is needed.
A 'how-to' to get the calendar file from Cyclusnv is posted by Marcelr earlier:
domoticaforum.eu/viewtopic.php?f=87& ... 235#p82536

Just checking whether you have done this and maybe you can check if the file '/root/waste/waste_calendar.ics' exists.

Kind regardz,

Toonz
member of the Toon Software Collective
Matt88
Starting Member
Starting Member
Posts: 18
Joined: Sun Aug 27, 2017 8:24 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Matt88 »

Thanks a lot Toonz, downloading the ics file and creating the '/root/waste/waste_calendar.ics' location did the trick.
georon
Starting Member
Starting Member
Posts: 25
Joined: Wed Jul 19, 2017 8:23 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by georon »

Thanks for all the work you put in this app.

I tried to clone the app, so I can run it twice (living at the border between NL and BE :) ) but that failed miserably.
It will not load the 2nd app :|

While I was at it, I was introducing the ICS for Limburg.NET (BE), they use a standard ICS (example: http://www.limburg.net/ics/afvalkalender/72030/223/10/0)

Will try another day :)
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

You cannot simply clone the app and run it twice. Second one needs to have a unique folder name and corresponding app file names. Can be done of course but is a bit of work

Regardz,

Toonz
member of the Toon Software Collective
georon
Starting Member
Starting Member
Posts: 25
Joined: Wed Jul 19, 2017 8:23 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by georon »

Toonz wrote:You cannot simply clone the app and run it twice. Second one needs to have a unique folder name and corresponding app file names. Can be done of course but is a bit of work
I know, :)
Will figure it out eventually
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by Toonz »

Hi,

just to be sure: are you implementing the limburg.net calendar yourself or do you want me to do it? I just had a look and it can be easily implemented in the app.
P.S. about running it twice: you will also need to change all temporary files names with dates, icon names to show etc etc

Kind regardz,

Toonz
member of the Toon Software Collective
georon
Starting Member
Starting Member
Posts: 25
Joined: Wed Jul 19, 2017 8:23 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by georon »

If you would like to implement the Limburg.NET code, that would be great. :D
If not, I will be bold enough to do it myself, but merging the code would be a hassle.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: waste collection (Afvalwijzer)

Post by TheHogNL »

Graag nog even toevoegen aan :
function wasteTypeMijnafvalwijzer(shortName)

De volgende cases:
case "grofvuil": return 8;
case "tuinafval": return 4;
case "papier": return 2;

Bij mijzelf natuurlijk al gedaan maar zodat straks ook anderen hier van kunnen profiteren :)
Member of the Toon Software Collective
Post Reply

Return to “Toon Apps”