@Perlchamp Are you running npm start inside the module folder?
I’m not an expert on this, but I think Module is a class that belongs to the MagicMirror environment. Your module as a standalone does not know what to do with it.
If you run npm start in the MagicMirror folder, it would recognize the code.
Read the statement by Michael Teeuw here.
Posts
-
RE: npm ERR! missing script: start
-
RE: MMM-Strava Auth Fail
@lavolp3 If I remember correctly:
If you’re trying to auth from your mac’s browser using the pi as the mirror you should use the Pi’s IP address as callback URL. NOT “localhost”.
You need to use a valid address you can enter from your mac or laptop.This one works if you also use http://192.168.1.23:8080 as callback URL for the authentication.
-
RE: MMM-Strava Auth Fail
@huso15 Where do you have the mirror running? On the mac or on a pi?
-
RE: Moving modules
@gwiz try
.weatherforecastinstead of .MMM-weatherforecast.
Odd, but that’s how it is referenced in the module css -
RE: Moving modules
@gwiz please post the complete part in the custom.css.
The selectors are important. It seems like you have the selectors wrong.You would need:
.MMM-weatherforecast { margin-right: 50px }The rest may also be applied by the inner margin of the module. SO a margin or padding between the divs in the module container.
-
RE: Deutsche Anleitung MagicMirror auf RaspberryPi 3
@35110 wenn solche Meldungen erscheinen und man eigentlich nichts geändert haben wollte kann man auch eingeben
git reset --hardDas löscht alle lokalen Änderungen und setzt das lokale repository auf den vorherigen Stand des Quell-Repositories zurück. Dann kann man mit
git pullwieder wie gewohnt updaten. -
RE: npm install vulnerabilities
@OneAsianTortoise I wouldn’t do much about it as well. As @sdetweil said, they are only warnings. Your mirror will run with these warnings.
What I think is unproblematic is running:npm audit fixThese are automatic fixes on the vulnerabilities that are obvious for the system.
I haven’t heard of anyone breaking their software doing this. -
RE: MMM-RAIN-RADAR - Correct time
@Lordy said in MMM-RAIN-RADAR - Correct time:
@bhepler
I do not know what you mean?Ich weiß nicht was du meinst?
I have included it in your post.
The markdown feature gives copied code a “window” and proper formatting for better readability.
You can use the button “< />” above your input window for that. -
RE: MMM-RAIN-RADAR - Correct time
@Lordy said in MMM-RAIN-RADAR - Correct time:
Shouldn’t the purpose of the “Rain Radar” be to warn me of future rain? Right now I feel like he’s only showing me the past weather.
THis is what it is intended to do.
It only shows recent weather movement, not an outlook
https://www.rainviewer.com/RainViewer shows you live precipitation map that shows how fast a storm has moved, how intense it’s been, and >what direction it’s moved in so far. Learn more.
Have a look at my module MMM-Buienalarm if you live in Nordrhein Westfalen. It shows expected precipitation for the next 2 hours
-
RE: MMM-RAIN-RADAR - Correct time
@Lordy I can’t follow completely.
The rain radar covers a range of 2 hours.
WithUTCtime: 0it should cover your current time -2 hours until your current time.
Does the graphic show the time progression? When does it start, when does it stop? -
RE: Question for custom css
@dsmigl Someone here on the forum rewrote the css part into a grid style. It is a very good idea which I have put on my todo list as well.
https://forum.magicmirror.builders/topic/10498/magic-mirror-redesign-wip-d/2?_=1588662144678Apart from that, most of what you are showing COULD be done using the current format. But I guess changing to a grid display would be easier.
-
RE: Microsoft To-Do (wunderlist replacement?)
@smoysauce
First,moment(new Date(element.dueDateTime.dateTime)).format("ddd MMM DD")is redundant. You don’t need thenew Datepart.
moment(element.dueDateTime.dateTime).format("ddd MMM DD")should be enough.Second, where have you put it?
I had my own problems with the code, that’s why I’m working on an own version including due dates, but it’s not finished.Here’s how I would try to include it.
if (this.list.length !== 0) { this.list.forEach(element => (listItemsText += '<li style="list-style-position:inside; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">' + checkbox + element.subject + ((element.dueDate) ? moment(element.dueDateTime.dateTime).format("ddd MMM DD") : '') + '</li>')) } else { // otherwise indicate that there are no list entries listItemsText += '<li style="list-style-position:inside; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">' + this.translate('NO_ENTRIES') + '</li>' } -
RE: Microsoft To-Do (wunderlist replacement?)
@smoysauce if your element does not have a dueDateTime (null) this could lead to an error (cannot get property of undefined).
Maybe something like this?
if (element.dueDateTime) { var dueDate = moment(element.dueDateTime.dateTime).format("LL"); } -
RE: Deutsche Anleitung MagicMirror auf RaspberryPi 3
@35110 es gibt ein neues Update&Install script von sdetweil. Ich denke er hat dieses Problem in seinem Skript gelöst.
Eine Lösung ist jedenfalls die package-lock.json zu löschen.
rm package-lock.json git pull && npm installEs gibt für Node.js-Projekte eine
package.jsonund einepackage-lock.json. Diepackage.jsongibt Informationen was bei Ausführen onnpm installinstalliert werden soll. Diepackage-lock.jsonschreibt die Version der jeweils installierten Pakete fest. Wenn man sie gelöscht hat wird sie einfach neu erstellt.Eigentlich sollte die Datei nicht von git versioniert werden. Warum trotzdem immer mal wieder dieser Fehler auftritt kann ich nicht sagen.
-
RE: MMM-SmartWebDisplay : Regions / Resizing
I would set it into the top_left region right below the default clock module.
Then in thecustom.cssI would set.MMM-SmartWebDisplay { height: xxxpx; //put in the height you want, e.g. 600px width: 100%; }Not sure if that works. Try it out.
-
RE: MMM-EFA Config
@rxlDavid
The errors make it seem like you have astrictmode enabled somehow. Wouldn’t even know how to do that.
Because normally the check would allow training lines and single quotes… -
RE: MMM-EFA Config
@rxlDavid You have config errors in the respective lines.
You should use your preferred editor (e.g. nano) and fix themnano config/config.jsOr post your config.js here but delete every sensitive information!
At least post the first few lines. -
RE: ENOENT yet the file exists within the Magic Mirror folder
@Chrisflex
Well… What have you done until now?
Have you installed MagicMirror on your dellserver?
Where have you done thegit clonecommand?
You need to enter that directory before doingnpm startcd MagicMirror npm startMaybe have a look at the documentation again?
https://docs.magicmirror.builders/getting-started/installation.html#manual-installation -
RE: ENOENT yet the file exists within the Magic Mirror folder
@Chrisflex YOu seem to be in the wrong directory.
when you type innpm start, npm is looking for a package.json file in the directory you are running it.
When there is no package.json, npm does not know what to do. -
RE: MMM-EFA Config
@rxlDavid Can’t find any errors in the config entry.
Do the following to debug:
- include the config entry, and try the following in the console (directly or via ssh)
cd ~/MagicMirror npm run config:checkNo errors?
Then: Open the mirror window in a browser on your PC, open the DevTools (F12), select the “console” tab and look for errors/red lines