UNSOLVED MM Starts before network is up
I am using pm2 and it’s startup scripts to start MM on boot on my pi 3. I tried several different ordering techniques including:
[Unit] Description=PM2 process manager Documentation=https://pm2.keymetrics.io/ Wants=network-online.target After=network.target network-online.target .... [Install] WantedBy=multi-user.target network-online.target
For some reason nothing works and I keep getting auth errors on my modules and a constant Loading text in my calendar.
I resorted to writing this in my MM startup script to wait for a ping:
((count = 100)) while [[ $count -ne 0 ]] ; do ping -c 1 184.108.40.206 rc=$? if [[ $rc -eq 0 ]] ; then ((count = 1)) fi ((count = count - 1)) done if [[ $rc -eq 0 ]] ; then cd ~/MagicMirror DISPLAY=:0 npm start fi
Anyone else have any ideas?
This post is deleted!