Page 31 of 86

Re: Toon app: Afvalwijzer

Posted: Wed Jul 11, 2018 6:13 pm
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!

Re: Toon app: Afvalwijzer

Posted: Fri Jul 20, 2018 9:01 pm
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?

Re: Toon app: Afvalwijzer

Posted: Sun Jul 22, 2018 5:36 am
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.

Re: Toon app: Afvalwijzer

Posted: Sun Jul 22, 2018 7:31 am
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?

Re: Toon app: Afvalwijzer

Posted: Sun Jul 22, 2018 11:47 am
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.

Re: Toon app: Afvalwijzer

Posted: Tue Jul 31, 2018 11:14 am
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..

Re: Toon app: Afvalwijzer

Posted: Tue Jul 31, 2018 2:15 pm
by Toonz
Will add both.... (second half of August)

Re: Toon app: Afvalwijzer

Posted: Fri Aug 10, 2018 8:09 pm
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" }

Re: Toon app: Afvalwijzer

Posted: Fri Aug 10, 2018 11:15 pm
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

Re: Toon app: Afvalwijzer

Posted: Sun Aug 12, 2018 8:51 pm
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.

Re: Toon app: Afvalwijzer

Posted: Sun Aug 12, 2018 8:57 pm
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

Re: Toon app: Afvalwijzer

Posted: Sun Aug 12, 2018 10:00 pm
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?

Re: Toon app: Afvalwijzer

Posted: Mon Aug 13, 2018 9:00 pm
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)

Re: Toon app: Afvalwijzer

Posted: Tue Aug 14, 2018 11:13 am
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.

Re: Toon app: Afvalwijzer

Posted: Tue Aug 14, 2018 1:48 pm
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