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.

    Python to Javascript?

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 2.6k Views 3 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.
    • J Offline
      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.141S 1 Reply Last reply Reply Quote 1
      • strawberry 3.141S Offline
        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 Offline
          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 Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy