Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading parcel module... issue #13

Closed
enjoynering opened this issue May 12, 2020 · 5 comments
Closed

Loading parcel module... issue #13

enjoynering opened this issue May 12, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@enjoynering
Copy link

Hello,

Firstly, thanks for the module, it seems to be amazing.

I have not been able to set up because of the message:

Loading parcel module...

I have copy paste this:

`{
module: 'MMM-Parcel',
position: 'top_right', // This can be any of the regions. Best results in left or right regions.
header: 'My Parcels', // This is optional
config: {

apiKey: 'My api key' // Your free API Key from aftership.com

}

},`

Loading
Api

@RienduPre
Copy link

I have the same issue?
Any solution found?

@bertdeelman
Copy link

bertdeelman commented Nov 4, 2020

Hi,

I've got the same issue. Two magic mirrors, two different API keys. At one MM the module is working fine. At the other MM the MMM-Parcel modules is not working. Same error message as above: "Loading parcel module...".

Any idea how to fix this? Where to search? The API is tested with Postman and at the other MM.

TypeError: aftershipSDK is not a constructor
at Class.fetchShipments (/home/pi/MagicMirror/modules/MMM-Parcel/node_helper.js:91:22)
at Class.startUpdateNext (/home/pi/MagicMirror/modules/MMM-Parcel/node_helper.js:126:8)
at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Parcel/node_helper.js:116:9)
at Socket. (/home/pi/MagicMirror/js/node_helper.js:112:11)
at Socket.emit (events.js:200:13)
at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
at processTicksAndRejections (internal/process/task_queues.js:82:9)

Regards,
Bert

@Jsarihan
Copy link

Just got the module and ran into the same bug. Seems like AfterShip updated their sdk so "latest" in package.json won't work. Here's my intermediary fix - I may fork and update to new AfterShip SDK eventually.

FIX:

  • Go to modules/MMM-Parcel
  • Update package.json dependencies with
"dependencies": {
    "aftership": "5.3.4",
    "google-translate-api": "^2.3.0"
  },
  • run npm install from modules/MMM-Parcel
  • restart magic mirror

@Black-Zero
Copy link

Hello,

your intermediary fix solved my problem with "Loading parcel module...", but now I have "No Shipment Data" although I have some shipments listed on AfterShip.

Has anyone a solution for this problem?

Thank you very much!

@martinkooij
Copy link
Owner

Aftership has become a paying API ($199,- / month!!!). I have changed the code to use Tracktry.com. That one seems to be free (see Readme.md). Also I cleaned some code.

@martinkooij martinkooij added the enhancement New feature or request label Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants