Toon app: PostNL

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon App: PostNL

Post 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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1871
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon App: PostNL

Post 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.....
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1871
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon App: PostNL

Post 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
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1871
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon App: PostNL

Post 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
member of the Toon Software Collective
Toonz
Forum Moderator
Forum Moderator
Posts: 1871
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: PostNL

Post 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
member of the Toon Software Collective
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon App: PostNL

Post 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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1871
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon App: PostNL

Post 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
member of the Toon Software Collective
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon App: PostNL

Post 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.
Toonz
Forum Moderator
Forum Moderator
Posts: 1871
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: PostNL

Post by Toonz »

which firmware are you using?
Toon 1 or Toon 2?
which version of package tsc-certificates is currently installed?
member of the Toon Software Collective
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon app: PostNL

Post 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!
Toonz
Forum Moderator
Forum Moderator
Posts: 1871
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: PostNL

Post 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.
member of the Toon Software Collective
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon app: PostNL

Post 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
Toonz
Forum Moderator
Forum Moderator
Posts: 1871
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: PostNL

Post 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.
member of the Toon Software Collective
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon app: PostNL

Post 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.
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon app: PostNL

Post by michel30 »

Hello,

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

Return to “Toon Apps”