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

    Posts

    Recent Best Controversial
    • Curiosity

      If a person has 20 modules installed and all the modules use network resources, then when we fire up Magic Mirror do all these modules start and start using network as well a memory and processor resources??

      If so can’t we make a framework where the modules are triggered rather than starting with Magic Mirror. I have roughly 15-20 modules installed and it takes a lot of resources, what if I can trigger which module to start when?

      posted in Troubleshooting
      Y
      yours.mukul
    • RE: Electron taking too much memory and processing

      @Mykle1 should I use this command in ‘MagicMirror/node_modules/’ directory or somewhere else.
      Also how to uninstall electron manually?
      I’m sorry if my question is too basic.

      posted in Troubleshooting
      Y
      yours.mukul
    • RE: Electron taking too much memory and processing

      @Mykle1 I already have MM-2.1.0 installed. I just have the electron 1.6.1 So I believe downgrading electron will show some result.

      If I’m not wrong then, the conclusion from the link you posted, was MM-2.1.0 with electron 1.4.5??

      Also if i use npm install @1.4.5,. What will happen with the already installed electron 1.6.1, won’t it clash ???

      posted in Troubleshooting
      Y
      yours.mukul
    • RE: Electron taking too much memory and processing

      @Mykle1 I have electron version 1.6.10, can you please tell me how to make it 1.4.15?
      From the provided link I get to know that MMM-2.1.0 and Electron 1.4. 15 is the best combination.
      I’m sorry if my question appears to be very basic, also I cannot do a fresh clean new installation because my Raspberry pi has some of my other projects going on.
      Thank you …

      posted in Troubleshooting
      Y
      yours.mukul
    • Electron taking too much memory and processing

      Below is an image showing processing and memory used by my magic mirror

      Please help me out…!
      ![0_1513329865494_IMG_20171215_132840 (1).jpg](Uploading 100%)

      Command CPU RSS
      electron 33% 109.2MB
      electron 24% 142.6MB
      python 21% 256.2MB
      electron 8% 140.6MB

      posted in Troubleshooting
      Y
      yours.mukul
    • Help regarding Alert module

      Can I parse more than one url for Alert module?
      And how to iterate data to Alert module using loop?
      For e.g. I have a python script which fetches the data over loop, and I want to print the data on my magic mirror, how to do it?
      P.S. The data contains image urls as well.

      posted in Troubleshooting
      Y
      yours.mukul
    • RE: Core of MagicMirror

      Actually I need to explain MagicMirror to my Teacher, so can you please elaborate everything about it??
      @sean

      posted in General Discussion
      Y
      yours.mukul
    • RE: Core of MagicMirror

      Well I read from internet that a nodejs application must be connected to a database that’s why I’m askin

      posted in General Discussion
      Y
      yours.mukul
    • RE: Core of MagicMirror

      Which database does it use??

      posted in General Discussion
      Y
      yours.mukul
    • Core of MagicMirror

      Which database do magic mirror use?
      And what is the functionality of Magic Mirror at the core?
      I mean how it works?
      Can anyone please explain…

      posted in General Discussion
      Y
      yours.mukul
    • Basic Core System of Magicmirror

      At its core how Magic Mirror works? From the very beginning to very end including Electron app environment. Can anyone please explain. As i have to explain it to my teacher

      posted in Tutorials
      Y
      yours.mukul
    • RE: Touchscreen Modules

      I couldn’t see onclick anywhere in the touch news, can you please explain me how it uses touch??
      P.S. I’m sorry if I sound too stupid.

      posted in General Discussion
      Y
      yours.mukul
    • Touchscreen Modules

      How to make a module for touchscreen??
      I will be using a touchscreen lcd display, and I wish to make touch interactive modules,

      posted in General Discussion
      Y
      yours.mukul
    • A Module like alert

      I need a module like “Alert”, but without animation. It just need to be a box, and I can write the text which is given using url or any notification. The difference from alert would be that

      1. It will be without animation
      2. It can print data one after another, for e.g. if you did send “Hi” to Alert then you send “Magic Mirror”, then it will do it one by one. All I require is something which can do it without repeating. Just like a normal box or pastebin box
      posted in Requests
      Y
      yours.mukul
    • RE: Including socketNotificationReceived in getDom function

      @Sean
      node_helper.js

      var NodeHelper = require("node_helper");
      module.exports = NodeHelper.create({
      start: function() {
      
      var geo = {
        lat: 12.34567,
        lng: 23.45678
      }
      this.sendSocketNotification("REFRESH_GEO", geo);
      }
      }
      );
      

      main.js

      /* global Module */
      
      /* Magic Mirror
       * Module: MMM-GoogleMapsTraffic
       *
       * By Victor Mora
       * MIT Licensed.
       */
      
      Module.register("MMM-GoogleMapsTraffic", {
             start: function(){
        this.geo = {
          lat: 0, //default latitude
          lng: 0 //default longitude
        }
           },
      socketNotificationReceived: function(noti, payload) {
        console.log("NOTIFICATION IS FIRED:", noti)
        if (noti == "REFRESH_GEO") {
          console.log("PAYLOAD IS TREANFERED:", payload)
          this.geo.lat = payload.lat,
          this.geo.lng = payload.lng
          console.log("I'LL UPDATE DOM BY REFRESHED GEO")
          this.updateDom();
        }
      },
      	getDom: function() {
              var lat = this.geo.lat;
              var lng = this.geo.lng;
      
      		var wrapper = document.createElement("div");
              wrapper.setAttribute("id", "map");
      
              wrapper.style.height = this.config.height;
              wrapper.style.width = this.config.width;
      
              var script = document.createElement("script");
              script.type = "text/javascript";
              script.src = "https://maps.googleapis.com/maps/api/js?key=" + this.config.key;
              document.body.appendChild(script);
      
              script.onload = function () {
                  var map = new google.maps.Map(document.getElementById("map"), {
                  	zoom: 13,
                  	center: {
                  		lat: lat,
                  		lng: lng
                  	}
                  });
      
                  var trafficLayer = new google.maps.TrafficLayer();
                  trafficLayer.setMap(map);
              };
      
      		return wrapper;
      	}
      
      });
      
      posted in Development
      Y
      yours.mukul
    • RE: Including socketNotificationReceived in getDom function

      @Sean said in Including socketNotificationReceived in getDom function:

      var lat = this.geo.lat
      var lng = this.geo.lng

      not working, it always shows up 0,0 latitude and longitude…

      posted in Development
      Y
      yours.mukul
    • RE: Including socketNotificationReceived in getDom function

      @Sean getDom() in Maps.js

      posted in Development
      Y
      yours.mukul
    • Including socketNotificationReceived in getDom function

      Hi! I’m trying to hack down the google maps modules. I made a node_helper.js to capture the latitude and longitude of desired location, using url.

      the code of main file looks like this

      getDom: function() {
             
             
      		var wrapper = document.createElement("div");
              wrapper.setAttribute("id", "map");
      
              wrapper.style.height = this.config.height;
              wrapper.style.width = this.config.width;
      
              var script = document.createElement("script");
              script.type = "text/javascript";
              script.src = "https://maps.googleapis.com/maps/api/js?key=" + this.config.key;
              document.body.appendChild(script);
              script.onload = function () {
                  var map = new google.maps.Map(document.getElementById("map"), {
                  	zoom: 13,
                  	center: {
                  		lat: lat,
                  		lng: lng
                  	}
                  });
      
                  var trafficLayer = new google.maps.TrafficLayer();
                  trafficLayer.setMap(map);
              };
      
      		return wrapper;
      	}
      
      

      The latitude and longitude is stored in payload. All I require is ho to use socketNotificationReceived to parse both values as “lat” and “long” in script??

      posted in Development
      Y
      yours.mukul
    • RE: MMM-GrafanaCharts and MMM-GrafanaGauges: Display you data with Charts and Gauges. Beautifully.

      How to install Grafana? Does that debian work fine on rpi? I am confused since the architecture is different and I think the packages should be different as well.

      I know its a very stupid question, but please help

      posted in Utilities
      Y
      yours.mukul
    • 1
    • 2
    • 3
    • 1 / 3