A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • MMM-Assistantmk2 & MMM-Webradio

    help
    4
    0 Votes
    4 Posts
    1k Views
    L
    ::: Spoiler Text ::: @Sean Yes I use this module well: https://github.com/MunichStef/MMM_Webradio I made my code in the config.js as below. The assistantmk2 detects my sentence, it pauses, but nothing happens. /* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration * */ var config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], language: "fr", timeFormat: 24, units: "metric", modules: [ { module: "compliments", position: "lower_third", config: { compliments: { anytime: [ "Bonjour", "comment vas-tu?" ], morning: [ "Bien dormi?", "Bonne journée!", "Bonjour!" ], evening: [ "Bonne soirée!", "Repose toi bien!", "Bonne nuit..." ] } } }, { module: "MMM_Webradio", header: "Webradio", position: "bottom_right", config: { startindex: 1, initialVolume: 50, streams: [ { text: "radio NRJ", url: "http://185.52.127.163/fr/30001/mp3_128.mp3?origine=fluxradios" }] } }, { module: "clock", position: "top_left", // This can be any of the regions. config: { displayType: "analog", secondsColor: "#ff0000"// The config property is optional. // See 'Configuration options' for more information. } }, { module: "MMM-LocalTemperature", position: "top_right", // Only add a position if you want this module to display the data header: "temperature de la piece", config: { sensorPin: 16, sendTemperature: "true", sendHumidity: "true", showTemperature: "true", showHumidity: "true", iconView: "true", updateInterval: 0.5, } }, { module: 'MMM-Screencast', position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window config: { position: 'bottomRight', height: 300, width: 500, } }, { module: "MMM-DarkSkyForecast", header: "Weather", position: "top_right", classes: "default everyone", disabled: false, config: { apikey: ", latitude: "", longitude: ", iconset: "4c", concise: false, language: "fr", label_timeFormat: "k[h]", label_days: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"], forecastLayout: "table" } }, { module: "MMM-Hotword", config: { chimeOnFinish: null, mic: { recordProgram: "arecord", device: "plughw:1" }, models: [ { hotwords: "computer", file: "computer.umdl", sensitivity: "0.5", }, ], commands: { "computer": { notificationExec: { notification: "ASSISTANT_ACTIVATE", payload: (detected, afterRecord) => { return {profile:"default"} } }, restart:false, afterRecordLimit:0 } } } }, { module: "MMM-AssistantMk2", position: "top_right", config: { deviceLocation: { coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com) latitude: longitude: }, }, record: { recordProgram : "arecord", device : "plughw:1", }, transcriptionHook: { "START_RADIO" : { pattern : "play radio", command: "RADIO_ONOFF" }, "STOP_RADIO" : { pattern : "stop radio", command: "RADIO_ONOFF" }, }, command: { "START_RADIO": { notificationExec: { notification: "WEBRADIO_ONOFF", } }, "STOP_RADIO": { notificationExec: { notification: "WEBRADIO_ONOFF" } }, "SHOW_ALL_MODULES": { pattern: "show all", command: "SHOWMODULES" }, "SCREEN_ON": { pattern: "allume l'écran", command: "SCREENON" }, "SCREEN_OFF": { pattern: "éteins l'écran", command: "SCREENOFF" }, "REBOOT": { pattern: "redémarre", command: "REBOOT" }, "SHUTDOWN": { pattern: "éteins le miroir", command: "SHUTDOWN" } }, notifications: { ASSISTANT_ACTIVATED: "HOTWORD_PAUSE", ASSISTANT_DEACTIVATED: "HOTWORD_RESUME", SAY_TEXT: "ASSISTANT_SAY", DEFAULT_HOOK_NOTIFICATION: "ASSISTANT_HOOK", WEBRADIO_ONOFF: "WEBRADIO_ONOFF", }, screenDuration: 3000, pauseOnYoutube: false, youtubePlayQuality: "small", useWelcomeMessage: "", profiles: { "default" : { lang: "fr-FR" } }, } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;} Do I have to create a recipe.js in the folder MMM-AssistantMk2 / recipes?
  • MMM-AirParif

    1
    1 Votes
    1 Posts
    425 Views
    ?
    J’ai créé un module pour afficher la pollution en île-de-france j’utilise l’api de AirParif afin d’avoir la localisation de votre ville. Ce module affiche les ville voulu, la qualité de l’air, ainsi que les polluants [image: screenshoot.jpg] [card:bugsounet/MMM-AirParif]
  • MMM-CalendarExtMinimonth

    13
    1 Votes
    13 Posts
    4k Views
    BKeyportB
    For those who run across this and want to do it yourself: @Sean said in MMM-CalendarExtMinimonth: @mrdenmark I think multi-instances are possible, but all the instances will display same result unless you modify the source of each instance. This is correct. I’ve got it completely solved. Instructions are written for Raspberry Pi. Install the module once using original directions. Change to the modules home directory: cd ~/MagicMirror/modules Copy the module from it’s install directory to a new directory, so you have multiple copies (I used MMM-CalendarExtMinimonth2): cp -r MMM-CalendarExtMinimonth MMM-CalendarExtMinimonth2 Change to new directory: cd MMM-CalendarExtMinimonth2 Rename files MMM-CalendarExtMinimonth.css and MMM-CalendarExtMinimonth.js to new directory name. mv MMM-CalendarExtMinimonth.css MMM-CalendarExtMinimonth2.css mv MMM-CalendarExtMinimonth.js MMM-CalendarExtMinimonth2.js 5. Modify the following lines - // and everything after it is my note: ```js dom.id = "CXMM" // Change "CXMM" to another id, I used CXMM2 colors.id = "CXMM_COLOR_TRICK" // Change CXMM to same as dom.id var trick = document.getElementById("CXMM_COLOR_TRICK") // Change CXMM again Module.register("MMM-CalendarExtMinimonth", { // Change MMM-CalendarExtMinimonth to name of directory return ["MMM-CalendarExtMinimonth.css"] // change to name of CSS file. Change every instance of ‘moment()’ to ‘moment().add(1, “month”)’ in the file except for the two “Today” calls: Example: // Change var startCalDate = moment().locale(locale).startOf('month').startOf('week') var endCalDate = moment().locale(locale).endOf('month').endOf('week') // To: var startCalDate = moment().add(1, "month").locale(locale).startOf('month').startOf('week') var endCalDate = moment().add(1, "month").locale(locale).endOf('month').endOf('week') ```js // DO NOT CHANGE THESE // var startToday (If today is the 15th, it'll mark the 15th of next month as today if it's changed) // var endToday (If today is the 15th, it'll mark the 15th of next month as today if it's changed) // moment. (No "()") - Other function, not using moment library // moment(anything) - special function In the renamed CSS file change all instances of CXMM to new dom.id name - If you don’t do this, you’ll get a string of numbers up the side. In your config.js file - call it as a separate module: { module: "MMM-CalendarExtMinimonth2", position: "bottom_right", refreshInterval: 60*2.5*1000, }, { module: "MMM-CalendarExtMinimonth", position: "bottom_right", refreshInterval: 60*2.5*1000, }, Make other changes to CSS as for default instructions. Enjoy! [image: 1574317442375-capture.png]
  • MMM-CoinRanking

    4
    1
    2 Votes
    4 Posts
    1k Views
    Mykle1M
    @cowboysdude Your modules are annoyingly pleasant to look at. :-)
  • MMM-HomeStatus

    iot homestatus
    1
    0 Votes
    1 Posts
    1k Views
    ?
    Hi, I made a module to display status of all connected thing in my home. You can scan 7 modules. MagicHome , Freebox V6 (French ISP), Freebox Crystal (French ISP), Philips TV, PC, Xbox and Internet MagicHome: return color and state TV: return state and current source PC: return state and NetBios name Internet: return ping to web Freebox: return state and display current rate adsl synchronization Xbox: return state and XBox Game/App Screenshot [image: screen.jpg] You can display more than one device in MagicHome, TV, PC and Xbox modules [card:bugsounet/MMM-HomeStatus]
  • MMM-MyStudyLife

    7
    2 Votes
    7 Posts
    2k Views
    Mykle1M
    @ethanpartida said in MMM-MyStudyLife: @Mykle1 Thanks for the good words and suggestion! :thumbsup:
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    4 Views
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
  • MMM-Smartthings

    4
    1 Votes
    4 Posts
    3k Views
    buzzkcB
    I’ve added the temperature icons as well as a couple of config options for low and high temps, tempLowValue & tempHighValue. They default to 65 & 80, so you’ll want to set them to your celsius values. Icons will be green for between low and high (normal), blue when low, and red when high. If you’ve already installed, besides adding the two config options you just need to change to the ~/MagicMirror/modules/MMM-Smartthings folder and do a git pull No need to run npm install as the dependencies haven’t changed.
  • MM-DHTSensor (Temperature and Humidity)

    1
    1
    1 Votes
    1 Posts
    627 Views
    D
    Temperature and Humidity sensor plugin for the DHT11/DHT22 sensors [image: 1570125513283-screenshot-2019-10-03-at-18.56.46.png] [card:doddi/MM-DHTSensor]
  • 0 Votes
    2 Posts
    1k Views
    brobergB
    @D34n08713 then you probably have a broken config file. pleas post your config file, it’s probably too many or too few brackets somewhere.
  • Volume control

    4
    0 Votes
    4 Posts
    1k Views
    S
    Last time I bug you with that I promise.:smiling_face_with_halo: I fixed it that way case this.config.notifications.VOLUME_DOWN: var vol = parseInt(this.currentVolume) - curUpDownScale if (vol < 0) vol = 0 this.sendSocketNotification(this.config.notifications.VOLUME_SET, vol) break case this.config.notifications.VOLUME_UP: var vol = parseInt(this.currentVolume) + curUpDownScale if (vol > 100) vol = 100 this.sendSocketNotification(this.config.notifications.VOLUME_SET, vol) break By adding the parseInt to make sure that it’s an integer. All working fine now!! Thank again, really like your module!
  • Timezones incorrect display

    1
    0 Votes
    1 Posts
    423 Views
    I
    Re: MMM-CalendarWeek All, terrific module. Have been using it for months and it is amazing. Thanks. I have multiple calendars and ICS feeds and they all work well. The other day I noticed a noon appointment was showing as 9:00 am. It is a feed from O365. I checked all settings I can think of with no result. It was an invite created by our west coast team. Original time on their end is 9:00 am and all my calendars change to noon based on my local timezone of EST. Is there a way to show the correct timezone for me? Thanks Don
  • MagicMirror on Mac with iSight camera

    gestures camera mac
    1
    0 Votes
    1 Posts
    1k Views
    rafaelcotaR
    Hi, I just installed MM in an old Mac (mid 2007 with El Capitan 10.11.6) and is working just fine, but I want to control some modules with gestures using the iSight camera already in the Mac. Is there any module that can do it? I’m using the MMM-GroveGestures in another MM with a Pi. Thank you in advanced.
  • MMM-Hue

    hue home automation
    25
    0 Votes
    25 Posts
    24k Views
    D
    Not a fork but hue lights https://github.com/michael5r/mmm-hue-lights
  • DarkSky24Hours screenshot

    3
    0 Votes
    3 Posts
    2k Views
    B
    @nobita No, I do not. That’s why I was asking the forum. Apparently the originator was charting the data instead of list form which is fascinating to me.
  • MMM-CECControl - Control HDMI with CEC

    6
    0 Votes
    6 Posts
    3k Views
    nischiN
    @yuyuyu I don‘t thinks so, because the CEC Protocol works (as i know) only with a HDMI Connected Screen.
  • MMM-GooglePhotos, Photos not showing

    2
    0 Votes
    2 Posts
    1k Views
    Z
    I was having some trouble with this one as well. Can you show where your module is in your folder? If it’s in the correct folder ~/MagicMirror/modules/MMM-GooglePhotos then try these lines in the terminal: cd MagicMirror cd modules cd MMM-GooglePhotos npm install Then I was able to recopy the code to my config.js file and it worked.
  • BBC News Feeds not showing full article

    3
    0 Votes
    3 Posts
    955 Views
    brobergB
    First of you have to set “showDescription” to “true” but do note, no RSS news feed give you the entire article, it gives you the headline and a short description of the article.
  • AVStock not responding to Hello-Lucy commands/notifications

    2
    0 Votes
    2 Posts
    544 Views
    Mykle1M
    @bazil1000 said in AVStock not responding to Hello-Lucy commands/notifications: Would you mind helping me with it? Wow. I didn’t think anyone was using Lucy these days. Yes, I’ll do what I can to help you. I took a look at the AVStock.js file. I see the getDom function closes at line 47. I assume you made your modification at line 48 getDom: function() { var wrapper = document.createElement("div") wrapper.id = "AVSTOCK" return wrapper }, notificationReceived: function(notification, payload) { if (notification === 'HIDE_STOCK') { this.hide(); } else if (notification === 'SHOW_STOCK') { this.show(1000); } }, It can be tedious but you’ll have to check and recheck your other modifications. Check that you’ve changed the command words and that they all match in each modification. This one One in the new node_helper Two in the new MMM-voice.js file I don’t use AVStock but Lucy should work. Any time Lucy failed to work it was always an oversight on my part. Please do this first. If it still doesn’t work we may have to move the notificationReceived function or add the modification to the existing notificationReceived function that is already present in MMM-AVStock.js file. Keep me posted. Sorry for the delay in response