MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. evroom
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 18
    • Posts 494
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Blank mm after update

      @sdetweil said in Blank mm after update:

      2 of my three systems do not have pi as the user

      Yes, I assumed user pi and the install under the user pi home directory.
      Will try to remember that in the future.
      Tilde for the home directory should work on all platforms, is my understanding.

      ~/MagicMirror
      

      My keyboard is lacking a tilde and I always forget the right keystrokes.
      So /home/pi is faster. :-)

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      @kvicksson said in Blank mm after update:

      @sdetweil Thanks! This worked for me

      I should type faster :-)

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      Hi @kvicksson ,

      To me it seems there are 3 problems here.
      You could have a look what the pm2 log says:

      $ pm2 logs --lines 100
      

      You will either have:

      Error: Cannot find module 'del'
      

      or:

      Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/mmm-weatherchart/cache/map-1567097174409.
      

      or something completely different.

      The 3 problems and potential solutions:

      You’re config.js entries:

      updateInterval: '3600000',
      hideBorder: 'true'
      

      should be:

      updateInterval: 3600000,
      hideBorder: true
      

      even if the module could potentially handle it.

      If your mmm-weatherchart instal has this file present:

      /home/pi/MagicMirror/modules/mmm-weatherchart/package.json
      

      then you should run:

      $ cd /home/pi/MagicMirror/modules/mmm-weatherchart/
      $ npm install
      

      If your mmm-weatherchart instal has this file NOT present:

      /home/pi/MagicMirror/modules/mmm-weatherchart/package.json
      

      then you should NOT run npm instal, has it will cause havoc to you MagicMirror install.
      I would do this in this situation:

      $ cd /home/pi/MagicMirror/modules/
      $ mv mmm-weatherchart mmm-weatherchart.saved
      $ git clone https://github.com/szech/mmm-weatherchart.git
      $ cd /home/pi/MagicMirror/modules/mmm-weatherchart
      $ npm install
      
      $ pm2 restart pm2
      $ pm2 logs --lines 100
      

      When it works:

      $ cd /home/pi/MagicMirror/modules/
      $ rm -rf mmm-weatherchart.saved
      

      Good luck !!

      PS @sdetweil : please comment if I am wrong or made mistakes somewhere & thanks for your input.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      When I use
      $ git clone https://github.com/szech/mmm-weatherchart.git
      then it works.
      The README.md from szech point to papkto.
      When corrected and doing npm install in the mmm-weatherchart directory, it works

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      @sdetweil said in Blank mm after update:

      the module doesn’t work, but doesn’t kill MagicMirror anymore…

      Correct.

      I have a few questions.

      In the original module there is no package.json file, where in the cloned one there is.
      So, when using the original module, you should NOT use npm install, right ?
      First of all it will no do anything useful, but it WILL delete your /home/pi/MagicMirror/modules/node_modules/node_helperdirectory and its index.js file.
      When using the cloned module, you should run npm installin order to install the dependencies mentioned in it, right ?
      No harm is done to the node_helper dir.

      Or is it all BS I am telling here (and made the wrong observations) ??

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      The module is running now, but I get this error:

      0|mm  | Downloading weather map with signal: FETCH_MAP From URL: www.yr.no/place/Germany/Bavaria/Nuremberg/meteogram.png
      0|mm  | Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/mmm-weatherchart/cache/map-1567097174409.png'
      
      pi@raspberrypi:~/MagicMirror/modules/mmm-weatherchart $ ll /home/pi/MagicMirror/modules/mmm-weatherchart/cache
      total 12
      4 drwxr-xr-x 2 pi pi 4096 Aug 29 18:49 .
      4 drwxr-xr-x 4 pi pi 4096 Aug 29 18:44 ..
      4 -rw-r--r-- 1 pi pi    6 Aug 29 18:44 .gitignore
      

      Then I read somewhere there is a clone of this module that is more recent, so I tried that:

      https://github.com/szech/mmm-weatherchart
      

      Same result: module runs but no file in the cache dir.
      When opening the URL in the browser, it does show the picture that I do not see on my screen.

      Oh boy/girl, thought it was a simple syntax thingy in config.js …

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      @sdetweil said in Blank mm after update:

      see my prior most about the missing module

      I was typing while you answered.
      Will have a look at it and try it out.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      @sdetweil said in Blank mm after update:

      seems odd that there would be two invocations of these modules…

      I have only one mmm-weatherchart module present.
      When disabled everything is fine.
      However, I forgot to remove the single quotes, as I just copy/pasted the config from the thread.
      Corrected it, but now I get even stronger things.

      0|mm  | WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'del'
      

      I do not have any string with ‘del’ in my config :worried_face:

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      @sdetweil said in Blank mm after update:

      which is what causes the blackscreen to begin with

      Tried the module myself.
      https://github.com/paphko/mmm-weatherchart

      pi@raspberrypi:~/MagicMirror $ pm2 logs --lines 100
      0|mm       | Starting MagicMirror ...
      0|mm       |
      0|mm       | > magicmirror@2.8.0 start /home/pi/MagicMirror
      0|mm       | > sh run-start.sh
      0|mm       |
      0|mm       | Starting MagicMirror: v2.8.0
      0|mm       | Loading config ...
      0|mm       | Loading module helpers ...
      0|mm       | No helper found for module: alert.
      0|mm       | Initializing new module helper ...
      0|mm       | Module helper loaded: updatenotification
      0|mm       | Loading module helpers ...
      0|mm       | No helper found for module: alert.
      0|mm       | Initializing new module helper ...
      0|mm       | Module helper loaded: updatenotification
      0|mm       | Whoops! There was an uncaught exception...
      0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|mm  | Launching application.
      

      Indeed a black screen.
      Now how to help the girl from Stråvalla ?

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      @lavolp3 said in Blank mm after update:

      well with the config:check he would not have found the error, would he?

      In this case perhaps not, but it cannot hurt to run it in order to exclude error(s) before and after this part of the config.
      Normally a 'true' versus true would not cause a black screen, but I might be wrong.
      And a trouble shooting guide would have to start with the config:checkIMHO.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Blank mm after update

      @kvicksson said in Blank mm after update:

      Is there something wrong in my code?

      It should be Holland :-)
      No, just joking, try:

      {
      		module: 'mmm-weatherchart',
      		position: 'bottom_left',
      		config: {
      			country: 'Sweden',
      			area: 'Halland',
      			city: 'Stråvalla',
      			updateInterval: 3600000,
      			hideBorder: true
      			}
      },
      

      And this should be part of your tool-set:

      cd ~/MagicMirror; npm run config:check
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: "Error: Cannot find module 'ping' " and black screen on startup (Beginner)

      @keyk123 said in "Error: Cannot find module 'ping' " and black screen on startup (Beginner):

      npm WARN npm npm does not support Node.js v10.15.2

      Update npm:

      pi@raspberrypi:~ $ npm -v
      5.8.0
      
      pi@raspberrypi:~ $ cd
      pi@raspberrypi:~ $ sudo npm install npm@latest -g
      
      [ pi@raspberrypi:~ $ sudo reboot ]
      
      pi@raspberrypi:~ $ npm -v
      6.10.3
      

      When in doubt if you’re config.js is okay, always run:

      pi@raspberrypi:~ $ cd ~/MagicMirror; npm run config:check
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: Big 'core' file (1.3G)

      https://collectd.org/wiki/index.php/Core_file
      https://manpages.debian.org/testing/manpages/core.5.en.html

      I would do

      file MagicMirror/core
      

      to see if it says something useful.
      Then delete it.
      Only worth debugging when it is created more often.
      I suppose everything works okay, when not then one could investigate further.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: My MagicMirror screen keeps turning off

      @EhsanMomeni81

      Is here something useful ?
      https://forum.magicmirror.builders/topic/1801/get-back-to-desktop
      https://forum.magicmirror.builders/topic/5619/how-to-find-and-use-key-commands-in-mm-for-absolute-beginners

      I personally only use VNC to “look” at the screen remotely and never use the Pi for anything else then displaying MM.
      Not interested in the desktop.
      I always login to the Pi using a ssh client, like for example PuTTY, or on my Mac the iTerm2.

      If you use Windows, then I would recommend PuTTY.
      It is small and simple.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Raspberry Pi Memory Loss

      Can you do following ?

      Please do not post output that is very long.
      Just want to get a feeling if these commands lead to anything, hence the MMM module eating memory

      $ top -b -o +%MEM | head -n 8
      
      $ strace -T -o /tmp/strace.out -p PID_from_top_command
      
      After about 15 seconds, use control-c to stop strace.
      
      For example:
      $ strace -T -o /tmp/strace.out -p 904
      
      $ grep 'name_of_MMM_module' /tmp/strace.out
      
      For example:
      $ grep 'mmm-systemtemperature' /tmp/strace.out
      
      $ grep 'name_of_MMM_module' /tmp/strace.out | wc -l
      
      For example:
      $ grep 'mmm-systemtemperature' /tmp/strace.out | wc -l
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: Raspberry Pi Memory Loss

      So it is an electron process, hence MM process, alright.
      Now find a way how to determine which module is causing this.
      Which modules do you have active?

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Raspberry Pi Memory Loss

      Could you repeat this when memory usage has increased substantially?

      The chromium processes are taking up quite some memory.
      I myself have none running.

      Did you get the latest packages?

      $ sudo apt-get update
      $ sudo apt-get dist-upgrade
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: Raspberry Pi Memory Loss

      @dazza120

      Could you send the output of the following commands, when running more or less normal?

      free
      swapon -s
      vmstat 5 10
      top -b -o +%MEM | head -n 22
      

      And the suggested htop command is also nice to look at.
      Might need to be installed separately.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: My MagicMirror screen keeps turning off

      @evroom

      This works (running for 100 minutes at the moment of posting):

      $ sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
      @touch /home/pi/.started_etc_xdg_lxsession_LXDE-pi_autostart
      @point-rpi
      @xset -dpms
      @xset s off
      @xset s noblank
      

      Note: the autostart file does not like comments.

      Reboot:

      $ sudo reboot
      

      After reboot is finished, check:

      $ ls -als /home/pi/.started_etc_xdg_lxsession_LXDE-pi_autostart
      

      That will tell if the autostart file was used (timestamp should match reboot time).
      Then check for set errors:

      $ grep xset /home/pi/.cache/lxsession/LXDE-pi/run.log
      

      It should say 3 times Launching xset, with 3 times exit 0 (for every set entry in the autostart file).

      Works for Raspberry Pi 7" Touchscreen Display.

      $ lsb_release -a
      No LSB modules are available.
      Distributor ID:	Raspbian
      Description:	Raspbian GNU/Linux 10 (buster)
      Release:	10
      Codename:	buster
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: My MagicMirror screen keeps turning off

      @evroom

      Talking to myself :-)

      The settings for Buster are not working.
      My display goes to sleep after 10 minutes.
      Perhaps because it isn’t a HDMI connected monitor.

      I found 2 interesting files though:

      pi@raspberrypi:~ $ ls -als /home/pi/.xsession-errors
      4 -rw------- 1 pi pi 2426 Aug  1 12:30 /home/pi/.xsession-errors
      pi@raspberrypi:~ $ ls -als /home/pi/.cache/lxsession/LXDE-pi/run.log
      20 -rw------- 1 pi pi 17988 Aug  1 12:30 /home/pi/.cache/lxsession/LXDE-pi/run.log
      

      Also see that this file is being used, so that seems right:

      /etc/xdg/lxsession/LXDE-pi/autostart
      
      posted in Troubleshooting
      evroomE
      evroom
    • 1
    • 2
    • 10
    • 11
    • 12
    • 13
    • 14
    • 24
    • 25
    • 12 / 25