Toon app: PostNL

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Toon App: PostNL

Postby Templar » Wed Oct 02, 2019 10:31 pm

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.
Templar
Member
Member
 
Posts: 136
Joined: March 2011
Location: Netherlands

Re: Toon App: PostNL

Postby Toonz » Thu Oct 03, 2019 1:59 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1253
Joined: December 2016

Re: Toon App: PostNL

Postby Toonz » Thu Oct 03, 2019 8:43 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1253
Joined: December 2016

Re: Toon App: PostNL

Postby Toonz » Thu Oct 03, 2019 9:24 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1253
Joined: December 2016

Re: Toon app: PostNL

Postby Toonz » Sun Oct 06, 2019 6:23 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1253
Joined: December 2016

Re: Toon App: PostNL

Postby Templar » Mon Oct 14, 2019 6:20 pm

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.
Templar
Member
Member
 
Posts: 136
Joined: March 2011
Location: Netherlands

Re: Toon App: PostNL

Postby Toonz » Mon Oct 14, 2019 6:35 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1253
Joined: December 2016

Re: Toon App: PostNL

Postby Templar » Mon Oct 14, 2019 8:47 pm

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.
Templar
Member
Member
 
Posts: 136
Joined: March 2011
Location: Netherlands

Re: Toon app: PostNL

Postby Toonz » Mon Oct 14, 2019 9:14 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1253
Joined: December 2016

Re: Toon app: PostNL

Postby Templar » Mon Oct 14, 2019 9:59 pm

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!
Templar
Member
Member
 
Posts: 136
Joined: March 2011
Location: Netherlands

Re: Toon app: PostNL

Postby Toonz » Mon Oct 14, 2019 10:02 pm

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1253
Joined: December 2016

Re: Toon app: PostNL

Postby Templar » Tue Oct 15, 2019 8:41 pm

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
Templar
Member
Member
 
Posts: 136
Joined: March 2011
Location: Netherlands

Re: Toon app: PostNL

Postby Toonz » Wed Oct 16, 2019 11:39 am

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
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1253
Joined: December 2016

Re: Toon app: PostNL

Postby Templar » Thu Nov 07, 2019 11:59 pm

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.
Templar
Member
Member
 
Posts: 136
Joined: March 2011
Location: Netherlands

Re: Toon app: PostNL

Postby michel30 » Fri Nov 08, 2019 10:12 am

Hello,

Yes you can, with -f it does only fix files without a version update.
michel30
Member
Member
 
Posts: 232
Joined: August 2017

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest