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

    Topics

    • J

      error loop

      Watching Ignoring Scheduled Pinned Locked Moved Development
      11
      1
      0 Votes
      11 Posts
      4k Views
      ?
      @jchenaud MODULE_DOM_CREATED is not so good time. Because, It would be emitted when Your DOM was created, but All of other DOMs are not rendered yet. DOM_OBJECTS_CREATED is better. If you want to using position, use .getDom(). A usual way to use position is, in .getDom() to initialize your rendering and to prepare the framework to draw. And you can choose one of drawing tricks. getDom() shall take care of all the drawing. in .getDom() put all of your rendering framework and contents. and you can refresh your render by calling .updateDom() getDom() shall draw only framework, Contents should be drawn by your another function with HTML DOM manipulation. or getDom() just return empty wrapper, Then, all of your rendering and refreshing will be performed by yourself. Which is better? case-by-case. For the last question; I cannot figure out. :)
    • J

      Real Time ECG

      Watching Ignoring Scheduled Pinned Locked Moved Development
      3
      0 Votes
      3 Posts
      2k Views
      D
      For anything involving a graph drawn from JS(ON) data, I can only recommend highcharts. It’s possible to display dynamic graphs from live data. Example: https://www.highcharts.com/stock/demo/dynamic-update/ https://www.highcharts.com/docs/working-with-data/live-data Your python code could provide a JSON and the MM-module calls the JSON and prints the graph. I’ve used highcharts before but never dynamically like in the example above. Here’s an example where I used it in a module: https://github.com/TTigges/MMM-Oiltank/blob/master/MMM-Oiltank.js
    • 1 / 1