Page 15 of 86

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Dec 30, 2017 1:07 am
by Toonz
gerlag wrote:Hi,
Could it be that mijnafvalwijzer.nl (waste collector 1) changed their format? It gives no info at the tile.
(Note: our gemeente (Castricum) changed to this provider per 1/1/2018, the website of mijnafvalwijzer.nl shows already the correct information)
mijnafvalwijzer doesn't yet return a json data set for your zipcode (I tested with 1901AC housenr 1).
Probably best to wait a couple of days to see whether this will start working in January.

App is using this call: http://json.mijnafvalwijzer.nl/?method= ... isnummer=1
example which does return data:
http://json.mijnafvalwijzer.nl/?method= ... snummer=33

Re: Toon app: waste collection (Afvalwijzer)

Posted: Sat Dec 30, 2017 10:27 pm
by Toonz
Hi all,

last update for 2017, making good progress implementing the https online retrieval of ICS files.
So far cyclusnv.nl, dar.nl and cure-afvalbeheer.nl data can be retrieved online.
Katwijk.nl and cranendonck.nl are not working unfortunately, not because of https, but because they only provide data when logged in.

I will stop coding for now and continue in January.
All the best wishes for 2018 and watch out for the new release soonish......

Kind regardz,

Toonz

Re: Toon app: waste collection (Afvalwijzer)

Posted: Tue Jan 02, 2018 11:04 am
by jozg
Hello Toonz,

For some reason i can't get it to work, it shows dates but the wastecollection type is onbekend.
I installed the 2.5 ipk package on my toon, and entered the correct settings (i think).
It looks like, the toon is showing the correct dates of waste collection (rest, papier etc.) but the dates showes "onbekend"

My provider is mijnafvalwijzer.nl
But when i'm using the json command:
http://json.mijnafvalwijzer.nl/?method= ... snummer=30

It shows a lot of errors,is that the problem maybe?.

Thanks for helping.

Regards,

Re: Toon app: waste collection (Afvalwijzer)

Posted: Tue Jan 02, 2018 3:42 pm
by Toonz
jozg wrote:Hello Toonz,

It shows a lot of errors,is that the problem maybe?.

Thanks for helping.

Regards,
No, output is ok, I just need to add descriptionsfrom your community to the app.

EDIT: you have a new type of waste: "Rest afval & gft", never seen before. Need to do some coding changes to show these as separate icons.
I also need to add your other waste descriptions (which differ from other communities). So far with standardisation in waste land....

EDIT2: Done. Will be in next release (soon). Your tile is now looking like this:
Capture.PNG
Capture.PNG (15.35 KiB) Viewed 11459 times

Re: Toon app: waste collection (Afvalwijzer)

Posted: Tue Jan 02, 2018 6:58 pm
by jnieuw
Hi Toonz,

