• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MM on Pi Zero creates some wierd issues. Wrong font, and modules not showing.

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 1.6k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 1 Offline
    17saiiqb
    last edited by Dec 30, 2017, 10:16 PM

    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.
    0_1514672016003_81fc1e98-d2cb-4f64-b98a-3643ea9cae09-image.png

    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

    1 Reply Last reply Reply Quote 0
    • 1 Offline
      17saiiqb
      last edited by Jan 1, 2018, 11:19 AM

      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?

      S 1 Reply Last reply Jan 1, 2018, 1:11 PM Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @17saiiqb
        last edited by Jan 1, 2018, 1:11 PM

        @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

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          3/3
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy