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 and MagicMirro

    Scheduled Pinned Locked Moved Troubleshooting
    magicmirrorpythontroubleshoot
    3 Posts 2 Posters 1.0k 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.
    • C Offline
      caxapok
      last edited by caxapok

      I have written python code and I want to output a variable from it to a mirror screen, tell me how this can be implemented. Help me please682dbfc9-cfbd-4548-8aa5-256921b996d8-image.png

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @caxapok
        last edited by sdetweil

        @caxapok there is no generic solution that I am aware of. you would have to create a module, that launches the python script from the node_helper and sends it to the modulename.js to be displayed

        you could use my sample module as a starting spot, and add the process.spawn or process.exec code to the node helper. the sample already sends a message to be displayed

        https://github.com/sdetweil/SampleModule

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @caxapok I created a module for this

          https://github.com/sdetweil/MMM-PythonPrint.git

          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