After my sd card crashed i have been reinstalling all my modules. I had the LiveSoccerScore, but now cant seem to get any of these working. Can someone help me get one working. Or point me in the right direction of what to use.
I Had Similar i have just moved the pi to boot from sd to SSD that i had and for the life of me a fresh mirror 2.50 version wouldn’t run auto boot for love nor money i used this link in the end and its working well without having to kill everything and start again https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror Hope this helps someone else
Install PM2 using NPM:
sudo npm install -g pm2
Starting PM2 on Boot
To make sure PM2 can do it’s job when (re)booting your operating system, it needs to be started on boot. Luckily, PM2 has a handy helper for this.
PM2 will now show you a command you need to execute.
Make a MagicMirror start script.
To use PM2 in combination with MagicMirror, we need to make a simple shell script. Preferable, we put this script outside the MagicMirror folder to make sure it won’t give us any issues if we want to upgrade the mirror.
You mirror should now boot up and appear on your screen after a few seconds.
Enable restarting of the MagicMirror script.
To make sure the MagicMirror restarts after rebooting, you need to save the current state of all scripts running via PM2. To do this, execute the following command:
And that’s all there is! You MagicMirror should now reboot after start, and restart after any failure.
Controlling you MagicMirror via PM2.
With your MagicMirror running via PM2, you have some handy tools at hand: