This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Official

[App] PostNL by Athom (v1.0.1)

edited July 2018 in Apps

Post NL 

This app adds support for Jouw PostNL  (https://jouw.postnl.nl) packet traking from your Homey .


Links:


Supported Languages:

  • English
  • Dutch

Feedback:

Any requests please post them in the Post NL topic on the Athom Forum or contact Athom on Slack    
If possible, please report issues at the general Homey issues section on Github otherwise in the above mentioned topic.

Forum Discussion

Initial Discussion created by @GeurtDijker,  most relevant old discussion will be appended. 
Ask any Moderator to add/update/correct this Discussion.

Tagged:

Comments

  • keverjeroenkeverjeroen Member
    edited February 2018
    ModBreak: Original Discussion "[APP idea] PostNL track & trace via Homey" merged below New Main discussion (@GeurtDijker)

    Hi,

    It looks like PostNL has an API (https://developer.postnl.nl/) available. It would be great to have an app for Homey that can:

    - Connect to my personal PostNL account (https://jouw.postnl.nl)
    - Triggers for different states (Nieuw pakket, Afgifte, Sorteercentrum, Onderweg, Bezorgd)
    - Actions to give information (Afzender, Bezorgmoment, Gewicht, Omschrijving)

    Examples:
    - If New pakket, then say (voice) 'Er is een nieuw pakket onderweg, van <afzender>. Verwachte bezorgmoment is <bezorgmoment>.'
    - If Status of pakket changed, and status = Onderweg, then say (voice) 'De bezorger is onderweg'
    - If Status of pakket changed, and status = Afgifte, and <gewicht> =>20, then say (voice) 'Er wordt een zwaar pakket geleverd van <gewicht> kilo op <bezorgmoment>'.

    I hope someone will pick this up to make a great new Homey app!
  • msmitsmsmits Member
    edited October 2016
    This idea was on Trello: https://trello.com/c/oWUdqf9K/82-postnl but it's archived now.
    I don't know why? But this would be great! :smile: 
  • jjtbsomhorstjjtbsomhorst Member
    edited October 2016
    I have send PostNL a mail if they could grant me access to the api without being a customer because I thought about the exact same things for homey. 

    But if anyone on the forum happens to have already a account/access to the Api that would speed up things ofcourse;)
  • Yeah pity Athom removed it from Trello. I get quite a few packages via PostNL and it would be great to attach my account to Homey
  • Thats just a contact form. I haven't heard from them . Almost 2 days left. 
  • I tried this more then a week ago. Still no reaction.
  • PostNL.... nice effort, not much chance to get their cooperation I'm afraid. My experience via our warehouse are not great....
  • If we don't get access to the API maybe someone can use Cheerio for scraping the original page? https://github.com/cheeriojs/cheerio
  • I Just received an answer from postnl. They dont allow me Access Without an business account :(
  • I Just received an answer from postnl. They dont allow me Access Without an business account :(
    Thats a shame! Probably the reason why Athom archived the idea... 

    So... the only way is scraping the data :smile: 
  • Yeah. I think so. I decompiled the android app and noticed that they are using a webview to get data from a specific mobile website. But this website seems to be unresponsive. Probably because it detects a real browser and some things like cookies are not correctly set. I guess.. 

    I'm gonna dig into it but not today
  • I have experience using the PostNL API, or at least parts of it. As far as I know, API access is bound to the business account you have at PostNL, ie for sending parcels. So you can't just get the status of any parcel using the API, only for the parcels that you've sent as a business, so you can inform your customers.
  • Yeah that is also my understanding from the docs I have found. Lets see if we can get the mobile views ,that are referenced in the app, working. 
  • There are mobile apps and websites that can track parcels from PostNL. But there you have to enter the track&trace code. That is'nt an option with Homey.
  • In the app you can login and if someone sends you a package it will appear in the app. I hope that I can get the mobile ui to work in a browser (using postman or something similar) so we can mimic that behavior. 
  • Let's up this topic once more. It's almost a year later, maybe the API has changed, maybe there are new people on the forum that wanna try to make a Homey app!? ;)

    The PostNL app (Android) is getting better and better. It even shows regular letters that are on there way to my address (still beta). So there is a lot of data available, the only question is, can it be used in a Homey app?
  • Woooww. I see a PostNL app in the appstore now: https://apps.athom.com/app/nl.postnl

    Cool! Thanks athom.
  • Great! The wife acceptance factor just shot through the roof!

    However, the app only lets you use it as a trigger. So I can only set a flow using the "er is een pakketje onderweg" as a trigger. That means Homey will wake me up at 3pm to tell me there is a parcel on its way.

    Is it possible to use a trigger like a motion sensor and use the PostNL app for the "then" part? Than I can let my Homey tell me that a parcel is on its way when I walk in to the living room in the morning... :)
  • keverjeroenkeverjeroen Member
    edited April 2018
    @Mecallie See the github for that. There is already a suggestion, maybe you can add your comment to that? 
  • Added my comment to the GitHub, hope that the delivery time window can be added, that's really the main thing I'm missing at the moment. Want to have a notification that states: Your package from X is delivered today between Y and Z".
  • Sanderrr said:
    Added my comment to the GitHub, hope that the delivery time window can be added, that's really the main thing I'm missing at the moment. Want to have a notification that states: Your package from X is delivered today between Y and Z".
    Not sure why they have not added that yet as it is just 2 extra lines of code.. :( I miss that feature too..
  • Maybe it’s an idea u write that 2 lines of code and make a pull request?
  • Sanderrr said:
    Added my comment to the GitHub, hope that the delivery time window can be added, that's really the main thing I'm missing at the moment. Want to have a notification that states: Your package from X is delivered today between Y and Z".
    Not sure why they have not added that yet as it is just 2 extra lines of code.. :( I miss that feature too..
    The app has no prio at Athom at the moment, so if some one can help them with the code, that would be great!

    https://github.com/athombv/nl.postnl/issues/1

  • Sanderrr said:
    Added my comment to the GitHub, hope that the delivery time window can be added, that's really the main thing I'm missing at the moment. Want to have a notification that states: Your package from X is delivered today between Y and Z".
    Not sure why they have not added that yet as it is just 2 extra lines of code.. :( I miss that feature too..
    The app has no prio at Athom at the moment, so if some one can help them with the code, that would be great!

    https://github.com/athombv/nl.postnl/issues/1

    I will put it on github and see what happens. this is not working for me.. 
  • ZiglarZiglar Member
    @Athom
    please add a general trigger "state had changed" and tag "state"
  • Sanderrr said:
    Added my comment to the GitHub, hope that the delivery time window can be added, that's really the main thing I'm missing at the moment. Want to have a notification that states: Your package from X is delivered today between Y and Z".
    Not sure why they have not added that yet as it is just 2 extra lines of code.. :( I miss that feature too..
    The app has no prio at Athom at the moment, so if some one can help them with the code, that would be great!

    https://github.com/athombv/nl.postnl/issues/1

    The issue is now moved: https://github.com/athombv/homey/issues/2610 
Sign In or Register to comment.