Page 7 of 86

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Aug 25, 2017 4:50 pm
by michel30
Is it also possible to add the following URL https://www.rd4info.nl/NSI/Burger/aspx/ ... ublic.aspx

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Aug 25, 2017 8:03 pm
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Aug 26, 2017 5:41 pm
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 16743 times
Kind regardz,

Toonz

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sun Aug 27, 2017 5:05 pm
by marcelr
Waste collection v2.2. is available from the toonstore. Please upgrade the toonstore to 0.9.5 first.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sun Aug 27, 2017 8:32 pm
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)

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sun Aug 27, 2017 9:03 pm
by makkie2002
Thanks Toonz ... you made the first Belgians happy !

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sun Aug 27, 2017 9:10 pm
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 :)

Re: Toon app: waste collection (Afvalwijzer)

Posted: Mon Aug 28, 2017 11:38 am
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Mon Aug 28, 2017 2:03 pm
by Matt88
Thanks a lot Toonz, downloading the ics file and creating the '/root/waste/waste_calendar.ics' location did the trick.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Wed Aug 30, 2017 10:19 pm
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 :)

Re: Toon app: waste collection (Afvalwijzer)

Posted: Wed Aug 30, 2017 11:23 pm
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Wed Aug 30, 2017 11:29 pm
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Thu Aug 31, 2017 9:59 am
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

Re: Toon app: waste collection (Afvalwijzer)

Posted: Thu Aug 31, 2017 1:43 pm
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.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Thu Aug 31, 2017 2:35 pm
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 :)