A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Change Folder of Logs of PM2 and NPM

    11
    0 Votes
    11 Posts
    5k Views
    S
    @thgmirror and there is a $HOME/.npm folder for npm, but I have no idea what all is stored there, and what needs to be persistent and not
  • PIR Sensor doesnt detect movement

    10
    0 Votes
    10 Posts
    2k Views
    T
    @1BlauNitrox it’s 28 inch lcd monitor. Few years old. Don’t know the model
  • Disable a module with touch screen (or remotely)

    4
    0 Votes
    4 Posts
    830 Views
    S
    @SvenT the module should not update when it is suspended (hidden)
  • MMM-Todoist scrolling list (Marquee)

    3
    1
    0 Votes
    3 Posts
    1k Views
    S
    @MZ-BER lucky it’s a div table and not html table
  • Sending Notification to html-file!?!?

    4
    0 Votes
    4 Posts
    806 Views
    S
    @thgmirror it’s not ‘in an html’ it has to be loaded into a browser. and then u have to export it correctly, and THEN you can call it ft another script.
  • Face Recognition

    3
    0 Votes
    3 Posts
    849 Views
    S
    @sdetweil ok Thank you ❤
  • MMM-PIR-Sensor Guide with Edits and Updates

    20
    7 Votes
    20 Posts
    18k Views
    S
    @bugsounet my apologies. I have deleted the post.
  • 0 Votes
    5 Posts
    846 Views
    S
    @banbutcher there is a little nosql db and lib in one https://www.npmjs.com/package/nosql
  • Help developing first module, displaying webscraped text.

    8
    2
    0 Votes
    8 Posts
    2k Views
    S
    @enderflop cool key here is module name = foldername = filename = register name and node_helper.js has to be in the same folder
  • updateDom() blocks MagicMirror

    28
    1
    0 Votes
    28 Posts
    8k Views
    S
    @1blaunitrox said in updateDom() blocks MagicMirror: I installed the software like in the docs show. my script fixes little odds and ends not covered by the doc
  • Error while starting Magic Mirror

    29
    0 Votes
    29 Posts
    8k Views
    1
    @sdetweil It works btw
  • Help creating a full screen module linked to weather

    5
    0 Votes
    5 Posts
    847 Views
    cowboysdudeC
    @sdetweil Yes he can also look at MMM-EasyBack to see how to do videos
  • Starting from an existing module?

    6
    0 Votes
    6 Posts
    1k Views
    S
    @sifuhall my SampleModule has all the parts. u won’t need the helper if fetch works
  • @bugsounet MMM-GoogleAssistant v3

    8
    7 Votes
    8 Posts
    3k Views
    C
    @telliman http://wiki.bugsounet.fr/en/home
  • Multiple instance module. Scope for a noob.

    Solved scope javascript modules
    4
    0 Votes
    4 Posts
    1k Views
    S
    @birdabirda the config.js info is provided to the modulename.js instance. this is object oriented programming each unique instance is pointed to by ‘this’. think of node_helper as a server. . but it’s responses are broadcast to ALL instances. so each instance needs to pass it’s identifier as part of the data on each sendsocketNotifocation then the node helper has to keep track of that and send that back as part of the response then each modulename instance has to check to see if the response is for them. you can store the data in a hash by instance id.
  • How to send notification to module via external REST API call?

    9
    0 Votes
    9 Posts
    2k Views
    S
    @mumblebaj Log.log is just a wrapper for console.log, which lets mm do the loglevel settings in config.js
  • Error in DNews (copy of PNews)

    5
    0 Votes
    5 Posts
    982 Views
    J
    @cowboysdude - thanks
  • Temperature and/or last motion from Philips Hue motion sensor?

    1
    0 Votes
    1 Posts
    325 Views
    hedmikH
    Hi, I’m using mmm-hue-lights and want to display temperature and/or the last motion from a Philips Hue motion sensor (indoor and outdoor). Anyone added that feature…? /Mikael
  • 0 Votes
    3 Posts
    794 Views
    cowboysdudeC
    @lebatu MMM-EasyBack module
  • Change current CSS with a module?

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    M
    I don’t have the knowledge for plan A. I tried it, but it doesn’t affect the display and it doesn’t show up on MMM-RemoteControl in the Edit View list. What is necessary though. I can change or add a few lines of code, but I can’t rewrite a module. The gradient stays as it is. /* to disable the following class .MMM-BackgroundSlideshow .gradient background-image: radial-gradient(at center top, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 85%) !important; */ Module.register("MMM-BGSs-NoGradient", { // define variables used by module, but not in config data // some_variable: true, // some_other_variable: "a string", // holder for config info from module_name.js config:null, init: function(){ Log.log(this.name + " is in init!"); }, start: function(){ Log.log(this.name + " is starting!"); }, loaded: function(callback) { Log.log(this.name + " is loaded!"); callback(); }, // return list of stylesheet files to use if any getStyles: function() { return [ // sample of list of files to specify here, if no files, do not use this routine, , or return empty list //'script.css', // will try to load it from the vendor folder, otherwise it will load is from the module folder. //'font-awesome.css', // this file is available in the vendor folder, so it doesn't need to be avialable in the module folder. //this.file('anotherfile.css'), // this file will be loaded straight from the module folder. //'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css', // this file will be loaded from the bootstrapcdn servers. ] }, // messages received from other modules and the system (NOT from your node helper) // payload is a notification dependent data structure notificationReceived: function(notification, payload, sender) { // once everybody is loaded up if(notification==="ALL_MODULES_STARTED"){ // send our config to our node_helper this.sendSocketNotification("CONFIG",this.config) } if (sender) { Log.log(this.name + " received a module notification: " + notification + " from sender: " + sender.name); } else { Log.log(this.name + " received a system notification: " + notification); } }, // system notification your module is being hidden // typically you would stop doing UI updates (getDom/updateDom) if the module is hidden suspend: function(){ }, // system notification your module is being unhidden/shown // typically you would resume doing UI updates (getDom/updateDom) if the module is shown resume: function(){ }, // this is the major worker of the module, it provides the displayable content for this module getDom: function() { var wrapper = document.createElement("div"); wrapper.className = 'bgss-nogradient_container'; // if user supplied message text in its module config, use it if(this.config.hasOwnProperty("message")){ // using text from module config block in config.js wrapper.innerHTML = this.config.message; } else{ // use hard coded text wrapper.innerHTML = " "; } // change css Object.assign( document.querySelector('.MMM-BackgroundSlideshow .gradient').style, { display: none } ) // pass the created content back to MM to add to DOM. return wrapper; }, })