Giter VIP home page Giter VIP logo

mmm-parcel's People

Contributors

martinkooij avatar mikebishop avatar mykle1 avatar niklaswa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mmm-parcel's Issues

Status is "undefined"

Packages which were shipped today show undefined; appears to be happening in this code:

var headerStatus = parcelStatustext[parcelStatus.indexOf(p.status)];

...where p.status is "InfoReceived". Since that's not in parcelStatus, it fails. I assume it's equivalent to "pending".

AfterShip API has become paying?

[2020-11-27 12:27:44.403] [LOG] Fri Nov 27 2020 12:27:44 GMT+0100 (heure normale d’Europe centrale) Error: You don't have permission to access AfterShip API. Select a plan at https://admin.aftership.com/settings/billing to get access to premium features at Function.getApiError (/home/pi/MagicMirror/modules/MMM-Parcel/node_modules/aftership/lib/error/error.js:51:15) at Request._callback (/home/pi/MagicMirror/modules/MMM-Parcel/node_modules/aftership/lib/handler.js:64:31) at Request.self.callback (/home/pi/MagicMirror/modules/MMM-Parcel/node_modules/request/request.js:185:22) at Request.emit (events.js:200:13) at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-Parcel/node_modules/request/request.js:1161:10) at Request.emit (events.js:200:13) at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-Parcel/node_modules/request/request.js:1083:12) at Object.onceWrapper (events.js:288:20) at IncomingMessage.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) { type: 'Forbidden', message: "You don't have permission to access AfterShip API. Select a plan at " + 'https://admin.aftership.com/settings/billing to get access to premium ' + 'features', code: 403, data: {}, response_body: {"meta":{"code":403,"message":"You don't have permission to access + 'AfterShip API. Select a plan at ' + 'https://admin.aftership.com/settings/billing to get access to premium ' + 'features","type":"Forbidden"},"data":{}}' }

autoTranslate

Hi Martin,
great stuff so far. Can you tell me how to install the auto translate dependencies?
To be honest I'm new in that area and just started to build my own mirror. Was not able to find it out myself.

Thanks in advance

René

Can't run the app

Hey I have cloned the repo according to the instructions and I can't run my app using rpm run. Can you explain me a bit more about how to run the app and what we want to do the config code you have mentioned in the repo. As I am new to node so I don't know some stuff and I am working on Python and what to use you take some insights from your project but can't able to run it.

Can you help me out with some more details about setting up the project

Problem with new installation

Hello;

So I am in the process of upgrading to a R.pi 4 and in doing so, am now installing my favorite modules on the new device. I am however running into issues with this module. It keeps throwing errors. Here's the log:

0|mm | [30.09.2021 20:26.15.090] [ERROR] 0|mm | App threw an error during load 0|mm | [30.09.2021 20:26.15.091] [ERROR] Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/src/index.js 0|mm | require() of ES modules is not supported. 0|mm | require() of /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/src/index.js from /home/pi/MagicMirror/modules/MMM-Parcel/node_helper.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. 0|mm | Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/package.json. 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1169:13) 0|mm | at Module.load (internal/modules/cjs/loader.js:992:32) 0|mm | at Module._load (internal/modules/cjs/loader.js:885:14) 0|mm | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|mm | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|mm | at require (internal/modules/cjs/helpers.js:72:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Parcel/node_helper.js:9:18) 0|mm | at Module._compile (internal/modules/cjs/loader.js:1152:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:992:32) 0|mm | [30.09.2021 20:26.15.092] [ERROR] Whoops! There was an uncaught exception... 0|mm | [30.09.2021 20:26.15.099] [ERROR] 0|mm | Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/src/index.js 0|mm | require() of ES modules is not supported. 0|mm | require() of /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/src/index.js from /home/pi/MagicMirror/modules/MMM-Parcel/node_helper.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. 0|mm | Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/package.json. 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1169:13) 0|mm | at Module.load (internal/modules/cjs/loader.js:992:32) 0|mm | at Module._load (internal/modules/cjs/loader.js:885:14) 0|mm | at Function.f._load (electron/js2c/asar_bundle.js:5:12633) 0|mm | at Module.require (internal/modules/cjs/loader.js:1032:19) 0|mm | at require (internal/modules/cjs/helpers.js:72:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Parcel/node_helper.js:9:18) 0|mm | at Module._compile (internal/modules/cjs/loader.js:1152:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:992:32) { 0|mm | code: 'ERR_REQUIRE_ESM' 0|mm | } 0|mm | [30.09.2021 20:26.15.100] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | [30.09.2021 20:26.15.101] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

