MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Privacywonk
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 19
    • Groups 0

    Topics

    • P

      Consolidate logging to browser console

      Watching Ignoring Scheduled Pinned Locked Moved Tutorials
      1
      2 Votes
      1 Posts
      1k Views
      P
      I wanted to share a simple approach to unify logging across module components that I found incredibly useful during development. This will put all* logging in a browser console and remove the need to monitor pm2/pi console logs. In your main module code (MMM-ABC.js), where you define your sockets simply add: if (notification === 'HELPER_MESSAGE') { if (this.config.debug === 1) { Log.info(payload); } //Receive a message, log the payload to the browser console. } In your node_helper.js module, construct and send messages: if (self.config.debug === 1) { apiMessage = moment().format('YYYY-MM-DD>>HH:mm:ss.SSSZZ') + ' [node_helper] << your log message content here >>'; self.sendSocketNotification('HELPER_MESSAGE', apiMessage); } Hope this helps on your development journey! *any code errors / exceptions will still throw to the raspberry pi console / pm2
    • P

      setInterval for multiple API requests

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      5
      0 Votes
      5 Posts
      2k Views
      P
      @strawberry-3.141 - thank you for the approach. This is working out beautifully.
    • P

      UI/Data Caching

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      5
      0 Votes
      5 Posts
      2k Views
      P
      @E3V3A that worked perfectly. Thank you for sharing!
    • P

      Issues with forum display

      Watching Ignoring Scheduled Pinned Locked Moved Forum
      4
      1
      0 Votes
      4 Posts
      2k Views
      P
      It did not display properly in Safari on my iPad Pro but it worked fine on my iPhone 6 Plus. So I tested it on other iPad models (my brother’s iPad Mini 4 and my friend’s iPad Air 2), everything was just fine. So I guessed this was because of the out-of-date iOS version of my iPad Pro since they had installed the latest iOS. And my guess was right.
    • P

      MMM-Surf

      Watching Ignoring Scheduled Pinned Locked Moved Sport
      4
      2 Votes
      4 Posts
      3k Views
      P
      Updated original post with new screenshot & code updates.
    • 1 / 1