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

    Scheduled Pinned Locked Moved System
    51 Posts 8 Posters 26.5k Views 12 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.
    • B Offline
      Benjaminh86 @bolish
      last edited by

      @bolish

      Great!
      I will try tonight the adaptation I made of your script.
      I put the action “MONITOROFF” in the “Default_Mode” part of Grove Gestures, that’s it?

      1 Reply Last reply Reply Quote 0
      • B Offline
        Benjaminh86 @bolish
        last edited by

        Hello @bolish,

        thanks to you! everything is working!
        however, I thought Grove Gestures would activate automatically, but I have to make the command line for the sensor to be active:
        cd ~ / MagicMirror / modules / MMM-GroveGestures / py
        cp grove_gesture_sensor.py.RPI grove_gesture_sensor.py
        Is this normal?
        Another question about MMM-Pages; I would like to display the Google Calendar calendar on page 1 and the holiday calendar on page 2, but I do not know how to differentiate and name them on MMM-Pages …
        Do you have an idea?

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

          @Benjaminh86 said in MMM-GroveGestures:

          cd ~ / MagicMirror / modules / MMM-GroveGestures / py
          cp grove_gesture_sensor.py.RPI grove_gesture_sensor.py

          It is described on instruction for installation. And that command is not for activation. I provide 2 scripts for each of Raspberry Pi and Asus TinkerBoard. you need to select one for your device. You don’t need to do that job again after once you did.

          The real activation would be performed in the module itself on every running of MM.

          B 2 Replies Last reply Reply Quote 0
          • B Offline
            bolish
            last edited by

            @Benjaminh86
            You have to search a bit on the forum.
            One idea could be to create 2 calendars instances.
            See below post extract :

            well… I believe it’s far from being perfect…but at least it seems to do the job…
            
            I created a “new” module which does exactly same / has the same code as the one I want to use, but has a different name (folder named “MMM-Calendar2” -> file named “MMM-Calendar2.js” -> within the line Module.register(‘MMM_Calendar2’)).
            Not in the default module folder but into the 3rd party module folder…
            

            And put instance 1 on page 1 and isntance 2 on page 2.

            B 2 Replies Last reply Reply Quote 0
            • B Offline
              Benjaminh86 @Guest
              last edited by

              Hello @Sean,
              I will look at this in more detail in the module.
              Thank you again for your work.

              1 Reply Last reply Reply Quote 0
              • B Offline
                Benjaminh86 @bolish
                last edited by

                @bolish
                I will explore this track.
                Thanks to you ; you already helped me a lot!

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Benjaminh86 @Guest
                  last edited by

                  @Sean
                  it’s weird; the sensor is not active if I do not order:

                  cd ~ / MagicMirror / modules / MMM-GroveGestures / py
                  cp grove_gesture_sensor.py.RPI grove_gesture_sensor.py

                  would not it come from “chmod + x * .sh” where I hurt something? …

                  ? 1 Reply Last reply Reply Quote 0
                  • B Offline
                    Benjaminh86 @bolish
                    last edited by

                    @bolish
                    it works!
                    thanks for your help

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

                      @Benjaminh86
                      Can’t understand.
                      Do you need to do that shell command per every execution of MM? Have you reinstalled it?
                      That commands just need to be done once when you install this module.

                      And that command isn’t related with chmod + x .sh at all.

                      Check this.

                      ls ~/MagicMirror/modules/MMM-GroveGestures/py
                      

                      There should be grove_gesture_sensor.py besides grove_gesture_sensor.py.RPI and grove_gesture_sensor.py.ATB.
                      Are those files there?

                      B 2 Replies Last reply Reply Quote 0
                      • B Offline
                        Benjaminh86 @Guest
                        last edited by

                        @Sean
                        I have to make this command every start of the pi, knowing that I do not start the MM automatically (pmm2) time to set everything (npm start).
                        I’ll be watching tonight with
                        ls ~ / MagicMirror / modules / MMM-GroveGestures / py

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          Benjaminh86 @Guest
                          last edited by

                          @Sean
                          That’s what happens :
                          pi@raspberrypi:~ $ ls ~/MagicMirror/modules/MMM-GroveGestures/py
                          gesture_print.py grove_gesture_sensor.pyc
                          grove_gesture_sensor.py grove_gesture_sensor.py.RPI
                          grove_gesture_sensor.py.ATB

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

                            @Benjaminh86
                            If you have those files, you don’t need to execute any manual commands o n MM running

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              MisterT
                              last edited by

                              Hi everybody,@Sean and @Benjaminh86
                              I use this module just for change pages with MMM-Pages and MMM-Pages indicator but after a while, my sensor is unknown.
                              when i just want to test the sensor with “python gesture_print.py”, i have:

                              Error with sensor
                              Paj7620 initialize register finished.

                              my matrix is good i think:

                              sudo i2cdetect -y 1
                              0 1 2 3 4 5 6 7 8 9 a b c d e f
                              00: 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
                              10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
                              20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
                              30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
                              40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
                              50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
                              60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
                              70: 70 71 72 73 74 75 76 77

                              and i have 5 file in /home/pi/MagicMirror/modules/MMM-GroveGestures/py
                              I restart Raspberry but the result is the same

                              Can aybody help me please ?

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

                                @MisterT
                                0_1561398753466_GX90uKR.png
                                If you get one similar with this (All address are shown), It would be something wrong.
                                Only 73 should be shown. There might be dead pin or H/W failure.

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MisterT @Guest
                                  last edited by

                                  @Sean thanks for your answer it was a H/W failure I2C was not activate and i don’t know why ? I enabled I2c with raspi-config and shutdown the pi. I pluged my sensor again and it works

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jim.dw
                                    last edited by

                                    @Sean Hi mate, just dipping my toe in to the whole Magic Mirror world and loving it. Was just wondering if there’s any way to control MMM-Carousel and MMM-CECControl using the output from MMM-GroveGestures?

                                    I’m thinking

                                    • Clockwise for next slide
                                    • Anti clockwise for previous slide
                                    • UP to send the wake up signal on HDMI
                                    • Down to send the sleep signal on HDMI
                                    ? 1 Reply Last reply Reply Quote 0
                                    • ? Offline
                                      A Former User @jim.dw
                                      last edited by A Former User

                                      @jim-dw
                                      Well, I’m not the author of those modules, so Ask these to the creator of MMM-Carousel / MMM-CECControl ;(Or need to check by yourself)

                                      • Are there notifications for that purpose?
                                      • Or Are there method of module class for that purpose?
                                      • Or controllable by external shell script or HTTP API?

                                      At least one of them possible, it could.

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        jim.dw
                                        last edited by

                                        @Sean lol. Good point.

                                        I guess what confused me is this code below. I understand ‘clock’ or ‘newsfeed’ can be swapped out for ‘mmm-ceccontrol’ or ‘mmm-carousel’ it’s just figuring out how I send the command.

                                        Is it “module.hide()” that needs to be replaced?

                                        Sorry for this. Still learning

                                        moduleExec: {
                                        module: [“clock”, “newsfeed”], // [] will be all modules.
                                        exec: (module, gestures) => {
                                        module.hide()
                                        }
                                        }

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

                                          @jim-dw
                                          right. “.hide()” is a common method of every module should have. Usually, module developer need to implement that method by his own or just leave it as inheritance from parent class. So, every module will have that “hide()” method definitely.
                                          Now, let’s see your needs.
                                          For example;
                                          If MMM-Carousel has specific method like “changePage(pageNo)”(IDK whether really it exists o not), you can call that method with “moduleExec”
                                          However I’m not the author of MMM-Carousel, so don’t know it supports or not. Ask to the author.

                                          S J 2 Replies Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @Guest
                                            last edited by

                                            @Sean hide() technically turns into a suspend function call in the module
                                            show() turns into resume()

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 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