How can I fix this?

TrackTry: Give your Tracking a title

Hello,

I wanted to look for this feature as I found the part inside your description, that it isn't possible yet.
Perhaps you could use the field "Order Number" of TrackTry to Name the deliveries? It's free to fill in everything...

Thank you very much for your effort and support!

Greetings,
Black-Zero

Loading parcel module... issue

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

Tracking info not updating

Greetings, I've started using your module a few days ago and now noticed that the data of my only parcel is not updating. It shows outdated information. The tracking page on Tractry is showing current information.

I tried deleting the parcel info on Tractry and your plugin showed no parcel information. When adding the parcel info on Tractry again, your module started showing the info again, still a few days outdated.

It seems to me this is not an issue of cached data, as it happens with the news module. I suspect there is something wrong with the API. Can you confirm and/or indicate any workaround?

Getting a Black Screen when adding default config to config.js

Hey,

Super cool project! I am trying to get it running on my MM, I have the lastest MM version and followed your instructions to install and am up to date. Whenever adding any of your config options to my config file my entire magic mirror just goes black. Is there a way to troubleshoot this? Thank you.

EDIT: I found the solution, albeit not a good one. You have to downgrade your node-fetch package to 2.6.5 for this to work (as highlighted here MagicMirrorOrg/MagicMirror#2684). However this leads to a high severity vulnerability. Can you fix this module to take the latest node-fetch instead of this old one? Thanks

Bad Request Error in Log

During the start of the MagicMirror I'm running into an error:

[2020-09-06 13:53:31.623] [ERROR] Error at /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/google-translate-api/index.js:105:17 at processTicksAndRejections (internal/process/task_queues.js:89:5) { code: 'BAD_REQUEST' }

The MMM-Parcel config part looks like this:
{ module: 'MMM-Parcel', position: 'bottom_left', // This can be any of the regions. Best results in left or right regions. classes: "ChrizZz90", header: 'Sendungsverfolgung', // This is optional config: { apiKey: 'XXX', // Your free API Key from aftership.com maxNumber: 5, //maximum number of Parcels to show showCourier: true, autoHide: false, // hide module on mirror when there are no deliveries to be shown isSorted: true, // sort on delivery Status (most important ones first) compactness: 1, // 0 = elaborate, 1 = compact display, 2 = very compact, one-liner per shipment, -1 = automatic hideExpired: false, // don't show expired parcels hideDelivered: 1, // Hide delivered parcels after 1 day. updateInterval: 60000, // 1 minutes = 100 * 60 * 1000 milliseconds. parcelStatusText: ["Ausnahme", "Zustellfehler","In Zustellung", "In Transit", "Info erhalten", "Pending", "Ausgeliefert", "Abgelaufen"], // This is the default. Enter your own language text parcelIconColor: ["red", "red", "green", "green", "cornflowerblue", "cornflowerblue", "grey", "grey"], // This is the default. Change for other icon colors onlyDaysFormat: { lastDay : '[Gestern]', sameDay : '[Heute]', nextDay : '[Morgen]', lastWeek : '[Vor] dddd', nextWeek : 'dddd', sameElse : 'L' }, // formatting when only days are shown and time is unknown. expectedDeliveryText: 'Delivery Expected: ', // This is the default. Changes time infoline. noParcelText: 'Keine Sendungsdaten', // This is the default. Changes infoline in case of no trackings. autoTranslate: 'de' } },

Is it possible that Google Translate causes this error?

There are no issues

Please enter any issues you have, improvement request, or just leave a comment if you are happy!

Track incoming packages

Hi, from looking at afterShip it looks like it's primarily meant for managing a wooCommerce site or another situation where I am shipping out a lot of packages. Is there a good automatic approach to get packages being shipped to me, even if it is just amazon orders it would be neat.

Modules does not work

I did everything exatly as in the Instructions, but the Module just says "Loading Parcel Module"

And I got an error while installing: (npm audit shows this and npm audit fix could not fix it)
───────────────┬──────────────────────────────────────────────────────────────┐
│ Critical │ Sandbox Breakout │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ safe-eval │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=0.4.0 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ google-translate-api │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ google-translate-api > safe-eval │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/337

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.