A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • 0 Votes
    10 Posts
    3k Views
    B
    @sdetweil Works like a charm. Thank you very much, I’ve learnt something thanks to you and appreciated your support for debug. See you around.
  • 0 Votes
    3 Posts
    2k Views
    richland007R
    @hacaro Or read here from the beginning and good luck i still haven’t reached my goal and make it work but others have achieved it; https://forum.magicmirror.builders/topic/8569/mmm-mirrormirroronthewall-installation-issue/124 D
  • Error 3154 – Restore SQL database is terminating abnormally

    2
    0 Votes
    2 Posts
    1k Views
    N
    @rogermathew said in Error 3154 – Restore SQL database is terminating abnormally: Hello Experts, Our team is developing a module which takes data from SQL Sever database 2014 and shows the data on Magic Mirror screen. We are in trouble while accessing database, all data not show on the screen. The, we tried to restore SQL database and face SQL Error 3154. To fix this kind of error, we are tried T-SQL command but no result found. Then we try to use WITH REPLACE while using restore script. RESTORE FILELISTONLY FROM DISK = 'C:\company_file.bak' GO RESTORE DATABASE company_file FROM DISK = 'C\:company_file.bak' WITH MOVE 'company_file_Data' TO 'C:\Database\company_file.mdf', MOVE 'companyfile_Log' TO 'C:\Database\companyfile.ldf', REPLACE After executing these commands we are still facing error. Then someone suggested me to use below resources, but we are confused which one is better. Please provide full proof method. https://forum.magicmirror.builders/topic/6803/magicmirror-to-mssql https://www.essentialsql.com/error-3154-restore-sql-database/ https://www.stellarinfo.com/sql-recovery.php I have no idea, but I have a suggestion : Create a proxy service, so you donot have to access database directly but a distant service. This last will access the database. You can use the platform you want especially .Net technology which is very easy to integrate with SQL Server.
  • Music Player Module

    music help node.js button player
    3
    0 Votes
    3 Posts
    2k Views
    N
    @maukoell said in Music Player Module: Hello, I am trying to create a module which plays music from a directory. I wanted to use two buttons to control it. One for Pause/Play and one to skip the current song. But unfortunately when I start the MM2 I always get the message that it is not able to find the helper for my module. I’m new to node.js so maybe there are just some basic mistakes. My module: Module.register("MMM-MusicPlayer",{ defaults: { playButtonPIN: 10, nextButtonPIN: 12, clickDelay: 500, musicPath = "/home/pi/MagicMirror/modules/MMM-MusicPlayer/music", }, start: function() { this.sendSocketNotification("BUTTON_CONFIG", this.config); Log.info('Starting module: ' + this.name); } }); My node_helper: "use strict"; const NodeHelper = require("node_helper"); const gpio = require("onoff"); var path = require('path'); var fs = require('fs'); const { Howl, Howler } = require('howler'); var sound; var musicList = []; var index = 0; var started; var config; module.exports = NodeHelper.create({ start: function () { started = false; }, // Subclass socketNotificationReceived received. socketNotificationReceived: function (notification, payload) { const self = this; if (notification === 'BUTTON_CONFIG' && started === false) { config = payload; self.fromDir(config.musicPath, "mp3"); self.createSound(); var GPIO = require('onoff').Gpio; var button1 = new GPIO(config.playButtonPIN, 'in', 'both', { persistentWatch: true, debounceTimeout: config.clickDelay }); button1.watch(function (err, state) { // 1 == pressed, 0 == not pressed if (state === 1) { if (sound.playing()) { sound.pause(); } else { sound.play(); } } }); var button2 = new GPIO(config.playButtonPIN, 'in', 'both', { persistentWatch: true, debounceTimeout: config.clickDelay }); button2.watch(function (err, state) { // 1 == pressed, 0 == not pressed if (state === 1) { self.playNext(); } }); started = true; } }, fromDir: function(startPath, filter) { if (!fs.existsSync(startPath)) { Log.info("no dir ", startPath); return; } var files = fs.readdirSync(startPath); var i; var fullPath; var filename; var stat; for (i = 0; i < files.length; i+=1) { fullPath = path.join(startPath, files[i]); filename = files[i]; stat = fs.lstatSync(fullPath); if (stat.isFile()) { if (filename.indexOf(filter) >= 0) { musicList.push(fullPath); } } } }, playNext: function() { if (sound.playing()) { sound.stop(); } index += 1; if (index === musicList.length()) { index = 0; } sound.play(index); }, createSound: function() { sound = new Howl({ src: musicList }); } } ); Maybe someone can help me. Thanks in advance I don’t think that your code respects helpers as described in official documentarion, Or we are not talking about the same helpers Pnr Status.TextNow
  • MMM-Bible

    2
    0 Votes
    2 Posts
    2k Views
    bheplerB
    You probably should not update your compliments.js file. If you update your MagicMirror framework, the new version will overwrite your changes to the module. You probably want to add this modification to the module configuration in the /home/pi/MagicMirror/config/config.js file.
  • Error PVOutput widget module

    2
    0 Votes
    2 Posts
    879 Views
    bheplerB
    @ernst-jan - Is your error when you are trying to install the module or when you’re trying to run the module? Assuming the install went wrong, what command did you use to install it? Remember to use the markdown features when you reply.
  • Dom Update refresh take to long

    5
    0 Votes
    5 Posts
    2k Views
    S
    do NOT do XML requests IN the getDom function… do them outside (timer) and call updateDom to signal changes to be presented. getDom() should ONLY set info for presentation… nothing else. preparation should be done somewhere else… (timer, event handler, …) don’t replace the entire wrapper div each time, like ripping the heart out var wrapper = document.createElement("div"); don’t look up (getElementbyId) over and over… get it, use it multiple times 6 lookups here, need only 2… note that you are searching the ENTIRE web page (document.), not YOUR modules content (wrapper .div), and from the very top… so as the page gets fuller and fuller, the search has more things to look thru… case 1783: document.getElementById("wohnzimmer_beamermodus_bezeichner").innerHTML = "Beamermodus:"; document.getElementById("wohnzimmer_beamermodus_bezeichner").style.float = "left"; document.getElementById("wohnzimmer_beamermodus_bezeichner").style.width = "94%"; document.getElementById("wohnzimmer_beamermodus").innerHTML = status; document.getElementById("wohnzimmer_beamermodus").style.float = "left"; document.getElementById("wohnzimmer_beamermodus").style.width = "6%"; don’t update stuff that didn’t change here u create these elements without consideration if they already exist… var schlafzimmer_heizungsgruppe_bezeichner = document.createElement("div"); don’t create lots of new content… (createElement) if you don’t need to. here u create these elements without consideration if they already exist…
  • MMM-Scrobbler adding last played song

    1
    0 Votes
    1 Posts
    583 Views
    G
    I’m using the MMM-Scrobbler and really liking it. I would also like to display the last played song if there is no current song playing. Now i wonder if somebody can help me with how I can make this work? Thank you for reading!
  • MagicMirror² Hackathon 2018

    11
    3 Votes
    11 Posts
    6k Views
    strawberry 3.141S
    Thanks to @justjim1220 for contributing in two issues and thanks to @idoodler for reviewing and testing an issue 48h Hackathon recap Metric Total Ø per hour Issues handled 12 0.25 Projects changed 7 0.15 Lines added +1.587 +33 Lines removed -1,487 -31 Merge requests that are still open for review and testing: https://github.com/fewieden/MMM-AlarmClock/pull/22 https://github.com/fewieden/MMM-voice/pull/38 https://github.com/fewieden/MMM-Fuel/pull/32
  • Notification between modules

    Solved
    10
    0 Votes
    10 Posts
    3k Views
    G
    @idoodler thanks for the help.The console part in the dev tool does help a lot!
  • how and where should I use the hide&show function offered by MM?

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    A
    I use MMM-ModuleScheduler to show or hide modules. It works very simple out of the box.
  • MMM-Snow Activation at Month

    6
    0 Votes
    6 Posts
    2k Views
    S
    @cowboysdude said in MMM-Snow Activation at Month: var D = new Date(); var month = D.getmonth; If (month === “11”) { magic happens here… } ok i found the Problem not var month = D.getmonth; but var month = D.getmonth();
  • Family Map - Location GPS coordinates tracker

    3
    0 Votes
    3 Posts
    2k Views
    P
    Ya, I did see that. I tried it … the Module wouldn’t load for me … I admit I didn’t try too hard though. For me the issue was 2 things. I didn’t like that I need to send my data to some server in Russia … I’ve already got a lot of Modules … I don’t really want to find the space for another map. So that’s why I want to combine my Traffic Map from Google (which is great for showing traffic), with a simple Marker overlay showing Family location. [image: 1545189496355-magic-mirror-setup.png]
  • Building my first module, using MMM-API

    6
    0 Votes
    6 Posts
    2k Views
    P
    Finally finished my first module. Nothing too fancy but fits my requirements. GitHub Link
  • Details about Nunjucks templating system?

    11
    0 Votes
    11 Posts
    8k Views
    J
    Seems to be no issues. I’ve released v1.6 of MMM-DarkSkyForecast using the Nunjucks templating system. Seems like my way forward from here :) I’ll have to go back and revisit MMM-MyCalendar to see what caused the issue.
  • Help needed - getting informations from XML File

    3
    0 Votes
    3 Posts
    1k Views
    A
    @Charley Thanks for your reply and your code in xml2json.js. Now i can get the requested values of my xml and can move forward in developing. If somebody knows a way to directly extract datas of xml could be an optimization afterwards, to reduce code. Regards AxLED
  • O365 task solution?

    Moved
    4
    0 Votes
    4 Posts
    2k Views
    schwoediauerS
    @yawns thats right I’d like to implement my O365 Task/Aufgaben like wunderlist tasks on the MM
  • run Linux command from a mm2 module

    20
    0 Votes
    20 Posts
    6k Views
    Mykle1M
    @sdetweil No worries, bro. I appreciate your interest and concern. I’m sure I’ll need help in the future. You can get in on that. :-)
  • Timer based on python script

    5
    0 Votes
    5 Posts
    1k Views
    S
    This is perfect! I need few hours on google now, to at least begin to comprehend what you just wrote… Thank you!! :) I’ll post when I get it somehow work (or get stuck :D )
  • Making a Timer Module!!

    3
    0 Votes
    3 Posts
    3k Views
    Mykle1M
    @cjmaverick You might try this https://forum.magicmirror.builders/topic/7011/mmm-eventhorizon