Page 3 of 10

Re: Toon App: PostNL

Posted: Wed Oct 02, 2019 11:31 pm
by Templar
Toonz wrote:hi just checking, have you added the package to your online Postnl account?
No, I didn't add the package. It just appeared in my Android App.
According to userSettings.json userid & password are stored.

Status is now: "Zending is bij PostNL". Still no notification.

Re: Toon App: PostNL

Posted: Thu Oct 03, 2019 2:59 pm
by Toonz
hmm, also have no data on my Toon 1 (Toon 2 is ok), weird.
After first look I noticed don't don't get an accesstoken based on the credentials (didn't change that piece of code).
Need to do some more debugging.

Quite a number of devices logging in now with my credential simultaneously, hope that is not a problem ;-)

EDIT: now also broken on my Toon 2 (no data)
just hope PostNL is not blocking it, to be continued soon.....

Re: Toon App: PostNL

Posted: Thu Oct 03, 2019 9:43 pm
by Toonz
Beats me, everything seems to work again, without me doing anything ?!?!?!?
I will still create a new version 1.0.4 which dumps the inbox json data in a file on Toon, will make future debugging much easier

Re: Toon App: PostNL

Posted: Thu Oct 03, 2019 10:24 pm
by Toonz
hi all,

version 1.0.4 is available in the ToonStore.
Changelog:
- saves retrieved package data to /var/volatile/tmp/postnl_inbox.json
this will help to debug data related issues in case packages are not shown on screen
- login credentials are now saved in /mnt/data/tsc/postnl_userSettings.json
(this will be done for all apps in the next few weeks, the reason why is to be revealed later :-) )

N.B. I have not changed anything to get the app working again, it must have been changes/maintenance at the PostNL site.

Kind regardz,

Toonz

Re: Toon app: PostNL

Posted: Sun Oct 06, 2019 7:23 pm
by Toonz
Hi all,

I have published a new release in the ToonStore (1.0.5).

Changelog:
- user settings are now stored in the persistent folder /mnt/data/tsc with the proper filename now, preparing for exciting future stuff

You will see this change coming for all apps which store user data
This release doesn't contain any other new functionality.

Kind regardz,

Toonz

Re: Toon App: PostNL

Posted: Mon Oct 14, 2019 7:20 pm
by Templar
Toonz wrote: - saves retrieved package data to /var/volatile/tmp/postnl_inbox.json
this will help to debug data related issues in case packages are not shown on screen
N.B. I have not changed anything to get the app working again, it must have been changes/maintenance at the PostNL site.
Hi Toonz,

There is another package coming tomorrow and it isn't listed in the app. Also no postnl_inbox.json file.

Re: Toon App: PostNL

Posted: Mon Oct 14, 2019 7:35 pm
by Toonz
Templar wrote:There is another package coming tomorrow and it isn't listed in the app. Also no postnl_inbox.json file.
Do you have this file: /var/volatile/tmp/postnl_inbox.json on your Toon (is created by app version 1.0.5)?
Does it look like a correct json data file?
If yes, can you PM it to me?

Kind regardz,

Toonz

Re: Toon App: PostNL

Posted: Mon Oct 14, 2019 9:47 pm
by Templar
Toonz wrote:
Templar wrote:There is another package coming tomorrow and it isn't listed in the app. Also no postnl_inbox.json file.
Do you have this file: /var/volatile/tmp/postnl_inbox.json on your Toon (is created by app version 1.0.5)?
Does it look like a correct json data file?
If yes, can you PM it to me?

Kind regardz,

Toonz
Forgot to tell you that, no logfile.

Re: Toon app: PostNL

Posted: Mon Oct 14, 2019 10:14 pm
by Toonz
which firmware are you using?
Toon 1 or Toon 2?
which version of package tsc-certificates is currently installed?

Re: Toon app: PostNL

Posted: Mon Oct 14, 2019 10:59 pm
by Templar
Toonz wrote:which firmware are you using?
Toon 1 or Toon 2?
which version of package tsc-certificates is currently installed?
Toon 1
Firmware 5.13.12
TSC 2.1.0
tsc certificates 1.0.2

I just installed the tsc certificates 1.1.1 package too and now the Postnl app works!

Re: Toon app: PostNL

Posted: Mon Oct 14, 2019 11:02 pm
by Toonz
thanks for the confirmation. I will make tsc-certificates 1.1.1 a dependency of this app, so that it will be installed automatically in the future.

Re: Toon app: PostNL

Posted: Tue Oct 15, 2019 9:41 pm
by Templar
FYI, there are more postal services with API 's.

API Gateway DHL Parcel
https://api-gw.dhlparcel.nl/docs/
DPD/UPS etc
https://docs.postmen.com/dpd-nl.html

Re: Toon app: PostNL

Posted: Wed Oct 16, 2019 12:39 pm
by Toonz
for DHL you will need a business account in order to get an API-key :-(
DPD/UPS seems doable. Is there any demand to support them as well?
Personally I hardly get any shipments via them, 90% is Postnl for me.

Re: Toon app: PostNL

Posted: Fri Nov 08, 2019 12:59 am
by Templar
Templar wrote:
Toonz wrote:which firmware are you using?
Toon 1 or Toon 2?
which version of package tsc-certificates is currently installed?
Toon 1
Firmware 5.13.12
TSC 2.1.0
tsc certificates 1.0.2

I just installed the tsc certificates 1.1.1 package too and now the Postnl app works!
Okay, I ran update-rooted.sh -f for implementing the memory tuning options as mentioned in this post: domoticaforum.eu/viewtopic.php?f=104&am ... 540#p92392
After that the Postnl info didn't appear anymore, even after reinstalling the tsc certificates.

According to userSettings.json userid & password are stored and postnl_inbox.json has data stored.

Re: Toon app: PostNL

Posted: Fri Nov 08, 2019 11:12 am
by michel30
Hello,

Yes you can, with -f it does only fix files without a version update.