MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. jc21
    3. Posts
    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 4
    • Posts 30
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Two way mirror suppliers - Australia!

      The TapPlastics stuff looks to be the same as the Acrylics Online stuff, but at least you can get it to size. The Acrylics Online sheet is just a tad bit small for most monitors. I attempted to contact them ages ago about getting a custom size, but suprise suprise they didn’t respond.

      posted in Hardware
      J
      jc21
    • RE: Two way mirror suppliers - Australia!

      No I haven’t looked since. Moving house this month and I’ll get back into it after that.

      I wonder how big the sheet is and if they would cut it for you, perhaps you could split the cost with others.

      posted in Hardware
      J
      jc21
    • RE: MMM-PiLights - Control a LPD8806 Led Strip on a Raspberry Pi

      Ahh you are correct that is how I have it connected, I just had a dyslexic moment and named the opposing pins by accident :/

      posted in Utilities
      J
      jc21
    • RE: MMM-PiLights - Control a LPD8806 Led Strip on a Raspberry Pi

      This guide should cover it. Although that is for older raspberry pi models but still worth a read.

      For raspberry pi 3 I’ve connected the pins [DI to 20] and [CI to 24] as labelled in this image.

      posted in Utilities
      J
      jc21
    • MMM-PiLights - Control a LPD8806 Led Strip on a Raspberry Pi

      Specifically for MagicMirrors on a Raspberry Pi with a LPD8806 led strip, this module allows other modules to trigger light sequences or trigger from a http endpoint.

      github/jc21/MMM-PiLights

      posted in Utilities
      J
      jc21
    • MMM-IFTTT - If-This-Then-That Maker Notifications

      Description

      This is my first module so don’t expect too much :p

      This enables realtime notifications from IFTTT to your MagicMirror install, via a JSON POST endpoint of the mirror. Full instructions in the project:

      Technically, this module could be used for any webhook service such as Zapier too.

      Download

      [card:jc21/MMM-IFTTT]

      posted in Productivity
      J
      jc21
    • RE: Unable to sendSocketNotification from node_helper to Module

      Wow that is not obvious or documented.

      However, that worked :) Thanks heaps!

      posted in Development
      J
      jc21
    • RE: Unable to sendSocketNotification from node_helper to Module

      I dumbed the module right down:

      node_helper.js

      const NodeHelper = require('node_helper');
      
      module.exports = NodeHelper.create({
          start: function() {
              console.log('[IFTTT] Starting node_helper');
      
              var self = this;
              setTimeout(function () {
                  self.sendSocketNotification('MSG', {message: 'test'});
              }, 10000);
          }
      });
      

      MMM-IFTTT.js

      //...
          socketNotificationReceived: function(notification, payload) {
              if (notification === 'MSG'){
                  Log.info(payload);
              }
          },
      //...
      

      Still not getting the log in dev console :(

      posted in Development
      J
      jc21
    • Unable to sendSocketNotification from node_helper to Module

      Hi community, I’m pulling my hair out trying to get this one working.

      I’ve got my MMM-IFTTT module nearly completed, except for a small hickup.

      In the node_helper.js I’m sending a socket notification that is not getting through to the UI. It was working at some stage before nesting it in another function, so I assume it’s a scope issue. I’ve tried debugging everything everywhere, even using this.io to send it the hard way.

      I’m using the new ES6 anonymous function syntax, ie:

      this.expressApp.post('/IFTTT', (req, res) => {
      

      which should keep the this reference from outside of the function and all my console logging suggests it does, however I think that the io reference is not the same one somehow, and despite the this.io.of(this.name).emit(notification, payload); succeeding in the node helper library, the notification simply doesn’t show in the UI dev console.

      This is also apparent when trying the var self = this; method, using the self object even immediately doesn’t send through the socket.

      Any help on this scope stuff would be appreciated! Thanks in advance.

      Raspbian Jessie
      Node version: v6.6.0
      
      posted in Development
      J
      jc21
    • RE: Two way mirror suppliers - Australia!

      I’ll share what I’ve found, but I too am still looking for a local provider in Brisbane so I don’t have to pay ridiculous postage. I also want a custom size for my mirror which seems harder than it should be.

      • http://www.allplastics.com.au/architectural-building-plastics/acrylic-mirror/acrylic-two-way-mirror
      • http://www.acrylicsonline.com.au/shop-product/acrylic-mirror-sheet/acrylic-2-way-mirrored-sheet
      • http://www.mulfordplastics.com/ - I was told to look these guys up, haven’t had a chance and nothing obvious on their site
      posted in Hardware
      J
      jc21
    • 1
    • 2
    • 3
    • 3 / 3