Toon app: Afvalwijzer

Forum about forum-provided applications on Toon

Moderator: marcelr

Re: Toon app: Afvalwijzer

Postby Smiggel » Wed Jul 11, 2018 5:13 pm

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!
Smiggel
Starting Member
Starting Member
 
Posts: 28
Joined: April 2018

Re: Toon app: Afvalwijzer

Postby MyZ » Fri Jul 20, 2018 8:01 pm

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?
MyZ
Starting Member
Starting Member
 
Posts: 18
Joined: June 2018

Re: Toon app: Afvalwijzer

Postby Toonz » Sun Jul 22, 2018 4:36 am

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.
Toonz
Advanced Member
Advanced Member
 
Posts: 751
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby MyZ » Sun Jul 22, 2018 6:31 am

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?
MyZ
Starting Member
Starting Member
 
Posts: 18
Joined: June 2018

Re: Toon app: Afvalwijzer

Postby mAiden » Sun Jul 22, 2018 10:47 am

@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.
mAiden
Member
Member
 
Posts: 85
Joined: July 2017

Re: Toon app: Afvalwijzer

Postby hdok » Tue Jul 31, 2018 10:14 am

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..
hdok
Starting Member
Starting Member
 
Posts: 7
Joined: July 2018

Re: Toon app: Afvalwijzer

Postby Toonz » Tue Jul 31, 2018 1:15 pm

Will add both.... (second half of August)
Toonz
Advanced Member
Advanced Member
 
Posts: 751
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby Rudolf » Fri Aug 10, 2018 7:09 pm

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" }
Rudolf
Member
Member
 
Posts: 109
Joined: December 2017

Re: Toon app: Afvalwijzer

Postby Toonz » Fri Aug 10, 2018 10:15 pm

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
Toonz
Advanced Member
Advanced Member
 
Posts: 751
Joined: December 2016

Re: Toon app: Afvalwijzer

Postby Rudolf » Sun Aug 12, 2018 7:51 pm

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.
Rudolf
Member
Member
 
Posts: 109
Joined: December 2017

Re: Toon app: Afvalwijzer

Postby madpatrick » Sun Aug 12, 2018 7:57 pm

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
User avatar
madpatrick
Member
Member
 
Posts: 50
Joined: December 2017
Location: Zuid-Holland

Re: Toon app: Afvalwijzer

Postby mAiden » Sun Aug 12, 2018 9:00 pm

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?
mAiden
Member
Member
 
Posts: 85
Joined: July 2017

Re: Toon app: Afvalwijzer

Postby madpatrick » Mon Aug 13, 2018 8:00 pm

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)
User avatar
madpatrick
Member
Member
 
Posts: 50
Joined: December 2017
Location: Zuid-Holland

Re: Toon app: Afvalwijzer

Postby Gleno0hh » Tue Aug 14, 2018 10:13 am

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.
Gleno0hh
Starting Member
Starting Member
 
Posts: 10
Joined: August 2018

Re: Toon app: Afvalwijzer

Postby Toonz » Tue Aug 14, 2018 12:48 pm

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
Toonz
Advanced Member
Advanced Member
 
Posts: 751
Joined: December 2016

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest