Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Custom module to run python script

    Development
    4
    4
    2480
    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
      sureshkocherla last edited by

      I have one python script. I want to create a new custom module to run the python script automatically
      Kindly guide me.

      1 Reply Last reply Reply Quote 0
      • S
        Sputnik last edited by

        I would like to do the same thing 🙂

        strawberry 3.141 1 Reply Last reply Reply Quote 0
        • P
          pinsdorf Module Developer last edited by

          A good starting point might be the module MMM-dht by @nebulx29. It executes a custom shell command to read data from a sensor. You’ll find the invocation of the script in file node_helper.js. NB: it makes three calls, because it needs three values from the sensor.

          In your use case, you’d call Python with your script name instead.

          1 Reply Last reply Reply Quote 0
          • strawberry 3.141
            strawberry 3.141 Project Sponsor Module Developer @Sputnik last edited by

            @Sputnik the facerecognition moduel of @paviro makes also heavy use of python scripts, take a look here https://github.com/paviro/MMM-Facial-Recognition/blob/master/node_helper.js

            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy