Read the statement by Michael Teeuw here.
MM on Pi Zero creates some wierd issues. Wrong font, and modules not showing.
-
So I managed to get MagicMirror on a Pi zero, following these instructions. However, I have some problems. I’ll start with the simplest.
The font isn’t Roboto, I think maybe the font doesn’t work on Pi Zero? I’m not used to not having a GUI, so I don’t know how to fix it.
Second problem is modules not showing. Only the default modules work. I found this. But I have no idea if it is related. If it is, how can I fix it? The module I want is https://github.com/YR/MMM-YrNow
-
Update: I managed to fix the font problem. It wasn’t installed by npm install for some reason. So I updated npm, and ran npm install, and it worked!
I still can’t figure out the module thing though, can someone please help?
-
@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