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
    • 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
    • 4
    • 5
    • 6
    • 2 / 6