MMRIZE / MMM-TelegramBot

TelegramBot module for remote-controlling MagicMirror
MIT License
26 stars 8 forks source link

Restarted on message appears randomly. #23

Closed radokristof closed 5 years ago

radokristof commented 5 years ago

Hi!

The 'restarted on...' message appears randomly, even when MagicMirror is not restarted. Why it happens?

Alternatively, can I turn this message off?

eouia commented 5 years ago

Hmmm.. that message will be bursted on start of module. Have you refreshed it? Or tell me which environment are you using.

radokristof commented 5 years ago

I’m not even at home where the Mirror is. Haven’t touched anything. RPi 3B

eouia commented 5 years ago

if your are using pm2 and your mirror or RPI has some trouble to maintain MM, MM will restart automatically. In that case, the message will be bursted again (Ant that is the purpose of the message) Or, you are using multi-thread PC as Mirror hosting computer, it could happen. that case?

radokristof commented 5 years ago

Yes I'm using with pm2. If I use a service for that instead pm2 that could solve this restart issue?

eouia commented 5 years ago

No, it means your MM is not stable so it restarts often. You should check your system and modules to figure why your mm restarts so repeatedly. Anyway I’ll patch for option to use or not welcomeMsg in a few days(after my kids vacation)

ghost commented 5 years ago

Is it possible the welcome message on the reboot of MM? I'll reboot my mirror couple of times per week (not running when not at home etc.) and I do not really need a welcome message every time. Mirror works fine..

eouia commented 5 years ago

@FatTony123 @radokristof I'll add a feature of turning-off bootup message by configuration on next updates

eouia commented 5 years ago

Updated. Please test it.

ghost commented 5 years ago

@eouia works fine, just tested! Thanks!