A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • MMM-PiLights notification trigger for PIR

    2
    0 Votes
    2 Posts
    2k Views
    O
    The answer to my question is to add the sendNotification line in the MMM-PiLights.js as follows: From: socketNotificationReceived: function(notification, payload) { if (notification === "USER_PRESENCE"){ this.sendNotification(notification, payload) } To: socketNotificationReceived: function(notification, payload) { if (notification === "USER_PRESENCE"){ this.sendNotification(notification, payload); this.sendNotification('PILIGHTS_SEQUENCE', 'blue_pulse'); } Unfortunately I have realized that I want to do something more elaborate then the PiLights module allows so instead I am now calling a python script instead.
  • after some days ical will not display anymore

    4
    0 Votes
    4 Posts
    2k Views
    F
    Thanks for the Info
  • This topic is deleted!

    5
    0 Votes
    5 Posts
    92 Views
  • This topic is deleted!

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

    1
    2
    0 Votes
    1 Posts
    11 Views
  • Not looking nice :(

    10
    0 Votes
    10 Posts
    5k Views
    Mykle1M
    @Lolololito I don’t believe that is an option in the InternetMonitor module. You could ask the author to add that or you could fork the repo and trying coding that in yourself. :-) I think there are a number of “ping” modules available. Maybe one of those will suit your needs. Check this page: https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules
  • This topic is deleted!

    3
    0 Votes
    3 Posts
    52 Views
  • Calendar overlapping problem

    9
    1
    0 Votes
    9 Posts
    5k Views
    S
    @Mykle1 said in Calendar overlapping problem: displaySymbol: false, THANKS! I’ve overseen this config option ;-) My bad!
  • Calendar and CalDAV

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    C
    My email/calendar provider only supports CalDAV as external request. After some investigations: It’s no baikal, “?export” returns an error It’s no owncloud Manual ICS download with regular webmail interface returns an single ICS file with BEGIN:VCALENDAR/END:VCALENDAR around every BEGIN:VEVENT/END:VENVENT. And MirrorMirror’s default calendar component get’s only the last VCALENDAR/VEVENT in file. One of my ideas: Search or write a lightweight CalDAV client which converts from CalDAV to ICS. An MirrorMirror loads ICS file from local webserver like here explained (works fine). According to http://sabre.io/dav/building-a-caldav-client/ : Options and Report works in REST client, but is missing Response-Header says “NMMDav v0.1 CalDav” - Any ideas how to solve this situation? Make the calendar component more flexible/robust? Integrate an official CalDAV support? Switch to a better calendar provider or set up an owncloud? :-) Greetings, Christian
  • 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
    929 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
    8k 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 :)