email module black screen



  • Hello, after i installed the email module and wrote like in the readme the config in the config.js i have after restart pm2 a black screen. if i cancel the module from the config.js i can see my screen again with my modules.

    anyone a idea?

    greedings


  • Module Developer

    Are you certain you installed it properly by going into the folder and using the npm install command?


  • Core Contributors

    @tosti007 At certain point some errors for this kind of case is because a forget

    npm install
    

    We’ll can figure out a solution for problems like that.



  • @tosti007 yes of course and without any errors. when i cancel the config in config.js everthing is working very good

    i tried it agin and this is the output:

    pi@Magic-Mirror:~/MagicMirror/modules/email-mirror $ npm install
    npm WARN email@0.0.1 No repository field.
    npm WARN email@0.0.1 No license field.
    pi@Magic-Mirror:~/MagicMirror/modules/email-mirror $ 
    
    

    i tried something and now i get after DISPLAY=:0 npm start this:

    Starting MagicMirror: v2.1.0
    Loading config ...
    Loading module helpers ...
    No helper found for module: alert.
    Initializing new module helper ...
    No helper found for module: clock.
    Initializing new module helper ...
    No helper found for module: currentweather.
    No helper found for module: weatherforecast.
    Initializing new module helper ...
    null
    Initializing new module helper ...
    No helper found for module: MMM-Callmonitor-Current-Call.
    Initializing new module helper ...
    Initializing new module helper ...
    Initializing new module helper ...
    All module helpers loaded.
    Starting server op port 8090 ... 
    Server started ...
    Connecting socket for: updatenotification
    Connecting socket for: calendar
    Starting node helper for: calendar
    Connecting socket for: MMM-FRITZ-Box-Callmonitor
    Starting module: MMM-FRITZ-Box-Callmonitor
    Connecting socket for: MMM-iCloud-Client
    Starting helper: MMM-iCloud-Client
    loading Database
    Connecting socket for: MMM-SystemStats
    Connecting socket for: MMM-PIR-Sensor
    Connecting socket for: email-mirror
    email-mirror helper started ...
    Sockets connected & modules started ...
    Whoops! There was an uncaught exception...
    { Error: listen EADDRINUSE 
    :::
    8090
        at Object.exports._errnoException (util.js:1026:11)
        at exports._exceptionWithHostPort (util.js:1049:20)
        at Server._listen2 (net.js:1253:14)
        at listen (net.js:1289:10)
        at net.js:1399:9
        at _combinedTickCallback (internal/process/next_tick.js:77:11)
        at process._tickCallback (internal/process/next_tick.js:98:9)
        at Module.runMain (module.js:592:11)
        at run (bootstrap_node.js:402:7)
        at startup (bootstrap_node.js:157:9)
      code: 'EADDRINUSE',
      errno: 'EADDRINUSE',
      syscall: 'listen',
      address: '::',
      port: 8090 }
    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    Launching application.
    
    

    maybe this helps?



  • @fischi87 something is already using this port, either an old instance of mm is still running or something else is using that port you can change the port in the config file



  • @strawberry-3.141 i changed it and the error is not working anymore thanks but the screen is still black when i activate the email module?!



  • @fischi87 can you start the mirror and post the logs from the terminal and electron (start with npm start dev)



  • @strawberry-3.141

    pi@Magic-Mirror:~/MagicMirror $ sudo npm start dev
    
    > magicmirror@2.1.0 start /home/pi/MagicMirror
    > electron js/electron.js "dev"
    
    
    npm ERR! Linux 4.4.38-v7+
    npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" "dev"
    npm ERR! node v6.10.0
    npm ERR! npm  v4.3.0
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! magicmirror@2.1.0 start: `electron js/electron.js "dev"`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.1.0 start script 'electron js/electron.js "dev"'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the magicmirror package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     electron js/electron.js "dev"
    npm ERR! You can get information on how to open an issue for this project with:
    npm ERR!     npm bugs magicmirror
    npm ERR! Or if that isn't available, you can get their info via:
    npm ERR!     npm owner ls magicmirror
    npm ERR! There is likely additional logging output above.
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /root/.npm/_logs/2017-02-24T09_43_49_882Z-debug.log
    pi@Magic-Mirror:~/MagicMirror $ 
    
    

    how i do it with electron?



  • i found the mistake because of the black screen.

    i use the module Carousel and in this i didn’t change the module ‘email-mirror’ to ‘email’ because after installation the folders name is ‘email-mirror’ but u have to change this folder in /MagicMirror/modules to ‘email’ than it works.

    thanks


  • Module Developer

    @fischi87 said in email module black screen:

    i use the module Carousel and in this i didn’t change the module ‘email-mirror’ to ‘email’ because after installation the folders name is ‘email-mirror’ but u have to change this folder in /MagicMirror/modules to ‘email’ than it works.

    I apologize you had to figure this out the hard way, but the installation instructions clearly state this.


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.