A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Modules doesn't show

    4
    0 Votes
    4 Posts
    2k Views
    G
    Just fyi, the “location” under module currentweather is within quote marks (") but I done goofed when I did “****” instead of my real location
  • 0 Votes
    3 Posts
    2k Views
    strawberry 3.141S
    @17saiiqb https://github.com/YR/MMM-YrNow/blob/master/MMM-YrNow.js#L57 and https://github.com/YR/MMM-YrNow/blob/master/MMM-YrNow.js#L62 use arrow functions, which could be replaced with normal functions as the scope isn’t used in the function anyways. return this.list.points.filter(function(item) { item.precipitation.intensity > 0 && Date.parse(item.time) >= new Date().valueOf()})[0]; return this.list.points.filter(function(item) { item.precipitation.intensity === 0 && Date.parse(item.time) >= new Date().valueOf()})[0]; https://github.com/YR/MMM-YrNow/blob/master/printf.js#L14 return String(str).replace(RE_PRINTF, function(token) { not sure if … was also introduced in es6 or before https://github.com/YR/MMM-YrNow/blob/master/printf.js#L10
  • MagicMirror does not start at all

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    1
    I kinda gave up, I’m just going to reinstall MagicMirror, and see if that fixes anything. Can I mark a topic as closed by the way?
  • Modules disappearing randomly

    3
    0 Votes
    3 Posts
    2k Views
    R
    @Mykle1 actually I noticed that the time on the mirror freezes first, so I think actually something is corrupted. I’m going to do a fresh install and hope that fixes it. Will report back, thank you!
  • I'm very new to this

    9
    0 Votes
    9 Posts
    4k Views
    Mykle1M
    @Coltjb45 Does your entry look like this? { 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 HERE", } }, { module: "weatherforecast", position: "top_right", header: "New York City", config: { location: "", locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR API KEY HERE", } },
  • Image writing problems

    1
    0 Votes
    1 Posts
    803 Views
    P
    Not special for MM, but I have problems writing an image. Finally Jessie installed, MM with the modules I like and I want to save this image to my Windows PC. Tried to run disk32image as administrator, virusscanner disabled, but I get a error 2 message. Strange: it worked nomally a week ago. Who can help me? Peter
  • npm start doesn't work

    3
    0 Votes
    3 Posts
    2k Views
    T
    I have tried : $ sudo apt update and $ sudo apt install nodejs But there is still the same error. I hope somebody can help me.:)
  • ipWhitelist - still not working

    Solved
    10
    1
    0 Votes
    10 Posts
    5k Views
    Mykle1M
    @SimtechBen Nice!
  • Quit MM with script

    2
    1
    0 Votes
    2 Posts
    2k Views
    Mr.SpontiM
    @start-the-fire said in Quit MM with script: CTRL-C isn’t an option cause I’m us Hi, maybe you can use my bash script mmhelper.sh to start/stop MagicMirror from the command line or from another script (e.q. python, nodejs). #!/bin/bash # # mmhelper.sh start | stop | status | hdmi_on | hdmi_off| hdmi_status # # Last edited: 10.09.2017 (c) Mr.Sponti # #set -x HOME=/home/pi PATH=$PATH:$PWD MY_NAME=$(basename -- "$0") function monitor_on() { /opt/vc/bin/tvservice --preferred > /dev/null 2>&1 sudo chvt 6 sudo chvt 7 } function monitor_off() { /opt/vc/bin/tvservice --off > /dev/null 2>&1 } function monitor_status() { # get power status --> 1 = off , 0 = on power=$(/opt/vc/bin/tvservice --status |grep "TV is off"|wc -l) if [ $power -eq 1 ] then echo "off" elif [ $power -eq 0 ] then echo "on" fi } # check first runstring parameter if [ -z "$1" ] then cmd=start else cmd=$1 fi case $cmd in "start") # start MagicMirror pm2 start mm ;; "stop") # stop MagicMirror pm2 stop all ;; "status") pm2 status mm ;; "hdmi_on") # switch monitor on monitor_on monitor_status ;; "hdmi_off") # switch monitor off monitor_off monitor_status ;; "hdmi_status") monitor_status ;; *) echo "undefined command" echo "usage: $MY_NAME start|stop|status|hdmi_on|hdmi_off|hdmi_status" esac You also need the mm.sh script in your home directory! pm2 flush # start Magic Mirror system cd ~/MagicMirror DISPLAY=:0 npm start Merry Christmas!
  • mm-system-temperature

    13
    0 Votes
    13 Posts
    8k Views
    P
    Thanks! Why could I not find it? Peter
  • Cannot access to MagicMirror despite IpWhiteList

    10
    0 Votes
    10 Posts
    8k Views
    M
    Hi everyone, Problem solved with a new fresh install. Unfortunately, the issue came from me. From my config.js to be more accurate. My exact config.js was: var config = { port: 8080, adress: "0.0.0.0", ipWhitelist: ["127.0.0.1", "192.168.1.1/24", "192.168.2.1/24", "192.168.2.100"], // 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"], My new and working one is the one Mykle1 gave me: var config = { port: 8080, address: "0.0.0.0", ipWhitelist: [], I assume it’s a coma mistake. Nothing to do with multi web server. Thank you again for your help. Best regards
  • npm ERR! cb() never called! _ when trying to install MMM-RTSPStream

    6
    0 Votes
    6 Posts
    5k Views
    S
    It may be the downgrade or a bug in the post install script for my module. Backstory: My module tries to install a patch to the main electron.js file on older MM versions so it can safely close the streams when you shut down the mirror - this is now included in the core MM code and is not installed if the code already exists. The errors with npm upgrade: it should be sudo before that line, that’s why you have a bunch of permission errore, but the node update took care of the npm update too. To fix the mirror install, replace MagicMirror/js/electron.js with a fresh copy from github for your version of MM to undo whatever the patch broke when it failed.
  • Blank Screen - MagicMirror Fresh Install

    8
    0 Votes
    8 Posts
    3k Views
    Mykle1M
    @ryosshii Sounds like you’re in node server only mode. Try running DISPLAY=:0 npm start through VNC. Also, after you launch MM but it doesn’t appear, try opening a browser window on your laptop and entering 192.168.1.1:8080 (but you would put the IP address of your Pi in place of 192.168.1.1)
  • "No Syntax Errors" but "Could noch validate config.file"

    3
    0 Votes
    3 Posts
    2k Views
    K
    Hi Mykle1, thanks for answering. I didn´t add any modules yet. Only the default modules. I will try that. Thanks for your help.
  • Default Calendar Module, wrong event timing

    7
    0 Votes
    7 Posts
    4k Views
    K
    sorry for digging this up again but my problem ist still unsolved. yes, both events are on the same ics! i just realized that the mirrow shows me the full day events as if they were starting just at midnight. somhow it is not recognized that these are full day events which need to be shown throughout the whole day
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    26 Views
  • Curiosity

    1
    0 Votes
    1 Posts
    1k Views
    Y
    If a person has 20 modules installed and all the modules use network resources, then when we fire up Magic Mirror do all these modules start and start using network as well a memory and processor resources?? If so can’t we make a framework where the modules are triggered rather than starting with Magic Mirror. I have roughly 15-20 modules installed and it takes a lot of resources, what if I can trigger which module to start when?
  • MagicMirror connecting problem..

    8
    0 Votes
    8 Posts
    4k Views
    Mykle1M
    @ahnim said in MagicMirror connecting problem..: OH!!! thank you so much! I followed your tips, and i resolved it…! That is good news, mate. Enjoy your mirror. :-)
  • Disabling screen blanking

    4
    0 Votes
    4 Posts
    2k Views
    Mykle1M
    @Onelast apt-get purge packagename or apt-get remove --purge packagename will remove about everything regarding the package packagename, but not the dependencies installed with it on installation. Both commands are equivalent. Particularly useful when you want to ‘start all over’ with an application because you messed up the configuration. However, it does not remove configuration or data files residing in users home directories, usually in hidden folders there. There is no easy way to get those removed as well. apt-get autoremove
  • Did an update got errors and need help

    3
    0 Votes
    3 Posts
    2k Views
    Mykle1M
    @wizz This will take you less than an hour and you’ll be up and running AND you won’t lose anything from your previous install https://forum.magicmirror.builders/topic/5274/how-to-manually-install-mm-on-your-pi-for-absolute-beginners