MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    AfterShip

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 4 Posters 1.3k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      ruff.hi
      last edited by

      I just added this to my mm and it worked … while Aftership only had a single package to be delivered. I subsequently added some more packages … and now it is just showing LOADING.

      I will try to update this … but I am not sure where to start? Does anyone have an example of the info that the API returns?

      1 Reply Last reply Reply Quote 0
      • R Offline
        ruff.hi
        last edited by ruff.hi

        Weird … is started showing packages again today. There were some UPS packages that dropped off the ‘to be delivered’ list … maybe this code doesn’t like UPS?

        I would also like it to show DELIVERED that was less than X days ago (ie show packages that were delivered today but don’t show them tomorrow).

        Edit: Well - that was easy. There is a show_delivered boolean that … shows the delivered packages once I set it to 1.

        1 Reply Last reply Reply Quote 0
        • R Offline
          ruff.hi
          last edited by

          Further … I have been playing some more with this and added color coding for delivered and not delivered items. I also added a ‘keep delivered items in list’ cutoff so you can see things delivered today … or any time over the last week.

          I might have to do some research about forking.

          1 Reply Last reply Reply Quote 0
          • R Offline
            ruff.hi
            last edited by

            The aftership code doesn’t like it when the aftership API returns ‘pending’ or ‘Tracking details will be available once carrier returns updates. Please check again later.’. It can’t seem to load the packages.

            I can debug this … but I don’t know how to get output from the code. More googling to see if I can get this module to create a log file.

            1 Reply Last reply Reply Quote 0
            • R Offline
              ruff.hi
              last edited by

              Debugging is pretty easy.

              Turn on your browser console (ctrl-sht-j) and then put log statements in your code.

              Log.info('ruff: shipment ’ + shipments.tag)

              They will turn up in the log. Aftership was throwing an error when a shipment was pending, the latest history message was trying to display even though there was a check for history = null. I added a check for Pending and now pending displays.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy