Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Smiggel
Member
Member
Posts: 57
Joined: Wed Apr 11, 2018 2:20 pm

Re: Toon app: Afvalwijzer

Post by Smiggel »

Toonz wrote:Thanks for the pm. The app is working fine but your waste provider started to use new waste descriptions.
First they put a space after :'gft' and secondly they started using 'pbd' instead of 'pmd'.

You can easily fix this yourself by adding the following two lines to the function wasteTypeMijnafvalwijzer(shortName) in /qmf/qml/apps/wastecollection/WastecollectionApp.qml:

Code: Select all

                        case "gft ": return 3;
                        case "pbd": return 2;
Will include this in a future release but none planned for now.
after saving the changes and restarting the gui you need to go to the settings page and press 'opslaan' to refresh the file (or wait till the next refresh)

Regardz,

Toonz
Ah check. Will update the app later. Thanks for checking it out!

Updated the script, and it works now! :) Thanks for the help!
MyZ
Member
Member
Posts: 53
Joined: Mon Jun 04, 2018 6:57 pm

Re: Toon app: Afvalwijzer

Post by MyZ »

First of all, great app! Thumbs up.

Installed a week ago. Got everything working with manual dates in text file. The only thing not working is the icon in dim state. For example tomorrow is a "paper waste day", but no icon is appearing on the dim screen.

Running the latest stable version of Toon. Any ideas?
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

MyZ wrote:First of all, great app! Thumbs up.

Installed a week ago. Got everything working with manual dates in text file. The only thing not working is the icon in dim state. For example tomorrow is a "paper waste day", but no icon is appearing on the dim screen.

Running the latest stable version of Toon. Any ideas?
Hmmm, normally the waste icon will only show up after 18:00 the day before (or at another hour of you have a different setting for that in the config screen).
Did you use the standard values for the waste types (0 through 9)? If not, you need to create your own waste icons as well.
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 »

I'm using the standard codes 0-4, and is working. Did set the time at "17". Is it possible that it is interfering with other apps?
mAiden
Member
Member
Posts: 330
Joined: Mon Jul 10, 2017 10:22 am

Re: Toon app: Afvalwijzer

Post by mAiden »

@rickvnl

For Twente Milieu you can generate a ical file maybe with this one

https://github.com/Timendus/afvalkalender

Test it on my own Toon, its work here.
Member of the Toon Software Collective
hdok
Starting Member
Starting Member
Posts: 22
Joined: Thu Jul 26, 2018 12:39 pm

Re: Toon app: Afvalwijzer

Post by hdok »

For gemeente Venlo one can generate an ical using the following link:
https://www.venlo.nl/trash-removal-cale ... ode/number

Would really appreciate if this one can be added..
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Will add both.... (second half of August)
member of the Toon Software Collective
Rudolf
Member
Member
Posts: 136
Joined: Mon Dec 04, 2017 8:50 pm

Re: Toon app: Afvalwijzer

Post by Rudolf »

I'm trying to use extra dates / custom icons with this app but it's not working; could you please take a look at my config and point out what's wrong.
Obviously I'm missing something...

Code: Select all

