A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • How to display start and end times/dates of events in calendar

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    M
    Thanks that was really useful. My revised config is: (start and end date/time, one of many possible formats) config: { dateFormat: "llll", // dateEndFormat: “YYYY-MMDDTHH:mm:ss”, dateEndFormat: “llll”, timeFormat: ‘absolute’, showEnd: true, urgency: 0, getRelative: 0, fetchInterval: 2 * 60000, calendars: [ { I found this site a bit easier to follow: https://devhints.io/moment
  • Error [ERR_STREAM_DESTROYED]

    Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    S
    @jorgnyg this is a bug in the run-start.sh script get a new one here cd !/MagicMirror curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/run-start.sh >run-start.sh
  • erro MMM-HASS

    Solved
    19
    0 Votes
    19 Posts
    6k Views
    S
    @iorifly said in erro MMM-HASS: I haven’t tested the spotify model yet. it won’t fail for the run-start script problem… can’t guarantee anything beyond that
  • Making my first module: issue with notifications

    Unsolved notifications module magicmirror
    8
    0 Votes
    8 Posts
    2k Views
    S
    @rico24 and here is an updated node_helper, that rejects connecting clients if they don’t send the right kind of identifier (ends with a digit) var NodeHelper = require('node_helper'); var request = require('request'); module.exports = NodeHelper.create({ initial_counter:10000, start: function() { this.countDown = {} }, isDigit: function(x){ return (x>='0' && x< ='9') // watch out for spaces after < , forum hides it all }, socketNotificationReceived: function(notification, payload) { console.log("Payload: =" + JSON.stringify(payload)); switch(notification){ case "DO_YOUR_JOB": if(this.isDigit(payload.identifier.slice(-1))){ if(!this.countDown.hasOwnProperty(payload.identifier+this.ourpage)){ this.countDown[payload.identifier]=this.initial_counter; } let return_payload={identifier: payload.identifier, value:(this.countDown[payload.identifier] - payload.value)} this.sendSocketNotification("I_DID",return_payload ) console.log("Payload 2: = " + JSON.stringify(return_payload)); } else this.sendSocketNotification("I_DID_REJECTED_INVALID_IDENTIFIER",payload ) break } }, });
  • MagicMirror stuck at installation

    Unsolved
    2
    0 Votes
    2 Posts
    481 Views
    S
    @T-v-A which script are you executing? there was a bug in the 1st version… see here https://github.com/sdetweil/MagicMirror_scripts
  • Text stysle

    Unsolved
    1
    0 Votes
    1 Posts
    290 Views
    I
    Hi i need help with text style How can i align it to right and max width with 50%, Because now when i make it top_right or top_left its moving all my modules to other side. I guess this is the code for text changes. getDom: function () { let wrapper = document.createElement(“div”); let quoteTextDiv = document.createElement(“div”); let quoteAuthorDiv = document.createElement(“div”); quoteTextDiv.className = "normal"; quoteAuthorDiv.className = "small dimmed"; if (this.result.quoteText && this.result.quoteAuthor){ quoteTextDiv.innerHTML = this.result.quoteText; quoteAuthorDiv.innerHTML = this.result.quoteAuthor; }else{ quoteTextDiv.innerHTML = "Loading"; quoteAuthorDiv.innerHTML = ""; } wrapper.appendChild(quoteTextDiv); wrapper.appendChild(quoteAuthorDiv); return wrapper; },
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    30 Views
  • Third-Party Module - how to get help?

    Solved
    64
    0 Votes
    64 Posts
    33k Views
    S
    @ember1205 passing on observations is what it’s all about! Many eyes looking see different things. All contribute to the whole view.
  • MMM-CalendarEXT2 - Event color changes

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    C
    @suspect24 Here is how I implemented the transform function. Background: my daughter plays on a softball team that contains the word “Panic”. I want to change the background color to match the team color and I want to include a softball icon for the event. I add the following code to the defaultSet section in MMM-CalendarExt2. This means every time the word “Panic” is found in an event title that the commands following are executed. Note: I have an If…else If structure here so I can actually transform a number of items. defaultSet: { calendar: { maxItems: 500, scanInterval: 1000*60*1, beforeDays: 5, afterDays: 60, maxIterations: 100, }, view: { timeFormat: "h:mm A", transform: function(event) { if (event.title.search("Panic") > -1) { event.icon = "noto-softball"; event.className = "view_panic"; } else if (event.title.search("Arin") > -1) { event.icon = "noto-softball"; } else if (event.title.search("Violin") > -1) { event.icon = "emojione-monotone:violin"; } return event; }, }, scene: {} }, Now that I have assigned a className object to the events that contain the word “Panic” I can use that object in the custom. css file. .CX2 .event.view_panic { background-color:rgba(139,0,139,1); } There may be other ways to do this but this one worked out well for me.
  • MagicMirror Goes blackscreen overnight

    Solved
    13
    0 Votes
    13 Posts
    4k Views
    S
    @Raksasas you can start in dev mode w npm start dev From the MagicMirror folder. But you need a mouse I think to select the tab. If you have address: "0.0.0.0", IpWhiteList: [], In config.js, then you could use chrome on your PC to connect to the mirror and open the dev window there
  • Magic Mirror updated now doesnt work

    Solved
    36
    0 Votes
    36 Posts
    14k Views
    S
    @bachoo786 cool. Thx for the update!
  • MM not starting after update

    Solved
    20
    0 Votes
    20 Posts
    6k Views
    S
    @jani-karna Mich has released new doc now see https://forum.magicmirror.builders/topic/11987/dedicated-documentation-site
  • MMM-BackgroundSlideshow Problems

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    S
    @carltonb in the dev window (described two posts back), add ‘back’ (no quotes) to the filter field, to remove other module messages
  • node_helper disappeared

    Unsolved
    3
    0 Votes
    3 Posts
    550 Views
    S
    @branchi did you get this resolved?
  • Install Error - Node v10.15.2 or another error

    Solved
    3
    0 Votes
    3 Posts
    881 Views
    R
    @sdetweil Sam, you’re a wizard! Thanks for your help, that worked! Now to explorer all the addins. :) Greg
  • Update to v2.9.0 fail

    Solved
    48
    0 Votes
    48 Posts
    17k Views
    S
    @fiaskogaul which link? see this topic for the current link for update https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing
  • Updating to V2.10: package-lock.json

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    ?
    @sdetweil OK, thanks! I realized, the new documentation site online now is very helpful.
  • MMM-Hotword,MMM-AssistanMk2 Hotword no Funktion

    Unsolved
    50
    0 Votes
    50 Posts
    16k Views
    G
    @Sean Sorry for my mistake, thank you very much!!!
  • Automatic Installation doesn't work.

    Moved installation magicmirror2 raspberry pi 3
    25
    1
    0 Votes
    25 Posts
    9k Views
    S
    @jonspraggins please use the upgrade script here https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing
  • MMM-Globe picture do not update

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    FlatPepsiF
    I see in the latest code that it appending the date & time to avoid caching. I’ve added a number of console log messages to the code, and it looks like it’s never refreshing. Can anyone confirm that it really does refresh for them? I’ve temporarily switched my mirror to MMM-iFrameReloaded, which does indeed refresh, but doesn’t scale the image to the size I need.