Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. keineAhnung123
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 21
    • Best 1
    • Groups 0

    keineAhnung123

    @keineAhnung123

    1
    Reputation
    10
    Profile views
    21
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    keineAhnung123 Follow

    Best posts made by keineAhnung123

    • Bathroom MM

      Hello,

      My first experience with Linux and Magic Mirrors.
      Thanks to the forum for all the help and to all developers.

      Hardware:

      • Raspberry Pi 3B+
      • 24" monitor ASUS VA249HE
      • PIR sensor + rotary encoder (to change pages)
      • Mirropane Chrome Spy 4 MM 50x60 cm
      • self made frame

      Modules

      • Celebrations
      • Count Events
      • Covid19 Ampel
      • DVD Warn Weather
      • Navigate (modified version)
      • New PIR
      • On this day
      • Page selector
      • Remote control
      • System stats
      • Weather chart
      • selfmade joke module

      Pictures

      20210225_201457.jpg

      20210225_201524.jpg

      20210225_201535.jpg

      20210225_201546.jpg

      20210225_202026.jpg

      20210225_202058.jpg

      Im really excited but theres is only one thing thats disappointing somehow.
      The Mirropane Chrome Spy is a little bit dark in comparison to a normal mirror so its not recommended for makeup (my girlfriend says).

      posted in Show your Mirror
      K
      keineAhnung123

    Latest posts made by keineAhnung123

    • RE: pm2 doesnt work with crontab

      @sdetweil said in pm2 doesnt work with crontab:

      @keineahnung123 looks like u need to reinstall nvm

      nvm or npm?

      posted in Troubleshooting
      K
      keineAhnung123
    • RE: pm2 doesnt work with crontab

      @sdetweil

      45 16   * * *   pi      pm2 stop mm
      

      doesnt work. I have to set the paths.

      I think there went something wrong when i upgraded to buster.
      I had a shellscript with

      cd ~/MagicMirror && npm start
      

      which worked fine and after the upgrade to buster i have to use

      cd ~/MagicMirror && /home/pi/.config/nvm/versions/node/v10.23.0/bin/npm start
      

      otherwise it says “npm: not found”

      Same seems to be with crontab…

      posted in Troubleshooting
      K
      keineAhnung123
    • RE: pm2 doesnt work with crontab

      @sdetweil Thanks.

      With

      sudo nano /etc/crontab
      

      and

      30 16   * * *   pi      /home/pi/.config/nvm/versions/node/v10.23.0/bin/node /home/pi/.config/nvm/versions/node/v10.23.0/bin/pm2 stop mm
      

      it seems to work 🙂

      posted in Troubleshooting
      K
      keineAhnung123
    • pm2 doesnt work with crontab

      Hello,

      Im trying to restart my MM every day in the night so i want to use a crontab.

      Might be easy:

      sudo crontab -e
      

      and add

      59 23 * * * pm2 restart mm
      

      But that doesnt work.
      The crontab seems to work:

      Feb 27 13:37:01 raspberrypi CRON[3581]: (root) CMD (pm2 restart mm)
      
      

      And i did a pm2 flush before and after the crontab did its job there is nothing in the log:

      pi@raspberrypi:~ $ pm2 logs --lines=100
      [TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 100 lines:
      /home/pi/.pm2/logs/mm-error.log last 100 lines:
      /home/pi/.pm2/logs/mm-out.log last 100 lines:
      0|mm       | [27.02.2021 13:38.28.339] [INFO]  Newsfeed-Fetcher: Broadcasting 39 items.
      
      

      so it seems that pm2 didnt do anything.

      Next try after some online research:

      pi@raspberrypi:~ $ which node
      /home/pi/.config/nvm/versions/node/v10.23.0/bin/node
      pi@raspberrypi:~ $ which pm2
      /home/pi/.config/nvm/versions/node/v10.23.0/bin/pm2
      
      

      i changed the crontab to

      1 14 * * * /home/pi/.config/nvm/versions/node/v10.23.0/bin/node /home/pi/.config/nvm/versions/node/v10.23.0/bin/pm2 restart mm
      
      

      (1 14 is for testing)

      It still doesnt work: no output in pm2 log.

      Does anyone have an idea?

      Thanks 🙂

      posted in Troubleshooting
      K
      keineAhnung123
    • Bathroom MM

      Hello,

      My first experience with Linux and Magic Mirrors.
      Thanks to the forum for all the help and to all developers.

      Hardware:

      • Raspberry Pi 3B+
      • 24" monitor ASUS VA249HE
      • PIR sensor + rotary encoder (to change pages)
      • Mirropane Chrome Spy 4 MM 50x60 cm
      • self made frame

      Modules

      • Celebrations
      • Count Events
      • Covid19 Ampel
      • DVD Warn Weather
      • Navigate (modified version)
      • New PIR
      • On this day
      • Page selector
      • Remote control
      • System stats
      • Weather chart
      • selfmade joke module

      Pictures

      20210225_201457.jpg

      20210225_201524.jpg

      20210225_201535.jpg

      20210225_201546.jpg

      20210225_202026.jpg

      20210225_202058.jpg

      Im really excited but theres is only one thing thats disappointing somehow.
      The Mirropane Chrome Spy is a little bit dark in comparison to a normal mirror so its not recommended for makeup (my girlfriend says).

      posted in Show your Mirror
      K
      keineAhnung123
    • Save energy at night?

      Hi,

      Does it make sense to create a cronjob which

      • stops MM
      • turns off wifi
      • turns off xyz
        from for example 12pm to 6am?

      Will this reduce the power consumption effectively?

      Thx

      posted in General Discussion
      K
      keineAhnung123
    • What are your MM/Pi statistics?

      Hello,

      My MM is hanging in my bathroom since 3 days and im trying to optimize it right now.

      I had CPU problems but found out that MMM-DarkSkyForecast causes them so i disabled it.
      My Modules are updating rarely (API calls > 30 min) and dont have any big animations (only things like newsfeed article fading…) so CPU is no problem anymore.

      My stats are:

      • CPU: 0-5 %
      • Temperature: 40-45 °C (heatsinks installed and no closed case)
      • free RAM: 5-15 %

      with:
      Raspberry Pi 3b+
      MM 2.14.0

      pi@raspberrypi:~/MagicMirror $ npm ls | grep electron
      ├─┬ electron@8.5.3
      │ ├─┬ @electron/get@1.12.2
      │ ├─┬ electron-chromedriver@8.0.0
      │ │ ├─┬ electron-download@4.1.1
      │ │ │ ├── electron-to-chromium@1.3.606
      

      and MMM-NewPIR with ecoMode enabled (hides modules when no activity)

      Unbenannt.png
      Unbenannt2.png

      I read the well known thread electron cpu usage and my question is:

      Are my stats normal? CPU an temperature are fine but the free RAM is a little bit concerning, isnt it? Are the 7 electron processes normal? Which electron version do you use (the electron cpu usage- thread is 3 years old)?

      Thank you 🙂

      posted in General Discussion
      K
      keineAhnung123
    • Freeze modules to save energy

      Hello,
      It would be cool to freeze modules to stop them from updating etc.
      This would reduce CPU and so on.

      For example a PIR sensor turns off the screen and freezes all modules.
      And if the screen gets reactivated the modules will unfreeze.

      What would you think?

      posted in Feature Requests
      K
      keineAhnung123
    • RE: compliments reduce font size and move down a little bit

      Hello @sdetweil
      I have a similar question: I want the compliments module to have the same appearance as the title of the newsfeed module.

      found in newsfeed-code:

      			if (!this.config.showFullArticle) {
      				const title = document.createElement("div");
      				title.className = "newsfeed-title bright medium light" + (!this.config.wrapTitle ? " no-wrap" : "");
      				title.innerHTML = this.newsItems[this.activeItem].title;
      				wrapper.appendChild(title);
      			}
      

      so i want the compliments style to be “bright medium light”

      the compliments code shows

      	getDom: function () {
      		var wrapper = document.createElement("div");
      		wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright pre-line";
      

      Im not sure how to modify the custom.css.
      Something like:

      .compliments .class {
      bright medium light;
      }
      

      Can you help me? 🙂

      posted in Custom CSS
      K
      keineAhnung123
    • RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror

      Hello,
      Im trying to get a custom menu ready to send customized notifications via input fields.
      Sadly im not into JS.
      Can someone tell me how to get the value of an input field i added?

      my custom_menu.json:

      {
         "id": "custom",
         "type": "menu",
         "icon": "id-card-o",
         "text": "%%TRANSLATE:CUSTOM_MENU%%",
         "items": [{
               "id": "custom-item-1",
               "type": "item",
               "icon": "dot-circle-o",
               "text": "Next page",
               "action": "NOTIFICATION",
               "content": {
                  "notification": "INCREMENT_PAGE",
                  "payload": null
               }
            },
            {
               "id": "custom-item-2",
               "type": "item",
               "icon": "dot-circle-o",
               "text": "Last page",
               "action": "NOTIFICATION",
               "content": {
                  "notification": "DECREMENT_PAGE",
                  "payload": null
               }
            },
            {
               "id": "level2",
               "type": "menu",
               "menu": "custom",
               "icon": "bars",
               "text": "Send notifications",
               "items": [
               {
                   "id": "custom-item-3",
                   "type": "input",
                   "icon": "dot-circle-o",
                   "text": "Notification",
                   "action": null,
                   "content": null
               },
               {
                   "id": "custom-item-4",
                   "type": "input",
                   "icon": "dot-circle-o",
                   "text": "Payload",
                   "action": null,
                   "content": null
               },
               {
                   "id": "custom-item-5",
                   "type": "button",
                   "icon": "dot-circle-o",
                   "text": "Send",
                   "action": "NOTIFICATION",
                   "content": {
                        "notification": null,
                        "payload": null
                   }
               }
               ]
            }
         ]
      }
      

      The button (last entry) should now send an notification with the values from the input fields above.
      something like this:

               {
                   "id": "custom-item-5",
                   "type": "button",
                   "icon": "dot-circle-o",
                   "text": "Send",
                   "action": "NOTIFICATION",
                   "content": {
                        "notification": "custom-item-3".value,
                        "payload": "custom-item-4".value
                   }
               }
      

      So how can i get the value from my input items?
      Thanks 🙂

      And another question. Is there a security problem when im neither using an ApiKey nor the secureEndpoints? Im using it in my private secured wifi with only me inside.

      posted in System
      K
      keineAhnung123