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…
Read the statement by Michael Teeuw here.
Posts made by yours.mukul
-
Core of MagicMirror
-
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
-
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. -
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, -
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
- It will be without animation
- 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
-
RE: Including socketNotificationReceived in getDom function
@Sean
node_helper.jsvar 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; } });
-
RE: Including socketNotificationReceived in getDom function
@Sean said in Including socketNotificationReceived in getDom function:
var lat = this.geo.lat
var lng = this.geo.lngnot working, it always shows up 0,0 latitude and longitude…
-
RE: Including socketNotificationReceived in getDom function
@Sean getDom() in Maps.js
-
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??
-
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