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

    Posts

    Recent Best Controversial
    • RE: .txt file include

      there is a general design your module have to look like

      you have to create a directory in ~/MagicMirror/modules/YOUR_MODULE_NAME

      then create a file YOUR_MODULE_NAME.js

      Module.register("YOUR_MODULE_NAME",{
          //here comes the rest of the code for module I posted above
      });
      

      then create a file node_helper.js

      const NodeHelper = require("node_helper");
      const fs= require("fs");
      
      module.exports = NodeHelper.create({
          //here comes the part of the nodehelper after the 3 dots as posted above
      });
      
      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      hopefully this works for @cowboysdude as well

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      then it’s really strange that you can’t find the driver, did you wrote v412 or v4l2 ?

      looks like you typed 1 but it should be a lowercase L

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      strange this is the driver for the camera module

      do you have enabled the camera module?

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      can you guys try sudo modprobe bcm2835-v4l2 in the console before starting the mirror

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      this sounds that your cam is not getting recognized as a valid webcam

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-TTS

      voice recognition and installer are finished, but need to build the module itself

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-TTS

      @alexyak still in development was working most of the time on different modules

      [card:fewieden/MMM-voice]

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: .txt file include

      @dominic this should give you an idea how to solve your problem, I just wrote it down maybe you have to adjust something a little bit and it’s not a finished solution

      • nodehelper:
      const fs = require('fs');
      ...
      
      socketNotificationReceived: function(notification, payload) {
          if(notification === 'START'){
              this.config = payload;
              this.readData();
              setInterval(() => {
                  this.readData();
              }, this.config.updateInterval);
          }
      },
      
      readData: function(){
          //to read a file to do the following
          fs.readFile('YOUR FILE PATH', (err, data) => {
              if (err) throw err;
              this.sendSocketNotification('DATA', data);
          });
      }
      
      • module:
      defaults: {
          updateInterval: 30*60*1000 //reads the file every 30 mins
      },
      
      start: function(){
          this.sendSocketNotification('START', this.config);
      },
      
      socketNotificationReceived: function(notification, payload) {
          if(notification === 'DATA'){
              this.dataFile = payload;
              this.updateDom();
          }
      },
      
      getDom: function(){
          var wrapper = document.createElement('div');
          if(this.dataFile){
              wrapper.innerHTML = this.dataFile;
          } else {
              wrapper.innerHTML = 'No data';
          }
          return wrapper;
      }
      
      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      @alexyak the logs from @trividar show only state hdmi on never hdmi off, so maybe the check for on off is not correct in the module, as an idea create a dev branch where you don’t check with tvservice -s, just set a variable hdmi true/false after you running a command and starting with true in the start method of the nodehelper and let them checkout this branch

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: NFL Score Module

      I will create a module next week, just tell me in a personal message what should be displayed in the module (have no clue about baseball and what data can be interesting) as its not related to the nfl module

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      @trividar can you post your pm2 logs

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      @trividar I thought the commands are working for you, as you pointed out 2 hours ago? I was struggling with this myself for a seperate module, it didn’t work in the terminal i had to login at tty6 or with the solution I posted I got weird colors and a zoom effect on my screen, but in the node_helper it worked at least for me.

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Motion Detector

      @trividar @cowboysdude paviro is also using the same code lines in his pir sensor module and a user had similar issues, maybe his solution also work for you

      https://forum.magicmirror.builders/topic/208/pir-sensor-put-your-mirror-to-sleep-if-not-used/43
      https://forum.magicmirror.builders/topic/208/pir-sensor-put-your-mirror-to-sleep-if-not-used/64

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-ShipmentTracking

      @Argentum if you provide me tracking ids that work with those sites i will add them for sure

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: mpd/mpc titel display on MM

      maybe the module of paviro can give you a kickstart https://github.com/paviro/MMM-Facial-Recognition/blob/master/node_helper.js

      he’s using pyshell, you can use this as well

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: mpd/mpc titel display on MM

      thats exactly what i meant but you would go for spawn not exec

      just post your progress and questions, the others and I will help you creating your module

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: mpd/mpc titel display on MM

      you could run the python script as a childprocess in the node_helper and then listen on stdout, when you receive data you could send a socket notification to your module and then display it on the mirror

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: McSorley's Mirror

      https://www.amazon.co.uk/HDE-Plated-Degree-Female-Adapter/dp/B0080ID9ZW/

      https://www.amazon.co.uk/StarTech-Degree-Angled-DVI-D-Monitor/dp/B0035PS586/

      posted in Show your Mirror
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-ShipmentTracking

      There is a new carrier called Landmark added

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • 1
    • 2
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 80 / 85