Run the following command in the MagicMirror folder
rm package-lock.json
rm vendor/package-lock.json
Then execute in the folder the usual command for the upload
git pull && npm install
Now it should work
Run the following command in the MagicMirror folder
rm package-lock.json
rm vendor/package-lock.json
Then execute in the folder the usual command for the upload
git pull && npm install
Now it should work
Woooow, looks really fantastic. What I like very much, that the mirror is connected via KNX. I will start building our EFH in the summer and also install KNX. That’s where your idea of connecting the mirror via KNX is just right.
Otherwise top processing !! Great
Greetings from Switzerland
Good day
Is it also possible to add the Swiss National League?
@evroom Many thanks for the detailed information.
As you can see, I always executed the command as sudo sudo crontab -e
So I always executed the commands in the root directory. Which thus never led to success.
Thanks again for the help and the detailed listing.
Greeting
Juhuiiiii, finally it worked. Many Thanks
I have always used the command sudo crontab -e and with this it did not work.
It works fine with the crontab -e command and then 0 6 * * * pm2 reload mm
Once again, thank you very much for your help!!!
@MadScientist said in Cronjob:
55 19 * * * pm2 reload mm
The command works in the console pm2 reload mm
If I add it in the cron job, it will not do any reload.
Here is the excerpt from the crontab
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
#
#MONTAG BIS SONNTAG UM 17:02 MAGICMIRROR RELOAD
02 17 * * * pm2 reload mm
#
Perfect, did not know that I can reload the MagicMirror. Have always made a restart in the past. I’ll give feedback this evening on whether the cronjob works with the pm2 reload mm command
@MadScientist said in Cronjob:
Are you using the GoogleMapsTraffic module? In that case the pm2 reload mm will do. Or a simple Ctrl+R on the mirror. The cronjob should then look something like 55 19 * * * pm2 reload mm (mine is 0 6 * * * pm2 reload mm and it works flawlessly).
Exactly, I use the modules GoogleMapsTraffi on these two monitors and these two monitors will not wake up after a while, if I turned off the monitors for several hours.
Then tonight I will try pm2 reload mm. Unfortunately, the command pm2 restart mm did not work. Then I’m curious.
@MadScientist said in Cronjob:
Why do you want to restart MM? Maybe pm2 reload mmis the better option.
Why … that’s actually a good question. The problem is that if I bring the screens for about 5-6 hours and then turn back on that no picture appears on the monitors. Therefore, I would like a regular restart of my MagicMirros.
Hello
I still have to change optimizations on the modules, :)
I live near Olten …
Thanks for the link, but it still does not work :(
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
#
#MONTAG BIS SONNTAG UM 19:55 MAGICMIRROR RESTART
55 19 * * * pm2 restart mm.sh >/dev/null 2>&1
#
#SAMSTAG REBOOT UM 12:00 MAGICMIRROR REBOOT
24 17 * * * sudo reboot
#
Good evening
I’d like to see my MagicMirror restart at a certain time each day. What should I enter in the crontrab? I have already tried x variants, but unfortunately it never worked.
27 17 * * * Command pm2 restart mm
The sudo reboot command works fine.
27 17 * * 5 sudo poweroff
Hello Lucas
Thank you, but there is still a lot of work in front of me :) Must optimize certain modules.
Here is the link: https://www.glastroesch.ch/glas/82-spionspiegel.html
I look at my bill tonight, which I have taken. I quickly believe the mirror with 12%.
ps. You can also come over once, if you want.
Greeting
Ok, I will do it. Many Thanks
Actually, yes, I slide the slider all the way to the right and go left to save. But somehow this is always lost
I installed this module on only three PI’s and already tried to adjust the brightness. But after each reboot, the storage of the brightness is lost.
Is there a way to increase and save the brightness of the MagicMirro?
@j-e-f-f That’s too bad. Thanks anyway for the quick answer
Good Morning all
First of all, thank you for the Herrvorrande weather module !!
Is it also possible to display different weather forecasts (two different locations)? For example, the locations alternate every 30 seconds.
So I do not directly have the same problem with dimming. But with me it is so that with one mirror the writing is brighter and with the other mirror darker, although it concerns identical Montiore. Can you adjust the brightness in the general menu?