MagicMirror Forum

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

    Python to Javascript?

    General Discussion
    3
    3
    2278
    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.
    • J
      jamielola last edited by

      Hi

      I noticed all the modules seem to be built using JS, however I have an Python program running on my Raspberry PI that does exactly what I need it to do (it uses some python libraries). Would it be possible to build a module using Python, or convert it to JS somehow so I could have it up on a Magic Mirror. Sorry if this has been answered or glaringly obvious, so much information to take in atm. ps my JavaScript skills are 2/10 but I am learning so please go easy. Thank you

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

        @jamielola in the node_helper you can execute a python script and then take the data from there to js have a look here https://github.com/paviro/MMM-Facial-Recognition/blob/master/node_helper.js#L11-L31

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • L
          LiliSa last edited by

          This post is deleted!
          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