I installed the PrayerTime module. Then I wrote the reboot code. After that, the device constantly turns on and off by itself. MagicMirror message appears and closes again. Then it opens again.
edit_1 : ı delete MMM-PrayerTİme and working normally.