• 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.

Displaying JSON returns

Scheduled Pinned Locked Moved Development
2 Posts 2 Posters 327 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.
  • L Offline
    laprison
    last edited by Dec 5, 2020, 9:12 PM

    Hello all,

    I am new to .js and MMM module development and I want to create my own MMM module.

    I got a javascript file that sends a request to a python function which sends the response back as json. This works fine. How can I display the json returns on the mirror? I am stuck on the node_helper and MMM-myModule files.

    Thanks

    S 1 Reply Last reply Dec 5, 2020, 9:50 PM Reply Quote 0
    • S Offline
      sdetweil @laprison
      last edited by sdetweil Dec 5, 2020, 9:52 PM Dec 5, 2020, 9:50 PM

      @laprison node_helper invokes the python script, and then sends the json data up to module.

      See the process.exec or process.spawn library functions

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • 1 / 1
      1 / 1
      • First post
        2/2
        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