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 or empty, is "localhost"
port: 8090,
basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
// you must set the sub path here. basePath must end with a /
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"],
useHttps: false, // Support HTTPS or not, default "false" will use HTTP
httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
Read the statement by Michael Teeuw here.
Latest posts made by Ice-cream
-
RE: Error - EADDRINUSE
-
RE: Error - EADDRINUSE
Sorry, that did not work - error I receive.
code: ‘EADDRINUSE’,
errno: ‘EADDRINUSE’,
syscall: ‘listen’,
address: ‘[delete]’,
port: 8090Yes MM auto-starts on reboot > yes to automated script > I followed these steps: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror.
The current error when I run
pm2 restart mm
Use --update-env to update environment variables
[PM2] Applying action restartProcessId on app [mm](ids: 0,1)
[PM2] mm â
[PM2] mm â
ââââââ¬âââââââââââââââââââââ¬âââââââââââ¬âââââââ¬ââââââââââââ¬âââââââââââ¬âââââââââââ
â id â name â mode â ⺠â status â cpu â memory â
ââââââ¼âââââââââââââââââââââ¼âââââââââââ¼âââââââ¼ââââââââââââ¼âââââââââââ¼âââââââââââ¤
â 0 â mm â fork â 0 â errored â 0% â 0b â
â 1 â mm â fork â 1 â online â 0% â 1.8mb â
ââââââ´âââââââââââââââââââââ´âââââââââââ´âââââââ´ââââââââââââ´âââââââââââ´âââââââââââI’ve also run
pm2 logs mm
pi@raspberrypi:~ $ pm2 logs mm
[TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
/home/pi/.pm2/logs/mm-error.log last 15 lines:
0|mm | npm ERR! Failed at the magicmirror@2.12.0 start script.
0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
0|mm |
0|mm | npm ERR! A complete log of this run can be found in:
0|mm | npm ERR! /home/pi/.npm/_logs/2020-07-26T00_13_44_413Z-debug.log
0|mm | npm ERR! code ELIFECYCLE
0|mm | npm ERR! errno 1
0|mm | npm ERR! magicmirror@2.12.0 start:DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
0|mm | npm ERR! Exit status 1
0|mm | npm ERR!
0|mm | npm ERR! Failed at the magicmirror@2.12.0 start script.
0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
0|mm |
0|mm | npm ERR! A complete log of this run can be found in:
0|mm | npm ERR! /home/pi/.npm/_logs/2020-07-26T00_36_04_600Z-debug.logI’ve just checked and I do not have a doc electron.js from this source - ./node_modules/.bin/electron js/electron.js.
I remember that all I did was type kill in the terminal and killed a number - what mess have I caused!!! I’m so sorry :(
The instructions I followed - I stopped after I entered kill and the number (I think mine began with a 5 or 9)
-
RE: No numbers in analog watch face
- Haha thanks guys - that worked!
Very good point in regard to ‘‘how you update the code if you don’t know to create custom.css?’’- I previouly edited the config.js, clock.js and clock_styles.css > I created a really pretty analog clock with the centre, second hand, minute and hour each with different colours.
- For some reason I thought that a custom.css was really technical but I easily created this from my terminal.
For what it’s worth, I’ve connected to a few APIs and have configued these in the main confg folder and the css’s.
Going forward I’m going to play with customising the default modules (well the ones which I haven’t hidden in the main config file) in the custom CSS.
Thanks again Xx
-
Error - EADDRINUSE
Hi everyone, I’m new to MM and coding.
Situation - when I ran , I received an odd note in my terminal (copied the below from Google).
Error: listen EADDRINUSE: address already in use :::8080 at Server.setupListenHandle [as _listen2] (net.js:1258:14) at listenInCluster (net.js:1306:12) at Server.listen (net.js:1394:7)
I found some instructions online and then KILLED something in the terminal (again copied from Google):
node 2464 murari 21u IPv6 4392639 0t0 TCP *:http-alt
So I killed MY PID which was a different number and I’ve sort of fucked up my MM.
When I run the MM, I receive this error now - could someone please help? Thank you Xx
code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '[deleted]', port: 8080 } [2020-07-26 09:30:22.750] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [2020-07-26 09:30:22.750] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [2020-07-26 09:30:22.780] [LOG] Launching application. ^C
-
RE: No numbers in analog watch face
@hango Thanks Hango.
- I have updated the code (still not working presumably because of point 3 below)
- I don’t know where to download the old SVG faces - when I installed MM there was/is a folder full of SVG clock faces
- Please don’t laugh - I don’t know how to create/use a custom css folder - I plan to learn this soon! X
-
RE: No numbers in analog watch face
@hango Hi again, I’ve modified my script but it isn’t working:
.clockCircle {
margin: 0 auto;
position: relative;
border-radius: 50%;
background-size: 100%;
background: transparent /home/pi/MagicMirror/modules/default/clock/faces(“faces/face-005.svg”) center no-repeat;
}In this context, is url an actual url or my fie path? x
-
RE: Weather forecast - only displaying 3x days (? help)
@hango, THANK YOU :) I have a question - how on Earth did you determine that line 297 from the file needed to be amended? Are you God? Are you a computer scientist? I am in awe of your eagle eye and intelligence! :clapping_hands: :blond-haired_woman: :call_me_hand:
-
RE: Weather forecast - only displaying 3x days (? help)
@hango Thanks - I’ll try this tonight and revert with an update :) x
-
RE: Default weather forecast only showing two days
Hey everyone, I’m also experiencing this issue and went fucking crazy LOL! I can’t wait to try “Sparxx’s” recommendation. X
-
Weather forecast - only displaying 3x days (? help)
Hi everyone,
My weather forecast’s only displaying three days and not the default 5 (or so). I’ve changed the fault to 7 days and still nothing. Changed the fade as I thought this was hiding the additional days. Nothing.
I’ve cross-referenced my lines with those from the Weather module in GitHub and mine matches.
I’d LOVE to display 7 days - and would love your help. Xx ice-cream (https://github.com/MichMich/MagicMirror/tree/master/modules/default/weatherforecast)