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

    Topics

    • M

      MMM-atHome

      Watching Ignoring Scheduled Pinned Locked Moved Utilities
      1
      1
      0 Votes
      1 Posts
      800 Views
      M
      This is pretty niche, but I wanted to show my next rubbish collections as we have multiple that are on different weeks. My local council doesn’t appear have an API and the website to view the next collections isn’t the easiest to pull data from. They do however use the @HOME app, and from this I have pulled back the relevant JSON. More details can be found at: MMM-atHome [image: 1610447338782-screenshot.png]
    • M

      MMM-qnapDownloadStation

      Watching Ignoring Scheduled Pinned Locked Moved Utilities
      1
      1
      0 Votes
      1 Posts
      273 Views
      M
      I’ve created a module, MMM-qnapDownloadStation, that will show the current downloads from Download Station running under a QNAP NAS. [image: 1600412610872-example.png]
    • M

      Convert bytes to megabytes - JSON

      Watching Ignoring Scheduled Pinned Locked Moved Development
      8
      0 Votes
      8 Posts
      2k Views
      M
      Thanks for the replies :thumbs_up_light_skin_tone: I’ve got the bytes string converting to a number, so that’s all good. Now the next question, @Bugsounet how do I use your function within the JSON.parse function? var payload = JSON.parse(payload, function (key, value) { if ( key === 'down_rate' ) { var num = Number(value); return (num/(1024*1024)).toFixed(2); } Just to add, I had tried the following and receive a this.convert is not a function var downrate = this.convert(value,0); return downrate;
    • M

      sendSocketNotification not working

      Watching Ignoring Scheduled Pinned Locked Moved Development
      3
      0 Votes
      3 Posts
      2k Views
      M
      Got this sorted - found there is another url that holds the information so added another request. The request I was having issues with was a post request, whereas the one I am using is a get.
    • M

      MMM-Hive

      Watching Ignoring Scheduled Pinned Locked Moved Utilities
      39
      4
      4 Votes
      39 Posts
      22k Views
      N
      I think its to do with Hive’s 2-factor authentication Does anyone have a workaround for it?
    • M

      [Solved] Data layout - icon and text in same cell with spacing

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      2
      2
      0 Votes
      2 Posts
      1k Views
      M
      I’ve been ‘googling’ since posting and have found the solution (may not be the best solution, but it is now working). I’ll put it here as it may help someone, or someone else may have a better suggestion: targetTemperatureCell.insertBefore(frostCell, targetTemperatureCell.firstChild);
    • M

      Passing variable from one request to another

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      8
      0 Votes
      8 Posts
      3k Views
      strawberry 3.141S
      @mongo116 the callback of the request gets executed async, so you can’t put them just next to each other. Because then the second request would be fired before the first one got his respond, by nesting you can ensure that the first request got a respond.
    • M

      Hive current room temperature

      Watching Ignoring Scheduled Pinned Locked Moved Requests
      10
      0 Votes
      10 Posts
      5k Views
      M
      I’ve only gone and bloody done it!! https://forum.magicmirror.builders/topic/4576/mmm-hive [card:flick116/MMM-Hive] Please be gentle with the critique!
    • 1 / 1