mirko3000 / MMM-max

This is an extension for the MagicMirror. It displays temperatures from your local MAX! cube.
MIT License
1 stars 1 forks source link

Connecting to MAX! cube... #1

Closed RavixModz closed 7 years ago

RavixModz commented 7 years ago

Hello, I just tried to use the modul but the mirror always shows connecting to MAX! cube... . I used the correct ip. Do I have to active something on the dashboard of my router? (I'm using a Fritz box)

RavixModz commented 7 years ago

Im Terminal steht folgende Fehlermeldung:

error: unable to resolve reference refs/remotes/origin/master: Invalid argument From https://github.com/MichMich/MagicMirror ! [new branch] master -> origin/master (unable to update local ref) error: unable to resolve reference refs/remotes/origin/MichMich-patch-1: Invalid argument ! [new branch] MichMich-patch-1 -> origin/MichMich-patch-1 (unable to update local ref) error: unable to resolve reference refs/tags/v2.1.1: Invalid argument ! [new tag] v2.1.1 -> v2.1.1 (unable to update local ref)

Unhandled rejection ReferenceError: i is not defined at /home/pi/MagicMirror/modules/MMM-max/node_helper.js:30:18 at tryCatcher (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:574:20) at tryOnImmediate (timers.js:554:5) at processImmediate [as _immediateCallback] (timers.js:533:5)

mirko3000 commented 7 years ago

Hey, hast du das Submodule wie in der Anleitung steht initialisiert?

Am 14.04.2017 um 14:03 schrieb RavixModz notifications@github.com:

Im Terminal steht folgende Fehlermeldung:

error: unable to resolve reference refs/remotes/origin/master: Invalid argument From https://github.com/MichMich/MagicMirror ! [new branch] master -> origin/master (unable to update local ref) error: unable to resolve reference refs/remotes/origin/MichMich-patch-1: Invalid argument ! [new branch] MichMich-patch-1 -> origin/MichMich-patch-1 (unable to update local ref) error: unable to resolve reference refs/tags/v2.1.1: Invalid argument ! [new tag] v2.1.1 -> v2.1.1 (unable to update local ref)

Unhandled rejection ReferenceError: i is not defined at /home/pi/MagicMirror/modules/MMM-max/node_helper.js:30:18 at tryCatcher (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:574:20) at tryOnImmediate (timers.js:554:5) at processImmediate [as _immediateCallback] (timers.js:533:5)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

RavixModz commented 7 years ago

Ja, denke schon. Werde es morgen nochmal versuchen.

Am 15.04.2017 um 00:03 schrieb mirko3000 notifications@github.com:

Hey, hast du das Submodule wie in der Anleitung steht initialisiert?

Am 14.04.2017 um 14:03 schrieb RavixModz notifications@github.com:

Im Terminal steht folgende Fehlermeldung:

error: unable to resolve reference refs/remotes/origin/master: Invalid argument From https://github.com/MichMich/MagicMirror ! [new branch] master -> origin/master (unable to update local ref) error: unable to resolve reference refs/remotes/origin/MichMich-patch-1: Invalid argument ! [new branch] MichMich-patch-1 -> origin/MichMich-patch-1 (unable to update local ref) error: unable to resolve reference refs/tags/v2.1.1: Invalid argument ! [new tag] v2.1.1 -> v2.1.1 (unable to update local ref)

Unhandled rejection ReferenceError: i is not defined at /home/pi/MagicMirror/modules/MMM-max/node_helper.js:30:18 at tryCatcher (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues (/home/pi/MagicMirror/modules/MMM-max/maxcube/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:574:20) at tryOnImmediate (timers.js:554:5) at processImmediate [as _immediateCallback] (timers.js:533:5)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

RavixModz commented 7 years ago

Habe es nochmal versucht. Habe das Modul gelöscht und die Schritte nochmal durchgeführt. Ich erhalte jedoch noch immer die selbe Fehlermeldung im Terminal. Habe auch schon ohne erfolg versucht, den Spiegel allein mit dem MAX Modul zu starten, gleiche Fehlermeldung. Kann es sein, dass ich ein nicht unterstütztes Modell habe? [URL=https://www.pic-upload.de/view-33017635/IMG_0799.jpg.html][IMG]https://www2.pic-upload.de/thumb/33017635/IMG_0799.jpg[/IMG][/URL]

RavixModz commented 7 years ago

https://www2.pic-upload.de/img/33017635/IMG_0799.jpg

mirko3000 commented 7 years ago

Which version of MagicMirror are you using? I have tried with latest version, that works fine. I don't thinks it is an issue with the cube, if you keep it updated (MAX! firmware) there should be no problems. Only make sure you are not connected via the MAX! app or MaxBuddy.

UMoshammer commented 7 years ago

Got the same issue with a new fresh installation.

Fixed it by changing the following in node_helper.js:

old: for (i = 0; i < devices.length; i++) { new: for (var i = 0; i < devices.length; i++) {

The variable declaration was missing in the for-loop.

mirko3000 commented 7 years ago

Thanks UMoshammer, fixed it and pushed to master.

blazkom commented 6 years ago

Hi, i have problem. I have install and add module to magic mirror but when mmm-max module is shown i only get header of module. I can never get temperatures of max modlues. I have enter correct IP

mirko3000 commented 6 years ago

Hello @blazkom, please open a new issue for this. Anyhow, please make sure you don't have any other client connected to the MAX gateway, else your magic mirror will not be able to connect. Can you send me your configuration?

blazkom commented 6 years ago

Hi,

there is my config file.

{

module: 'MMM-max', position: 'bottom_left', header: '', // This is optional config: { maxIP: "192.168.1.125", twoColLayout: "true" } },

V V ned., 20. maj 2018 ob 18:11 je oseba mirko3000 notifications@github.com napisala:

Hello @blazkom https://github.com/blazkom, please open a new issue for this. Anyhow, please make sure you don't have any other client connected to the MAX gateway, else your magic mirror will not be able to connect. Can you send me your configuration?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mirko3000/MMM-max/issues/1#issuecomment-390493100, or mute the thread https://github.com/notifications/unsubscribe-auth/Alj7l8mZXD7AGK05LWic_9mEe1BzB0RFks5t0ZXPgaJpZM4M9rHh .

mirko3000 commented 6 years ago

Hi @blazkom, sorry for the late reply. Do you get any error in the logs? Can you try starting in debug mode (npm start dev) and checking the browser console (Developer mode)?