Thanks! Your configuration inspired me to write down and update my own.
I don’t mean to hijack your thread, but since development environments are always a matter of personal preference, I thought I’d share this as an alternative.
Thanks! Your configuration inspired me to write down and update my own.
I don’t mean to hijack your thread, but since development environments are always a matter of personal preference, I thought I’d share this as an alternative.
@tonyarogers said in MagicMirror problem:
Network service crashed
I had similar problems with a setup on a pi zero 2w.
The pi 3A+ seems to have the same memory of only 512 MB.
Short story: The os and the dependencies of mm (node and electron) seems to need more memory with every new version. I gave up with such hardware.
It is not impossible to get it running with increasing swap size or using 32-bit os but it is a dead end …
you can add the following in css/custom.css:
.module.newsfeed {
height: 200px;
}
you can play with the height value.
only wanted to post this variant …
As background: This is a feature of my docker container where you can use a config.js.template and the variables are defined in the docker-compose.yml which starts the container and before starting mm I run envsubst to make the real config.js.
@retroflex thank you, your’re right.
Checked this again with this unmerged pr. With this pr, the config.js is no longer reachable per browser, so we have to wait for the next release where this is hopefully merged.
@Jessendelft other possibilities:
I think we should open an issue in the github repo to discuss the moment stuff there, if it should be replaced and with what. Found this article.
In the current mm release 2.16.0 request is still a dev dependency but it is now totally removed on the develop branch (and so in the next release).
you can try the ip-address of the pi in config.js as address: instead of "0.0.0.0".
should be
icons: [{
"default": "http://localhost:8080/cors?url=http://<my-ha-url>:8123/local/images/hem.png"
}]
yes, and AFAIK you are using npm install --only=prod. This is may a thing to be mentioned in the docs because 99% of the users don’t need the dev dependencies …