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 6.2k 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.
    • M Offline
      MagicStarthilfe
      last edited by

      Hello everybody,
      I’ve recently had a problem with the MMM-GroveGestures module. Besides, a great module!
      I get the following messages in /MagicMirror-error.log.

      0|MagicMirror  | [21:22:51.860] [LOG]
      0|MagicMirror  | Keyboard Interrupted
      0|MagicMirror  | [21:22:51.862] [LOG]    [GESTURE] Gesture script is finished.
      0|MagicMirror  | [21:22:52.366] [LOG]
      0|MagicMirror  | [GESTURE] Python script is terminated. It will restart soon.
      

      A restart does not help.
      I use a Raspberry Pi 3 Model B Rev 1.2

      PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
      NAME="Raspbian GNU/Linux"
      VERSION_ID="9"
      VERSION="9 (stretch)"
      VERSION_CODENAME=stretch
      ID=raspbian
      ID_LIKE=debian
      HOME_URL="http://www.raspbian.org/"
      SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
      BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
      

      I use the following modules:
      MMM-DWD weather warning; MMM NOAA; MMM-pages; MMM Remote Control; MMM buttons; MMM Grove Gestures; MMM notification trigger; MMM-PIR sensor; MMM-NASA; MMM-page-indicator; MMM-Public Transport Hafas

      I would be very thankful for help.
      Carsten

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @MagicStarthilfe
        last edited by

        @MagicStarthilfe
        how often did it happen? always? randomly?
        When did it happen usually? soon after start? in some minutes or hours?

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by A Former User

          too fast or too slow i2c speed could make this kind issue.
          try to adjust speed to 10000 - 32000 (default might be 100000 I remembered)

          https://www.raspberrypi-spy.co.uk/2018/02/change-raspberry-pi-i2c-bus-speed/

          M 2 Replies Last reply Reply Quote 1
          • M Offline
            MagicStarthilfe @Guest
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M Offline
              MagicStarthilfe @Guest
              last edited by

              @Sean
              Thanks for the quick answer.
              Last night it started correctly for once. That was after several restarts, no idea why it suddenly worked. Then I let the system run overnight, that was no problem.
              I rebooted it earlier for a test. The error did not occur then, but the module does not react now. Therefore all modules are on the first page (use MMM-GroveGestures for the page change together with MMM-pages, MMM-page-indicator and MMM notification trigger which worked otherwise). Even a restart does not help at the moment. I have increased the speed of i2c.
              python gesture_print.py works.
              All modules seem to be loaded correctly. (see MagicMirror-out.log
              below)
              Is it maybe more a problem of MMM-pages?
              Today I will test the system without MMM-pages and only with the clock, if MMM-GroveGestures works I will start the other modules bit by bit. Maybe I can identify a module that causes problems.

              [11:32:16.198] [LOG]    Starting MagicMirror: v2.10.1
              [11:32:16.215] [LOG]    Loading config ...
              [11:32:16.234] [LOG]    Loading module helpers ...
              [11:32:16.236] [LOG]    No helper found for module: alert.
              [11:32:16.371] [LOG]    Initializing new module helper ...
              [11:32:16.372] [LOG]    Module helper loaded: updatenotification
              [11:32:16.374] [LOG]    No helper found for module: clock.
              [11:32:16.544] [LOG]    Initializing new module helper ...
              [11:32:16.545] [LOG]    Module helper loaded: MMM-Remote-Control
              [11:32:16.561] [LOG]    Initializing new module helper ...
              [11:32:16.562] [LOG]    Module helper loaded: MMM-GroveGestures
              [11:32:16.570] [LOG]    Initializing new module helper ...
              [11:32:16.571] [LOG]    Module helper loaded: MMM-NotificationTrigger
              [11:32:16.572] [LOG]    No helper found for module: MMM-page-indicator.
              [11:32:16.574] [LOG]    No helper found for module: MMM-pages.
              [11:32:16.648] [LOG]    Initializing new module helper ...
              [11:32:16.649] [LOG]    Module helper loaded: MMM-PIR-Sensor
              [11:32:17.647] [LOG]    Initializing new module helper ...
              [11:32:17.648] [LOG]    Module helper loaded: MMM-SystemStats
              [11:32:18.339] [LOG]    Initializing new module helper ...
              [11:32:18.339] [LOG]    Module helper loaded: MMM-PublicTransportHafas
              [11:32:18.345] [LOG]    Initializing new module helper ...
              [11:32:18.346] [LOG]    Module helper loaded: MMM-NASA
              [11:32:18.575] [LOG]    Initializing new module helper ...
              [11:32:18.576] [LOG]    Module helper loaded: MMM-NOAA
              [11:32:19.573] [LOG]    Initializing new module helper ...
              [11:32:19.576] [LOG]    Module helper loaded: MMM-DWD-WarnWeather
              [11:32:19.664] [LOG]    Initializing new module helper ...
              [11:32:19.664] [LOG]    Module helper loaded: newsfeed
              [11:32:19.665] [LOG]    All module helpers loaded.
              [11:32:19.667] [LOG]    Starting server on port 8080 ...
              [11:32:19.691] [LOG]    Server started ...
              [11:32:19.693] [LOG]    Connecting socket for: updatenotification
              [11:32:19.695] [LOG]    Connecting socket for: MMM-Remote-Control
              [11:32:19.697] [LOG]    Starting node helper for: MMM-Remote-Control
              [11:32:19.714] [LOG]    Connecting socket for: MMM-GroveGestures
              [11:32:19.716] [LOG]    Connecting socket for: MMM-NotificationTrigger
              [11:32:19.763] [LOG]    Connecting socket for: MMM-PIR-Sensor
              [11:32:19.766] [LOG]    Connecting socket for: MMM-SystemStats
              [11:32:19.768] [LOG]    Connecting socket for: MMM-PublicTransportHafas
              [11:32:19.770] [LOG]    Connecting socket for: MMM-NASA
              [11:32:19.772] [LOG]    Starting node_helper for: MMM-NASA
              [11:32:19.774] [LOG]    Connecting socket for: MMM-NOAA
              [11:32:19.776] [LOG]    Starting module: MMM-NOAA
              [11:32:19.801] [LOG]    Connecting socket for: MMM-DWD-WarnWeather
              [11:32:19.802] [LOG]    MMM-DWD-WarnWeather helper started...
              [11:32:19.803] [LOG]    Connecting socket for: newsfeed
              [11:32:19.805] [LOG]    Starting module: newsfeed
              [11:32:19.805] [LOG]    Sockets connected & modules started ...
              [11:32:20.114] [LOG]    Launching application.
              [11:32:25.625] [LOG]    Transportation fetcher for station with id '008000263' created.
              [11:32:26.201] [LOG]    Transportation fetcher for station with id '000625258' created.
              [11:32:26.356] [LOG]    Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
              
              
              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @MagicStarthilfe
                last edited by

                @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 Reply Quote 0
                • M Offline
                  MagicStarthilfe @Guest
                  last edited by

                  @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 Reply Quote 0
                  • E Offline
                    Egnos @MagicStarthilfe
                    last edited by

                    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 Reply Quote 0
                    • M Offline
                      MMRIZE @Egnos
                      last edited by

                      @Egnos
                      Try 10000 or 32000.

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        MMRIZE @Egnos
                        last edited by MMRIZE

                        @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 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