eneco-001-037311:~# cd /qmf/qml/apps/wastecollection
eneco-001-037311:/qmf/qml/apps/wastecollection-3.6# ls -l
-rw-r--r--    1 root     root          5417 Mar 27 18:26 Changelog.txt
-rw-r--r--    1 root     root          1797 Mar 27 18:26 EditTextLabel4421.qml
-rw-r--r--    1 root     root         49816 Mar 27 18:26 WastecollectionApp.qml
-rw-r--r--    1 root     root         17513 Mar 27 18:26 WastecollectionConfigurationScreen.qml
-rw-r--r--    1 root     root          1179 Mar 27 18:26 WastecollectionListDatesScreen.qml
-rw-r--r--    1 root     root          5075 Mar 27 18:26 WastecollectionTile.qml
drwxrwxr-x    2 root     root          1424 Aug  9 10:45 drawables
drwxrwxr-x    2 root     root           304 Mar 29 05:32 lang
-rw-r--r--    1 root     root           126 Mar 27 18:26 qmldir
-rw-r--r--    1 root     root           209 Aug 10 11:01 userSettings.json
-rw-r--r--    1 root     root             3 Mar 27 18:26 version.txt
-rw-r--r--    1 root     root           229 Mar 27 18:26 wastecollection.js
eneco-001-037311:/qmf/qml/apps/wastecollection-3.6# cat userSettings.json
{"Afvalverwerker":"1","Postcode":"xxxxxx","Huisnummer":"xx","Straatnummer":"0","ICSnummer":"0","DisplayIconVanafUur":18,"ExtraDatumsFile":"file:///root/waste.txt","ExtraDatumsIconsFolder":"file:///root/icons/"}
eneco-001-037311:/qmf/qml/apps/wastecollection-3.6# vi userSettings.json
eneco-001-037311:/qmf/qml/apps/wastecollection-3.6# cat /root/waste.txt
2018-08-11,A
2018-01-12,A
2018-01-13,A
2018-01-15,A
2018-01-26,C
2018-01-28,A
2018-02-03,A
2018-02-05,A
2018-03-22,A
2018-04-06,A
2018-04-14,A
2018-04-24,A
2018-04-26,A
2018-04-28,A
2018-05-13,D
2018-06-20,A
2018-06-27,C
2018-07-27,A
2018-09-19,A
2018-09-30,C
2018-10-13,A
2018-10-23,A
2018-10-28,C
2018-12-05,A
2018-12-08,A
2018-12-22,A
eneco-001-037311:/qmf/qml/apps/wastecollection-3.6# ls -l /root/icons/
-rw-r--r--    1 root     root          8227 Aug  9 10:16 A.png
-rw-r--r--    1 root     root          5850 Aug  9 10:16 B.png
-rw-r--r--    1 root     root          8693 Aug  9 10:16 C.png
-rw-r--r--    1 root     root          7355 Aug  9 10:16 D.png
-rw-r--r--    1 root     root          7492 Aug  9 10:16 Metal.png
-rw-r--r--    1 root     root            73 Aug  9 10:48 iconLabels.txt
eneco-001-037311:/qmf/qml/apps/wastecollection-3.6# cat /root/icons/iconLabels.txt
{ "A": "Verjaardag", "B": "Afspraak", "C": "Trouwdag", "D": "Trouwdag" }
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Looks fine at first sight. Question: do you actually use waste provider 1, and just put 'x''s for your zipcode/housenr to hide your address?
If you don't use waste provider 1 (mijnafvalwijzer.nl) you should select waste provider 0 (zero).

Will test with your data as well next week
member of the Toon Software Collective
Rudolf
Member
Member
Posts: 136
Joined: Mon Dec 04, 2017 8:50 pm

Re: Toon app: Afvalwijzer

Post by Rudolf »

Address hidden on purpose; provider 1 works fine for me.
If I point extraDates-file to a non-existing file it shows proper dates; if I point to the actual file nothing is shown.
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've upgraded the app from 3.6 to 4.3 and i noticed that the iconlabels are not working any more.
I'm not seeing the text in the screen, but only a " - "

This is my content of iconlabels.txt

Code: Select all

{"A": "Verjaardag", "B": "Trouwdag"}
Image
mAiden
Member
Member
Posts: 330
Joined: Mon Jul 10, 2017 10:22 am

Re: Toon app: Afvalwijzer

Post by mAiden »

madpatrick wrote:Hi Toonz,

I've upgraded the app from 3.6 to 4.3 and i noticed that the iconlabels are not working any more.
I'm not seeing the text in the screen, but only a " - "

This is my content of iconlabels.txt

Code: Select all

{"A": "Verjaardag", "B": "Trouwdag"}
Image
Its the path to custom icons correct?
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 »

mAiden wrote: Its the path to custom icons correct?
The path was not adjusted and still good.
Somehow today the text was displayed again after a restart of Toon (had already done a restart yesterday)
Gleno0hh
Starting Member
Starting Member
Posts: 12
Joined: Fri Aug 10, 2018 8:50 pm

Re: Toon app: Afvalwijzer

Post by Gleno0hh »

madpatrick wrote:
mAiden wrote: Its the path to custom icons correct?
The path was not adjusted and still good.
Somehow today the text was displayed again after a restart of Toon (had already done a restart yesterday)
Got the same problem. Not fixed after a couple of reboots. Waste is displayed fine, custom dates arn't.
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: Afvalwijzer

Post by Toonz »

Hi all,

I will for sure look into the issues reported here with the custom dates/labels and probably change the logic of the app to make it more robust.
One other thing to mention: the app will only start collecting data 5 minutes after the Toon gui (more specifically, the waste collection app) has started.
This has been done on purpose to not delay the lengthy startup process of the gui itself.

Unfortunately, I have to take care of some unexpected private stuff after returning from leave.
Then my first priority is creating the new resources files for 4.18.
After that I will focus on the wastecollection app.

Kind regardz,

Toonz
member of the Toon Software Collective
Post Reply

Return to “Toon Apps”