A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • node serveronly not working

    6
    0 Votes
    6 Posts
    5k Views
    morozgrafixM
    I realize that this topic is about 2 months old, but I’m going to add some possible troubleshooting steps for anyone who may run into this problem. Hopefully OP already has this resolved. @Jeff while on RasPi terminal can you try to execute this command ping localhost? you should see output similar to this: $ ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.253 ms 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.268 ms 64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.257 ms ... ... as you can see hostname localhost resolves to ip address 127.0.0.1 which is very common. you can also try to enter http://127.0.0.1:8080 in your browser. if the above works and after node serveronly is running, can you please try to execute following command curl -I http://localhost:8080? your output should be similar to this: $ curl -I http://localhost:8080 HTTP/1.1 200 OK X-Powered-By: Express Accept-Ranges: bytes Cache-Control: public, max-age=0 Last-Modified: Wed, 21 Dec 2016 06:49:47 GMT ETag: W/"8da-15920249be6" Content-Type: text/html; charset=UTF-8 Content-Length: 2266 Date: Sun, 15 Jan 2017 23:09:37 GMT Connection: keep-alive if it’s not double check your config.js to make sure your server is running on port 8080
  • Weather Forecast: showRainAmount displays in mm even when config.units='imperial'

    Unsolved
    9
    0 Votes
    9 Posts
    4k Views
    F
    Looks great! Appreciate the quick fix and quick responses, wish more FOSS projects were this professional and responsive.
  • White Screen after starting Magic Mirror

    7
    0 Votes
    7 Posts
    3k Views
    yawnsY
    @Squirrel Yes, I forgot to mention that. You can also press ctrl + c in console to kill the mirror process. So you don’t have to close the terminal every time
  • wrong age in calendar module

    4
    0 Votes
    4 Posts
    2k Views
    chamaeleon82C
    thank you, will soon try.
  • Newbie questions

    weather n00b maps api
    9
    0 Votes
    9 Posts
    6k Views
    bheplerB
    @theusu5k You can change the language of the calendar via the main configuration. Check with the configuration documentation for details. This will also change the language for any module that supports it (including weather). @broberg has the right idea for the news feeds. Find the feed for the language you want and then replace the feed in the module’s configuration in config.js. The default weathermodule is pretty good. If you wish more features, check out the Wunderground module. Both of these will let you set a location for the weather forecast.
  • Suddenly ipWhitelist no longer working...

    3
    0 Votes
    3 Posts
    2k Views
    SteffS
    Digging one step further: My magicmirror has the ip address 192.168.178.164. I am using a cable fritz box, i configured it that this ip address has the hostname “magicmirror”. I remember that I had to a reboot of the fritzbox 2 days ago, will investigate whether I potentially lost some settings in the fritzbox. Funny thing: If I try to access directly http://192.168.178.64:8080/remote.html, I do not get any problem, only if I try to access it with http://magicmirror:8080/remote.html#power-menu I do not -yet- understand why… BTW: if i ping the magicmirror from the same pc, the address resolving is working: PING magicmirror.fritz.box (192.168.178.64): 56 data bytes 64 bytes from 192.168.178.64: icmp_seq=0 ttl=64 time=7.766 ms 64 bytes from 192.168.178.64: icmp_seq=1 ttl=64 time=9.753 ms 64 bytes from 192.168.178.64: icmp_seq=2 ttl=64 time=12.715 ms 64 bytes from 192.168.178.64: icmp_seq=3 ttl=64 time=10.908 ms 64 bytes from 192.168.178.64: icmp_seq=4 ttl=64 time=20.834 ms Using the full pseudo domain name `http://magicmirror.fritz.box:8080/remote.html#power-menu’ does not help…
  • Calendar and displaying today

    1
    0 Votes
    1 Posts
    2k Views
    P
    I have one issue about the calendar. I have looked in other posts but did not find any soloution. Or maybe I am just stupid. I have a ical feed similar to this rss feed to display the food in the kids school. This works fine but as the publisher of the ical has set the time to 01:00 in the night as start todays entry will not be shown. Only the nextcoming days. How can I display the entry of today even if it started 01:00. http://skolmaten.se/hogadalskolan/rss/ [image: mat.png] { module: 'calendar', header: 'SKOLMAT HÖGADAL', position: 'bottom_left', config: { maxTitleLength :50, calendars: [ { symbol: 'fa-cutlery', url: 'http://skolmaten.se/hogadalskolan/calendar/', timeFormat: 'relative', urgency: 0 },
  • 0 Votes
    2 Posts
    1k Views
    tosti007T
    You would have to add a node helper that checks the URL and then send the data through the socketNotification. I think best is if you would look at the magicmirror documentation and take an example from Paviro’s syslog module.
  • 0 Votes
    4 Posts
    5k Views
    mochmanM
    Right, the nohup command removes the process from the terminal window. If you shut down the terminal, it’ll also shut down your magic mirror without the nohup command before npm.
  • fresh install MM2.1 with this error

    1
    0 Votes
    1 Posts
    1k Views
    C
    Hi, pi@raspberrypi:~/MagicMirror $ npm start /usr/lib/node_modules/npm/node_modules/glob/node_modules/fs.realpath/index.js:1 (function (exports, require, module, __filename, __dirname) { SyntaxError: Invalid or unexpected token at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions…js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/npm/node_modules/glob/glob.js:44:10) at Module._compile (module.js:570:32) What’ s wrong? I need help from an expert! Thank you
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    40 Views
  • How to set Font in Alarm Clock

    13
    0 Votes
    13 Posts
    8k Views
    morozgrafixM
    @broberg I agree with you and think that getting rid of those inline styles is the best long term solution
  • PIR Motion Detection - White Screen

    1
    1 Votes
    1 Posts
    1k Views
    T
    When I try to run an “npm install” on the “MMM-PIR-Sensor” directory, i get the following error. Does anyone know what could be causing this, and go to resolve it? I am able to run the rest of the mirror, along with some other modules from this site without issue. Here is the error: Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall /home/pi/MagicMirror/modules/MMM-PIR-Sensor electron-rebuild -e …/…/node_modules/electron-prebuilt An unhandled error occurred inside electron-rebuild Unable to find electron-prebuilt’s version number, either install it or specify an explicit version Error: Unable to find electron-prebuilt’s version number, either install it or specify an explicit version at _callee$ (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/cli.js:74:17) at tryCatch (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/regenerator-runtime/runtime.js:63:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/regenerator-runtime/runtime.js:337:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/regenerator-runtime/runtime.js:96:21) at GeneratorFunctionPrototype.tryCatcher (/home/pi/node_modules/bluebird/js/release/util.js:16:23) at PromiseSpawn._promiseFulfilled (/home/pi/node_modules/bluebird/js/release/generators.js:97:49) at /home/pi/node_modules/bluebird/js/release/generators.js:201:15 at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/cli.js:197:4) at Module._compile (module.js:570:32) at Object.Module._extensions…js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) npm ERR! Linux 4.4.38-v7+ npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “install” npm ERR! node v6.9.2 npm ERR! npm v3.10.9 npm ERR! code ELIFECYCLE npm ERR! Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall: electron-rebuild -e …/…/node_modules/electron-prebuilt npm ERR! Exit status 255 npm ERR! npm ERR! Failed at the Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall script ‘electron-rebuild -e …/…/node_modules/electron-prebuilt’. 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 Magic-Mirror-Module-PIR-Sensor package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! electron-rebuild -e …/…/node_modules/electron-prebuilt npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs Magic-Mirror-Module-PIR-Sensor npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls Magic-Mirror-Module-PIR-Sensor 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/modules/MMM-PIR-Sensor/npm-debug.log If i try to run the mirror with the information from the PIR module in the config file, i get the white screen. If i comment out the PIR section in the config.js file, i am able to run the mirror without issue.
  • rotate_display=1 is not rotating my display?

    4
    0 Votes
    4 Posts
    4k Views
    G
    Ok, so I found out the problem: I typed spaces around the = sign, i.e. “rotate_display = 1” instead of “rotate_display=1”. If you take out the white spaces (also for the warnings command) it should work.
  • How to Set Date Format

    4
    0 Votes
    4 Posts
    4k Views
    brobergB
    @nobita I updated my mirror to 2.1.0 and the code had changed slightly, but the format I posted above will change it back to “09/01 2017”
  • Trying to add a background picture, {Body} doesnt work

    7
    0 Votes
    7 Posts
    4k Views
    brobergB
    @Wedee Works for me, z-index and opacity does the layering just fine, @oscarkindberg But unless you want the fade to be animated it should be made directly in the image, easier for the raspberry to process.
  • Can't access mirror from external source - IPwhitelist doesnt work

    4
    0 Votes
    4 Posts
    3k Views
    D
    Thanks. Much appreciated. All sorted.
  • need help moving a module to another region (noob)

    4
    0 Votes
    4 Posts
    3k Views
    brobergB
    figured it wouldn’t apply to the div, but try this : .MMM-Nest { position: absolute; right: 0px; }
  • 0 Votes
    8 Posts
    5k Views
    impuislupusI
    @broberg Thanks thats exactly what it was
  • White flash when electron boots up

    4
    0 Votes
    4 Posts
    3k Views
    S
    Works like a charm :) Thanks!