Hello,
Is there a module which allows to use an infrared receiver + remote to for example send predefined notifications?
Hello,
Is there a module which allows to use an infrared receiver + remote to for example send predefined notifications?
Hello,
Im trying Raspbian Desktop in VirtualBox to do some debugging faster.
Everything works so far except for the keyboar shortcuts.
When MM is in fullscreen no CTRL+q / CTRL+m / CTRL+SHIFT+i is working. Only ALT+space does work.
Tested it with hardware keyboard and VirtualBox’s screen keyboard.
Is there a setting or is it something with virtualbox?
@sdetweil said in pm2 doesnt work with crontab:
@keineahnung123 looks like u need to reinstall nvm
nvm or npm?
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…
@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 :)
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 :)
Hello,
My first experience with Linux and Magic Mirrors.
Thanks to the forum for all the help and to all developers.
Hardware:
Modules
Pictures
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).
Hi,
Does it make sense to create a cronjob which
Will this reduce the power consumption effectively?
Thx
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:
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)
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 :)
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?