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.

    Magic Mirror & Body Breaking Sensors

    Scheduled Pinned Locked Moved Unsolved Requests
    4 Posts 2 Posters 637 Views 2 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.
    • S Offline
      Silky
      last edited by

      Hello everyone,

      I am wondering if there is a module that allows the magic mirror to interact with body break sensors. My idea is to have a program that runs on the mirror that is also hooked up to these sensors to detect and display when the sensor is broken. My hope for it is to have it while working out for squats hit depth with your hips as well as holding it at depth. I would also like for it to display sets and reps or how many times the sensor was broken and display that on the screen as well.

      This would be more of a built in fitness tracker for squats (or other exercises) that tracks reps/sets, time the sensor is broken (or holding the movement) and the exercise chosen.

      Any help would be amazing I am really stuck on how to code it!!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Silky
        last edited by

        @silky what is a ‘body break sensor’? never heard of

        google doesn’t return any useful results

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          Silky @sdetweil
          last edited by

          @sdetweil Its just an IR sensor that has an output and input for the IR laser and once the connection is broken between the the two (by an object) it is detected. Garage doors use this to detect if anything is in the way. The reason I call it a “body break sensor” is because usually business use these to detect how much traffic is coming in and out of their business. Was wanting to use the same concept but for what I said in the original post!

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Silky
            last edited by

            @silky ok, got it… so, what is the problem?

            is there some python code that can read the sensor connected to the gpio pins?

            typically in MM us have a node_helper .js which lanuches a pythin script, which runs forever ans prints out ‘connected’ or ‘not connected’.

            then the lanucher code in helper (uses spawn) has handler to react to the print

            stdout.on('data, (print_content)=> {
                // some function code to to
                // maybe send event up to module to handle 
               this.sendSocketNotification(sensor_event, print_content)
            })
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • 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