• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-GroveGestures / Python script is terminated

Scheduled Pinned Locked Moved Solved Troubleshooting
25 Posts 5 Posters 4.5k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    A Former User @MagicStarthilfe
    last edited by Feb 9, 2020, 11:01 AM

    @MagicStarthilfe
    I don’t know whether MMM-Pages would be reason or not at this moment. Your last log seems so quite normal anyway (or saying nothing important really. :D)
    If you are using MMM-Pages, keep this kind of module is valid on each page. I think it’s better to keep it globally out of those kinds of suspending/resuming control.

    M 1 Reply Last reply Feb 13, 2020, 7:45 PM Reply Quote 0
    • M Offline
      MagicStarthilfe @Guest
      last edited by Feb 13, 2020, 7:45 PM

      @Sean Hello,
      the error " Python script is terminated" I could actually fix by adjusting the i2c speed. Thanks for the tip.
      The subsequent errors were caused by the NOAA module.
      Thanks for the help.

      E 1 Reply Last reply Sep 5, 2023, 8:48 AM Reply Quote 0
      • E Offline
        Egnos @MagicStarthilfe
        last edited by Sep 5, 2023, 8:48 AM

        Hi @MagicStarthilfe I have the same problem as you:

        [04.09.2023 12:50.18.499] [LOG]   [GESTURE] Gesture script is finished.
        [04.09.2023 12:50.19.072] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
        [04.09.2023 12:50.19.270] [LOG]   [GESTURE] ORIGIN:wake-up finish.
        [04.09.2023 12:50.19.393] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
        [04.09.2023 12:59.32.764] [LOG]   Keyboard Interrupted
        

        I use a Raspberry Pi 4 4GB with MagicMirror² v2.24.0 (the latest version…).

        Do you remeber wich “i2c” speed you have used for fix the problem?

        Thanks.

        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

        M 2 Replies Last reply Sep 5, 2023, 12:42 PM Reply Quote 0
        • M Offline
          MMRIZE @Egnos
          last edited by Sep 5, 2023, 12:42 PM

          @Egnos
          Try 10000 or 32000.

          1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @Egnos
            last edited by MMRIZE Sep 5, 2023, 12:45 PM Sep 5, 2023, 12:44 PM

            @Egnos
            However the “terminated” message itself is nothing wrong.
            “Too often without any gesture triggered” cases only be the issue.

            E 1 Reply Last reply Sep 5, 2023, 1:04 PM Reply Quote 0
            • E Offline
              Egnos @MMRIZE
              last edited by Sep 5, 2023, 1:04 PM

              @MMRIZE said in MMM-GroveGestures / Python script is terminated:

              Try 10000 or 32000.

              I think I tried 10000 and nothing changed, I’ll try 32000

              @MMRIZE said in MMM-GroveGestures / Python script is terminated:

              “Too often without any gesture triggered” cases only be the issue.

              Like in my case:

              [04.09.2023 08:52.13.012] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 08:52.13.514] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 08:52.13.706] [LOG]   Keyboard Interrupted
              [04.09.2023 08:52.13.707] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 08:52.14.208] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 08:52.14.414] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 08:52.14.547] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 09:00.23.783] [INFO]  Calendar-Fetcher: Broadcasting 12 events.
              [04.09.2023 09:02.38.447] [LOG]   Keyboard Interrupted
              [04.09.2023 09:02.38.448] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 09:02.38.951] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 09:02.39.143] [LOG]   Keyboard Interrupted
              [04.09.2023 09:02.39.147] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 09:02.39.650] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 09:02.39.811] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 09:02.39.932] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 09:08.15.627] [LOG]   Keyboard Interrupted
              [04.09.2023 09:08.15.629] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 09:08.16.131] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 09:08.16.345] [LOG]   Keyboard Interrupted
              [04.09.2023 09:08.16.348] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 09:08.16.852] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 09:08.17.038] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 09:08.17.158] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 09:31.42.854] [LOG]   Keyboard Interrupted
              [04.09.2023 09:31.42.859] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 09:31.43.364] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 09:31.43.517] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 09:31.43.638] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 10:00.24.425] [INFO]  Calendar-Fetcher: Broadcasting 12 events.
              [04.09.2023 10:17.30.788] [LOG]   Keyboard Interrupted
              [04.09.2023 10:17.30.792] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 10:17.31.298] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 10:17.31.451] [LOG]   Keyboard Interrupted
              [04.09.2023 10:17.31.452] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 10:17.31.953] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 10:17.32.137] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 10:17.32.252] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 10:17.38.740] [LOG]   Keyboard Interrupted
              [04.09.2023 10:17.38.741] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 10:17.39.243] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 10:17.39.462] [LOG]   Keyboard Interrupted
              [04.09.2023 10:17.39.464] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 10:17.39.973] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 10:17.40.117] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 10:17.40.242] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 11:00.24.921] [INFO]  Calendar-Fetcher: Broadcasting 12 events.
              [04.09.2023 11:09.56.054] [LOG]   Keyboard Interrupted
              [04.09.2023 11:09.56.059] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 11:09.56.573] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 11:09.56.793] [LOG]   Keyboard Interrupted
              [04.09.2023 11:09.56.802] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 11:09.57.364] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 11:09.57.631] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 11:09.57.754] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 12:00.25.300] [INFO]  Calendar-Fetcher: Broadcasting 12 events.
              [04.09.2023 12:50.17.726] [LOG]   Keyboard Interrupted
              [04.09.2023 12:50.17.736] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 12:50.18.243] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 12:50.18.496] [LOG]   Keyboard Interrupted
              [04.09.2023 12:50.18.499] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 12:50.19.072] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 12:50.19.270] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 12:50.19.393] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 12:59.32.764] [LOG]   Keyboard Interrupted
              [04.09.2023 12:59.32.765] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 12:59.33.269] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 12:59.33.470] [LOG]   Keyboard Interrupted
              [04.09.2023 12:59.33.479] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 12:59.33.987] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 12:59.34.190] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 12:59.34.340] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 13:00.25.675] [INFO]  Calendar-Fetcher: Broadcasting 12 events.
              [04.09.2023 13:11.28.559] [LOG]   [SPOTIFY - Daniele] Will retry in 5 seconds ...
              [04.09.2023 13:41.29.947] [LOG]   Keyboard Interrupted
              [04.09.2023 13:41.29.948] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 13:41.30.452] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 13:41.30.681] [LOG]   Keyboard Interrupted
              [04.09.2023 13:41.30.686] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 13:41.31.188] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 13:41.31.384] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 13:41.31.487] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 14:00.26.016] [INFO]  Calendar-Fetcher: Broadcasting 12 events.
              [04.09.2023 14:06.09.575] [LOG]   Keyboard Interrupted
              [04.09.2023 14:06.09.576] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 14:06.10.364] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 14:06.10.574] [LOG]   Keyboard Interrupted
              [04.09.2023 14:06.10.575] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 14:06.11.078] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 14:06.11.259] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 14:06.11.398] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 14:39.19.948] [LOG]   Keyboard Interrupted
              [04.09.2023 14:39.19.957] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 14:39.20.460] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 14:39.20.983] [LOG]   Keyboard Interrupted
              [04.09.2023 14:39.20.985] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 14:39.21.488] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 14:39.21.704] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 14:39.21.806] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 14:46.27.234] [LOG]   [SPOTIFY - Daniele] Will retry in 5 seconds ...
              [04.09.2023 15:00.26.370] [INFO]  Calendar-Fetcher: Broadcasting 12 events.
              [04.09.2023 15:42.11.128] [LOG]   Keyboard Interrupted
              [04.09.2023 15:42.11.130] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 15:42.11.634] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 15:42.12.259] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 15:42.12.268] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 15:51.34.615] [LOG]   Keyboard Interrupted
              [04.09.2023 15:51.34.616] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 15:51.35.118] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 15:51.35.314] [LOG]   Keyboard Interrupted
              [04.09.2023 15:51.35.315] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 15:51.35.820] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 15:51.35.999] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 15:51.36.125] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 15:53.18.947] [LOG]   Keyboard Interrupted
              [04.09.2023 15:53.18.950] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 15:53.19.465] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 15:53.19.733] [LOG]   Keyboard Interrupted
              [04.09.2023 15:53.19.736] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 15:53.20.241] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 15:53.20.474] [LOG]   Keyboard Interrupted
              [04.09.2023 15:53.20.475] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 15:53.20.980] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 15:53.21.250] [LOG]   Keyboard Interrupted
              [04.09.2023 15:53.21.253] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 15:53.21.760] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 15:53.22.249] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 15:53.22.250] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 16:00.26.809] [INFO]  Calendar-Fetcher: Broadcasting 12 events.
              [04.09.2023 16:07.05.688] [LOG]   Keyboard Interrupted
              [04.09.2023 16:07.05.690] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 16:07.06.193] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 16:07.06.363] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 16:07.06.474] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              [04.09.2023 16:07.55.429] [LOG]   Keyboard Interrupted
              [04.09.2023 16:07.55.432] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 16:07.55.935] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 16:07.56.121] [LOG]   Keyboard Interrupted
              [04.09.2023 16:07.56.122] [LOG]   [GESTURE] Gesture script is finished.
              [04.09.2023 16:07.56.626] [LOG]   [GESTURE] Python script is terminated. It will restart soon.
              [04.09.2023 16:07.56.815] [LOG]   [GESTURE] ORIGIN:wake-up finish.
              [04.09.2023 16:07.56.969] [LOG]   [GESTURE] ORIGIN:Paj7620 initialize register finished.
              

              My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

              M 1 Reply Last reply Sep 5, 2023, 2:08 PM Reply Quote 0
              • M Offline
                MMRIZE @Egnos
                last edited by Sep 5, 2023, 2:08 PM

                @Egnos
                By spec, PAJ7620’s MAX i2c speed is 400Kbit/s (400,000) But sometimes Raspberry PI i2c cannot handle fast devices.

                Have you tried testing the sensor?

                cd ~/MagicMirror/modules/MMM-GroveGestures/py
                python gesture_print.py
                

                And there could be other possible causes;

                • Pins are not stably connected
                • Too long cabling, > 30cm. The signal would be weaker or noisy.
                • I2C frequency is still too high. Set slower (lesser number than your trials)
                • I2C Bus overloaded, if you are connecting other i2c connections. (maybe more than 3 or 4s)
                E 1 Reply Last reply Sep 5, 2023, 6:42 PM Reply Quote 0
                • E Offline
                  Egnos @MMRIZE
                  last edited by Egnos Sep 5, 2023, 8:26 PM Sep 5, 2023, 6:42 PM

                  @MMRIZE said in MMM-GroveGestures / Python script is terminated:

                  Have you tried testing the sensor?

                  Yes, and also when appear [GESTURE] Python script is terminated. It will restart soon. the gesture works well.

                  @MMRIZE said in MMM-GroveGestures / Python script is terminated:

                  Pins are not stably connected

                  I exclude it.

                  @MMRIZE said in MMM-GroveGestures / Python script is terminated:

                  Too long cabling, > 30cm. The signal would be weaker or noisy.

                  It will surely be longer, 40 or 50 cm

                  @MMRIZE said in MMM-GroveGestures / Python script is terminated:

                  I2C frequency is still too high. Set slower (lesser number than your trials)

                  I tried all speeds, maybe with 32000 seems better.
                  From this value (32000) do I go down or up?

                  @MMRIZE said in MMM-GroveGestures / Python script is terminated:

                  I2C Bus overloaded, if you are connecting other i2c connections. (maybe more than 3 or 4s)
                  I exclude it. I have only Paj7620 and PIR sensor on GPIO…

                  I’m sure with the old version v2.23 of MM I always had the error messages but the gesture sensor always worked, with the new version v2.24.0 of MM sometimes the sensor stops working and I have to redo this procedure
                  https://github.com/MMRIZE/MMM-GroveGestures#install-hw

                  @MMRIZE Thanks for your precious advises.

                  My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                  M 1 Reply Last reply Sep 6, 2023, 7:05 AM Reply Quote 0
                  • M Offline
                    MMRIZE @Egnos
                    last edited by Sep 6, 2023, 7:05 AM

                    @Egnos said in MMM-GroveGestures / Python script is terminated:

                    Too long cabling, > 30cm. The signal would be weaker or noisy.

                    It will surely be longer, 40 or 50 cm

                    Hopefully not, over 30cm long cabling could be the issue. (You wrote 40~50cm, is it right?)

                    E 1 Reply Last reply Sep 6, 2023, 12:38 PM Reply Quote 0
                    • E Offline
                      Egnos @MMRIZE
                      last edited by Sep 6, 2023, 12:38 PM

                      @MMRIZE Yes, from the GPIO to the sensor there will be about 40/45 cm…

                      My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                      M 1 Reply Last reply Sep 6, 2023, 1:37 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy