A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Weather Underground customize

    4
    0 Votes
    4 Posts
    3k Views
    Mykle1M
    @amosh83 Or, what you asked for. currentweather: 1, coloricon: true, hourly: '0', fctext: '0', fcdaycount: "1", fcdaystart: "0", hourlyinterval: "1", hourlycount: "0", animationSpeed: 5000, alerttime: 10000, alerttruncatestring: "english:", roundTmpDecs: 0, UseCardinals: 1, layout: "vertical", windunits: "mph", sysstat: "0" [image: 1499818760093-we.jpg]
  • Image in Module Header?

    5
    0 Votes
    5 Posts
    3k Views
    Mykle1M
    @Mykle1 said in Image in Module Header?: I don’t know if it can be done using css Well now I know. Thanks @j-e-f-f That information would have been really useful 2 days ago! hahaha
  • MMM-ModuleScheduler & MMM-Instagram

    1
    0 Votes
    1 Posts
    920 Views
    V
    Hi, I have set this module to be hidden, but it is not being picked up in the scheduler: Starting MagicMirror: v2.1.2 Loading config ... Loading module helpers ... Initializing new module helper ... Module helper loaded: MMM-WatchDog No helper found for module: alert. Initializing new module helper ... Module helper loaded: MMM-ModuleScheduler Initializing new module helper ... Module helper loaded: updatenotification No helper found for module: clock. Initializing new module helper ... Module helper loaded: MMM-Instagram No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... Module helper loaded: newsfeed All module helpers loaded. Starting server on port 8080 ... Server started ... Connecting socket for: MMM-WatchDog Starting module helper: MMM-WatchDog Connecting socket for: MMM-ModuleScheduler Starting node helper for: MMM-ModuleScheduler Connecting socket for: updatenotification Connecting socket for: MMM-Instagram Starting node_helper for module [MMM-Instagram] Connecting socket for: newsfeed Starting module: newsfeed Sockets connected & modules started ... Launching application. WatchDog started. Maximum timeout: 10s. MMM-ModuleScheduler is removing all scheduled jobs MMM-ModuleScheduler received CREATE_MODULE_SCHEDULE MMM-ModuleScheduler is scheduling currentweather using "5-59/10 * * * *" and "0-59/10 * * * *" with dim level undefined MMM-ModuleScheduler is hiding currentweather MMM-ModuleScheduler has scheduled currentweather MMM-ModuleScheduler will next show currentweather at Sun Jul 09 2017 18:45:00 GMT+0100 (BST) MMM-ModuleScheduler will next hide currentweather at Sun Jul 09 2017 18:50:00 GMT+0100 (BST) MMM-ModuleScheduler received CREATE_MODULE_SCHEDULE MMM-ModuleScheduler is scheduling weatherforecast using "5-59/10 * * * *" and "0-59/10 * * * *" with dim level undefined MMM-ModuleScheduler is hiding weatherforecast MMM-ModuleScheduler has scheduled weatherforecast MMM-ModuleScheduler will next show weatherforecast at Sun Jul 09 2017 18:45:00 GMT+0100 (BST) MMM-ModuleScheduler will next hide weatherforecast at Sun Jul 09 2017 18:50:00 GMT+0100 (BST) MMM-ModuleScheduler received CREATE_MODULE_SCHEDULE MMM-ModuleScheduler is scheduling newsfeed using "5-59/10 * * * *" and "0-59/10 * * * *" with dim level undefined MMM-ModuleScheduler is hiding newsfeed MMM-ModuleScheduler has scheduled newsfeed MMM-ModuleScheduler will next show newsfeed at Sun Jul 09 2017 18:45:00 GMT+0100 (BST) MMM-ModuleScheduler will next hide newsfeed at Sun Jul 09 2017 18:50:00 GMT+0100 (BST) Create new news fetcher for url: http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml - Interval: 300000 MMM-ModuleScheduler is sending SHOW_MODULE to module_6_currentweather MMM-ModuleScheduler will next send SHOW_MODULE to module_6_currentweather at Sun Jul 09 2017 18:55:00 GMT+0100 (BST) based on "5-59/10 * * * *" MMM-ModuleScheduler is sending SHOW_MODULE to module_7_weatherforecast MMM-ModuleScheduler will next send SHOW_MODULE to module_7_weatherforecast at Sun Jul 09 2017 18:55:00 GMT+0100 (BST) based on "5-59/10 * * * *" MMM-ModuleScheduler is sending SHOW_MODULE to module_8_newsfeed MMM-ModuleScheduler will next send SHOW_MODULE to module_8_newsfeed at Sun Jul 09 2017 18:55:00 GMT+0100 (BST) based on "5-59/10 * * * *" MMM-ModuleScheduler is sending HIDE_MODULE to module_6_currentweather MMM-ModuleScheduler will next send HIDE_MODULE to module_6_currentweather at Sun Jul 09 2017 19:00:00 GMT+0100 (BST) based on "0-59/10 * * * *" MMM-ModuleScheduler is sending HIDE_MODULE to module_7_weatherforecast MMM-ModuleScheduler will next send HIDE_MODULE to module_7_weatherforecast at Sun Jul 09 2017 19:00:00 GMT+0100 (BST) based on "0-59/10 * * * *" MMM-ModuleScheduler is sending HIDE_MODULE to module_8_newsfeed MMM-ModuleScheduler will next send HIDE_MODULE to module_8_newsfeed at Sun Jul 09 2017 19:00:00 GMT+0100 (BST) based on "0-59/10 * * * *" /* 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 = { port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.0.17"], // 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: "en", timeFormat: 24, units: "metric", modules: [ { module: 'MMM-WatchDog', }, { module: "alert", }, { module: 'MMM-ModuleScheduler' }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left", }, { module: "MMM-Instagram", position: "top_left", classes: "scheduler", config: { access_token: "...", count: "35", min_timestamp: "0", animationSpeed: "2500", updateInterval: "12500", module_schedule: {from: '0-59/10 * * * *', to: '5-59/10 * * * *'} } }, { module: "currentweather", position: "top_left", classes: 'scheduler', config: { module_schedule: {from: '5-59/10 * * * *', to: '0-59/10 * * * *'}, location: "Colechester", locationID: "2652618", //ID from http://www.openweathermap.org/help/city_list.txt appid: "..." } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", classes: 'scheduler', config: { module_schedule: {from: '5-59/10 * * * *', to: '0-59/10 * * * *'}, location: "Colechester", locationID: "2652618", //ID from http://www.openweathermap.org/help/city_list.txt appid: "...", maxNumberOfDays: '4', } }, { module: "newsfeed", position: "top_bar", classes: 'scheduler', config: { feeds: [ { title: "BBC News", url: "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml" } ], showSourceTitle: false, showPublishDate: false, module_schedule: {from: '5-59/10 * * * *', to: '0-59/10 * * * *'}, wrapTitle: false, ignoreOldItems: true, } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;} I am scratching my head. Thanks.
  • MMM-RandomBackground

    1
    0 Votes
    1 Posts
    1k Views
    Z
    Is there away to shrink the image so it doesn’t cover the whole screen … ie only the lower 1/3
  • Default Calendar - Bold and changing color

    1
    0 Votes
    1 Posts
    1k Views
    G
    Hi all, is there any chance to change the color and the style of letters for a event which is scheduled for today ? I only found the setting for change the displayed color for all events of the calendar. I have already looked up in the config of the module but didn’t find an special class for an event on the same day. It would be great if you could help me here.
  • 0 Votes
    1 Posts
    1k Views
    B
    Hello, after the new update of the MMM-Podcast Module, I can not start the MMM-Podcast with the module MMM-Buttons. Before it was running fine. Can anyone help me? Thanks Christian
  • Synchronus socketNotification ?

    5
    0 Votes
    5 Posts
    3k Views
    romainR
    Right, I think this is the only way too. It’s kind of annoying though because the value can change so I would need to send it to send node helper every single time it change to keep it up to date. Oh well.
  • Random text fetch from Reddit

    1
    0 Votes
    1 Posts
    1k Views
    S
    Hello everyone. I’m trying to display random text from random subreddits on my mirror. I have found a code that uses jQuery to fetch 10 titles from a page and that can be used successfully inside a html page. Link to the function -> https://gist.github.com/sente/947491 The problem comes when I try to integrate that inside my module. So I try to fetch that data inside my function but using $ I don’t think it does the job. I have no idea how to call a jQuery function inside my script since the example uses a html page. I tried with the getScripts function but the result is the same. My code right now looks like this randomQuote: function() { var script = document.createElement('script'); script.src = 'http://j.mp/jqymin'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); var a=[]; script.getJSON( "http://www.reddit.com/r/showerthoughts.json?jsonp=?", function foo(data) { script.each( data.data.children.slice(0, 10), function (i, post) { a.push(post.data.title); } ) } ) return a; }, Any help would be much appreciated since I’m a noob with JavaScript, I’m just starting out.
  • Calendar - not able top open particular Google Calendar

    7
    0 Votes
    7 Posts
    4k Views
    S
    I’m in the same boat. Some of my calendars will show up but others will not. Any new thoughts?
  • mm-music-player errors

    13
    0 Votes
    13 Posts
    7k Views
    F
    Here you got the old Version: https://github.com/MichMich/MagicMirror/tree/v2.1.0/js It worked perfectely @gismo2006 :)
  • MMM-Motion with RPi3 and RPi Official TFT

    1
    0 Votes
    1 Posts
    1k Views
    markbajajM
    I thought I would post this here as I was trying to get my motion sensor to work with the official RPi TFT 7" screen. The module for motion only turns off the HDMI port and not the TFT that is connected via the display connector on the RPi3. What I did to get it to work is to write a short python script that checks for motion. Please excuse my poor python…it’s the first one I’ve written :) #!/usr/bin/env python import RPi.GPIO as GPIO import time import os GPIO.setmode(GPIO.BCM) PIR_PIN = 22 GPIO.setup(PIR_PIN, GPIO.IN) os.system("echo 0 > /sys/class/backlight/rpi_backlight/bl_power") while True: i=GPIO.input(PIR_PIN) if i==1: os.system("echo 0 > /sys/class/backlight/rpi_backlight/bl_power") time.sleep(1) elif i==0: os.system("echo 1 > /sys/class/backlight/rpi_backlight/bl_power") time.sleep(1) Basically, the PIR is on GPIO pin 22 and all this script does is to check for motion and if there is any then turn on the backlight, if not it turns it off. The delay is set on the PIR to about 1 min 30 secs before the pin turns off. I saved it in my home directory (/home/pi). Don’t forget to make it executable by typing: chmod +x motion.py I then added an entry in the /etc/rc.local file to run it at boot as below: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. # Print the IP address python /home/pi/motion.py & _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi exit 0 Also, don’t forget the ‘&’ at the end as the script is intended to run in the background and the Pi may not boot if you forget. I hopes this helps someone :)
  • MMM-Temperature-Humidity NODE_VERSION Error

    9
    0 Votes
    9 Posts
    4k Views
    U
    Ok for module_version you have to run npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=49 where 1.3.4 is you current version of electron and 49 is version which is required. After this i have another problem: **2017-06-12 11:58 +02:00: bcm2835_init: Unable to open /dev/mem: Access denied** 0|mm | 2017-06-12 11:58 +02:00: TypeError: Failed to initialize 0|mm | at DHT.read (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_modules/rpi-dht-sensor/main.js:7:18) 0|mm | at Class.checkTemperature (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_helper.js:36:32) 0|mm | at Timeout._onTimeout (/home/pi/MagicMirror/modules/MMM-DHT-Sensor/node_helper.js:29:18) 0|mm | at ontimeout (timers.js:365:14) 0|mm | at tryOnTimeout (timers.js:237:5) 0|mm | at Timer.listOnTimeout (timers.js:207:5) When i run sudo npm start in MagicMirror folder i get errors.;/ npm ERR! Linux 4.9.24-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! magicmirror@2.1.1 start: `sh run-start.sh` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.1.1 start script 'sh run-start.sh'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the magicmirror package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! sh run-start.sh npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs magicmirror npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls magicmirror npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/MagicMirror/npm-debug.log Sameone can help now?
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    177 Views
  • Wunderlist - your todos on the mirror

    113
    0 Votes
    113 Posts
    202k Views
    P
    Hi @paviro ! Great module. I was wondering if it is possible to add the bullet simbol to each task. Kind regards
  • AlexaPI and MagigMirror at same raspberry

    6
    0 Votes
    6 Posts
    4k Views
    E
    @j.e.f.f thanks! arecord test.wav and aplay test.wav works fine. I install pulse too, but still not detect Alexa trigger…
  • Problems with MMM-awesome-alexa install

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    jproehlJ
    Re: MMM-awesome-alexa Hi: Thanks for putting this module together. But I need some help. I walked through your procedure as best I could trying to set up my own Alexa voice service and failed. I have created an Amazon device, but I cannot connect to it. The first wall I believe I ran into was that my Raspberry Pi would not accept the connection from Amazon (but there may have been another issue) because it hadn’t been authorized. Then I saw that there were a couple of ways to attempt to do this and they diverge in what you need to enter into the Amazon device. I tried both and neither seemed to work. So now I’m very confused as to where I am, what I should do to move forward, etc. I’m thinking that I should delete the Amazon device and start over. But if I do that, which procedure should I follow? Is there a final defined procedure that is the best to use? If so, which one? If I can’t delete the Amazon device precisely how should it be configured to talk the the Magic Mirror on my RPi 3? Thanks! jproehl
  • [MMM-PIR-Sensor] Install failing

    75
    0 Votes
    75 Posts
    110k Views
    yawnsY
    @pepemujica No. You can connect the PIR sensor to the GPIO pins of your raspberry (make sure your wiring is proper) and work with the PIR sensor after installing the specific libraries
  • MMM-AlexaPi

    9
    0 Votes
    9 Posts
    5k Views
    michael24hM
    @bminer1 said in MMM-AlexaPi: /etc/opt/AlexaPi This should work pi@Clock: cd /etc/opt/AlexaPi pi@Clock:/etc/opt/AlexaPi ls config.yaml pi@Clock:/etc/opt/AlexaPi nano config.yaml
  • Simple Music Player Module

    19
    0 Votes
    19 Posts
    17k Views
    F
    @EoF I updated my Magic Mirror on 2.1.1. I wanted to try your modul but after copying it into my modules folder and adding the module in the config, I started the mirror and get a blackscreen. I’ve read that more people got the same issue. Got an Idea what’s the problem? :)
  • Default weather module config units issue

    insteon
    2
    0 Votes
    2 Posts
    6k Views
    Mykle1M
    @crafttanner said in Default weather module config units issue: Can someone please tell me what I’m doing wrong? At the very beginning of your config.js you will see units: "imperial", or units: "metric",. With this set to units: "imperial", there is no need to add the units entry to the weather modules at all. Now, if you want to override the global setting at the top, you would have to add the units: "imperial", to the weather modules. In any case, this is how your weather entries should look. { module: "currentweather", position: "top_right", header: "New York", config: { location: "", locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR API KEY GOES HERE", units: "imperial", // default` = Kelvin, `metric` = Celsius, `imperial` =Fahrenheit // your other options can go here. Just remove this line } }, { module: "weatherforecast", position: "top_right", header: "New York", config: { location: "", locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR API KEY GOES HERE", units: "imperial" // default` = Kelvin, `metric` = Celsius, `imperial` =Fahrenheit // your other options can go here. Just remove this line } },