• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 882 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 Apr 11, 2021, 6:05 PM Apr 11, 2021, 5:56 PM

    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 Apr 11, 2021, 6:17 PM Reply Quote 0
    • S Away
      sdetweil @caxapok
      last edited by sdetweil Apr 11, 2021, 6:20 PM Apr 11, 2021, 6:17 PM

      @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 Away
        sdetweil @caxapok
        last edited by Apr 12, 2021, 5:25 PM

        @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
        1 / 1
        • First post
          2/3
          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