You can remove "recyclemanager". They stopped :(

Is there a way to upload your own ics/json/txt file or url?

Thanks for all your hard work!

Re: Toon app: waste collection (Afvalwijzer)

Posted: Wed Jan 03, 2018 1:54 am
by Toonz
jnieuw wrote:Hi Toonz,
Is there a way to upload your own ics/json/txt file or url?
Thanks for all your hard work!
Yes, you can...

Choose waste provider '0' in the configuration screen and upload the following textfile: /var/volatile/tmp/wasteDates.txt
Because this file is place in volatile memory, it will be deleted if you do a full reboot/power down of Toon (just restarting the gui is no problem).
So keep a local copy somewhere (either in flash memory on Toon or your PC).

Contents of the file (sorted by date), lines separated by <LF> only, no <CR><LF>
yyyy-mm-dd,x

where x is:
0 : "Restafval"
1 : "Plastic/Metaal/Drankpakken"
2 : "Papier/karton"
3 : "Groente/Fruit/Tuinafval"
4 : "Snoeiafval"
5 : "Textiel"
6 : "Steen en puin"
7 : "KGA"
8 : "Groot vuil"
9 : "Kunststoffen"

Example attached in the zipfile

Re: Toon app: waste collection (Afvalwijzer)

Posted: Wed Jan 03, 2018 8:19 am
by jozg
Toonz wrote: No, output is ok, I just need to add descriptionsfrom your community to the app.

EDIT: you have a new type of waste: "Rest afval & gft", never seen before. Need to do some coding changes to show these as separate icons.
I also need to add your other waste descriptions (which differ from other communities). So far with standardisation in waste land....

EDIT2: Done. Will be in next release (soon). Your tile is now looking like this:
Capture.PNG
Hello Toonz,

Good work, thank you very much.

Regards,

Re: Toon app: waste collection (Afvalwijzer)

Posted: Wed Jan 03, 2018 9:43 am
by jnieuw
Toonz wrote:
jnieuw wrote:Hi Toonz,
Is there a way to upload your own ics/json/txt file or url?
Thanks for all your hard work!
Yes, you can...

...
Thank you!
Could you add a manual URL option for files like these? That would fix the reboot problems and could also give other people the opportunity to host files like these to fix the problematic data providers.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Wed Jan 03, 2018 2:33 pm
by Toonz
jnieuw wrote:

Thank you!
Could you add a manual URL option for files like these? That would fix the reboot problems and could also give other people the opportunity to host files like these to fix the problematic data providers.
Good suggestion! Wiil certainly implement this..

Re: Toon app: waste collection (Afvalwijzer)

Posted: Thu Jan 04, 2018 9:31 pm
by globegrabber
For all members a great and healty 2018.

As special for form-member Toonz,
In continuation and on discontinue update the waste collection by recyclemanager.nl on the 01-01-2018,
as i now find out is that i was linked by the website from our Township (Gemeente Hulst) to the site of our waste collector in our case https://www.zrd.nl,
There you can select the corresponding zip code en house number in my case 4587ER/ 25 after pressing the button (bekijk) you will be redirected to the next page en be logged on in my street and town.
On this page witch is https, you can see in the second column the waste collection agenda, For this is the site of the waste collector it selfs, i think it would be keen to use the data from here, here you can see the scheme of waste collection by date, type of waste and by a pictogram. as i now to little about programing and codes i want to lay this info over to be judged of this data is useful info to
implicate and can used to be extended Toons waste collectors tail with data witch is generated in this window, as i have informed that there will be coming up a new app to replace the app of waste collector recyclemanager.nl why to wait on a new app as maybe the use of the data out of https://www.zrd.nl a logical step. As for waiting on that new app witch is not out to be used for this moment, and we do not now how this going to be look, is the data out of the website of https://www.zrd.nl an option?

Greetz,

Globegrabber

Re: Toon app: waste collection (Afvalwijzer)

Posted: Thu Jan 04, 2018 11:25 pm
by Vibestar
They have changed the website for my waste collection. Can you add http://www.afvalstoffendienst.nl/afvalkalender. Tnx in regard.

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jan 05, 2018 11:49 am
by Toonz
globegrabber wrote:... is the data out of the website of https://www.zrd.nl an option?
Yes, just added. Will be in next release

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jan 05, 2018 11:54 am
by Toonz
Vibestar wrote:They have changed the website for my waste collection. Can you add http://www.afvalstoffendienst.nl/afvalkalender. Tnx in regard.
Yes, can be done, but not in the first next release (about to be published)

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jan 05, 2018 5:34 pm
by globegrabber
Ok, Thanks Toonz, keep up the great work.
Will see it appearing in the next upgrade of the wastecollectors app (afvalwijzer), and keep you informed about it.
Under what number is will the zrd.nl be selected (wastecollector), or can i find this in the infolog of the upgraded wastecollecting (afvalwijzer) app when upgraded?
And will there be any need of adjusting, or can it directly work with the https environment ?

With kind regards.
Globegrabber

Re: Toon app: waste collection (Afvalwijzer)

Posted: Fri Jan 05, 2018 6:27 pm
by Toonz
globegrabber wrote:Under what number is will the zrd.nl be selected (wastecollector), or can i find this in the infolog of the upgraded wastecollecting (afvalwijzer) app when upgraded?
And will there be any need of adjusting, or can it directly work with the https environment ?
Globegrabber
Hi,

the wastecollection release is ready but I want to do thorough testing first and wait if anything comes up related to the certificates after the buienradar release earlier today.
To warm you up I can give you the changelog for release 2.6:
- removed recyclemanager.nl provider
- added provider afvalalert.nl (provider 15: enter zipcode/house nr in config screen)
- added provider zrd.nl (provider 18: enter calendar id in configscreen)
- implemented automatic retrieval via https for rd4info.nl, now need to enter zipcode and housenr in the config screen
- implemented automatic retrieval via https for cure-afvalbeheer.nl,cyclusnv.nl, dar.nl, zrd.nl and meerlanden.nl
for these 5 providers you will need to enter the ICS calendar id in the config screen (the last part of the URL: http://afvalkalender.zrd.nl/ical/[b]0677200000631497[/b])
Existing cron jobs can be stopped for these providers.

I plan to release the app next weekend latest...

Kind regardz,

Toonz