MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    • Profile
    • Following 2
    • Followers 9
    • Topics 21
    • Posts 1,117
    • Groups 2
    B Offline
    1. Home
    2. bhepler
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Posts

    Recent Best Controversial
    • RE: Trouble getting it to start

      @in_a_days

      That is weird! If you are able to launch the mirror software with
      DISPLAY=:0 npm start
      PM2 should definitely work :(

      Don’t forget, you told him to re-flash his SD card. That would have wiped the PM2 installation.

      @PhilsterM9 You’re almost there. Your original mistake was that you told PM2 to run the mm.sh script twice (and then 3 times). Let’s make sure that you have PM2 installed, now that you’ve reflashed your SD card.

      Run this: pm2 status. If you get the table, great. Let us know how many entries are in it. If you get the No command 'pm2' found, did you mean: line, go back to the tutorial and follow the steps again, starting with sudo npm install -g pm2.

      If you do have more than one line in the table when you check PM2 status, you’ll want to remove all of the extraneous ones. pm2 delete 1 and possibly pm2 delete 2 if there are three entries. Get it to where there is only one entry in the list when you run pm2 status. Then save the pm2 state: pm2 save.

      Okay, once you have saved the pm2 configuration, pm2 will make sure that your mirror is running. You don’t need to tell it start ever again. Hopefully. You should be able to reboot your Pi and then run pm2 status and see that the mm process is running all by itself.

      posted in Troubleshooting
      B
      bhepler
    • RE: Developing USGS Earthquake Map (2MB GIf warning) Topic 2

      @croxis Flat maps? Intruiging. I hadn’t considered that as an option, but I suppose it makes sense. I did find Cesium, which appears to support flat maps natively (as well as a host of other very useful features). But It looks processor-intensive right out of the gate. I’m not even going to bother trying that one on a Pi.

      @strawberry-3-141 True that. It’s not like we’re hurting for disk space on these things. Just memory and computational cycles. I’ll give it a go and if I hit any problems, I’ll reach out. Not here, of course. I’ll start a new thread.

      posted in Development
      B
      bhepler
    • RE: Developing USGS Earthquake Map (2MB GIf warning) Topic 2

      @strawberry-3.141 Hah! Don’t ask for much, do you? Have you seen my Javascript skills?

      That said… good idea!

      posted in Development
      B
      bhepler
    • RE: Developing USGS Earthquake Map (2MB GIf warning) Topic 2

      @croxis Thank you. The plan is to get it working and then release it as MMM-GlobeJS. Then try it using the WebGL rendering and release that one as MMM-GlobeGL. We’ll see if my ambitions get the better of me.

      It only took a few hours to get the globe up, but my Javascript skills are rudimentary. Also, I haven’t tested this on a Pi, as I’m building the next mirror for my office and they gave me a FitLet PC to use for the project.

      posted in Development
      B
      bhepler
    • RE: How I got my Magic Mirror working on a Raspberry Pi 0 (zero)

      @SebTota Try CTRL+ALT+F2 (note: I have not tried this myself, but it works on other systems I use)

      posted in Tutorials
      B
      bhepler
    • RE: parsing RSS description (newsfeed or MMM-RSS-FEED)

      @meneldour For something that will contain multiple fields in a feed that you wish displayed on multiple lines, it’s probably easier to make a Word of the Day module. Use the RSS feed as a basis and modify the getDOM function to format your feed as you wish.

      Perhaps there’s already a word of the day module that can just be switched over to the one you like?

      posted in Troubleshooting
      B
      bhepler
    • RE: Alert box location

      @PointPubMedia Just in case, the name of the position value is “middle_center”. Not “center_center”. Are you getting any errors when you change the position?

      posted in Troubleshooting
      B
      bhepler
    • RE: Developing USGS Earthquake Map (2MB GIf warning) Topic 2

      Thank you for the inspiration. At the moment, this is a work in progress.
      Globe module - Work in progress

      It’s a very basic implementation of planetary.js. But it seems to be a mature framework.

      posted in Development
      B
      bhepler
    • RE: Monitor panel: TN vs IPS vs VA

      @ZombieDE IMHO, no it’s not worth it. Unless you’re planning on using your Pi through the mirror for surfing, video or the like. But if you’re planning on going with the normal black and white theme for the mirror, it’s not worth the extra color fidelity. I’ve found that with a little fiddling of the monitor settings (contrast max, brightness 40%, etc.) you can remove any background bleed from the LED backlight.

      posted in Hardware
      B
      bhepler
    • RE: White screen after xx time

      @Sillec123 I followed the steps in the Autostarting Magic Mirror tutorial. It was trivial to add the motion startup script to the list of processes for PM2.

      posted in Troubleshooting
      B
      bhepler
    • RE: How I got my Magic Mirror working on a Raspberry Pi 0 (zero)

      @piziie After you deleted the startMagicMirror.sh did you run the update command you quoted?
      sudo update-rc.d startMagicMirror.sh remove
      (more information at the the update-rc man page)

      posted in Tutorials
      B
      bhepler
    • RE: How I got my Magic Mirror working on a Raspberry Pi 0 (zero)

      @piziie That sounds right. Without tracing too closely, it sounds like your startMagicMirror.sh scripts and your start.sh script are both starting the mirror process.

      posted in Tutorials
      B
      bhepler
    • RE: remoteFile in compliments module

      Okay, I have the weather integration working. I’ll spare you the process I went through to figure it out, but the short version is that I am a worse developer than I originally suspected. The remoteFile capability works by replacing the three compliment arrays (morning, afternoon & evening). The weather integration works (sensibly, IMHO) by adding weather-specific compliments to the existing arrays.

      So in order to get them both working, you need to specify both the original arrays and the weather-specific arrays. You can delete any weather-specific arrays you wish, but you must have the morning, afternoon & evening arrays. Copy & paste this compliments.json file to your mirror and then modify accordingly.

      {
        "morning": ["Morning compliment"],
        "afternoon": ["Afternoon compliment"],
        "evening": ["Evening compliment"],
        "day_sunny" : [
          "Day Sunny Compliment 1",
          "Day Sunny Compliment 2"
        ],
        "day_cloudy" : [
          "Day Cloudy Compliment 1",
          "Day Cloudy Compliment 2"
        ],
        "cloudy" : ["Cloud 1"],
        "cloudy_windy" : ["Cloud windy"],
        "showers" : ["Showers"],
        "rain" : ["Rain"],
        "thunderstorm" : ["Thunderstorm"],
        "snow" : ["Snow"],
        "fog" : ["Fog"],
        "night_clear" : ["Night clear"],
        "night_cloudy" : ["Night Cloudy"],
        "night_showers" : ["Night showers"],
        "night_rain" : ["Night Rain"],
        "night_thunderstorm" : ["Night thunderstorm"],
        "night_snow" : ["Night Snow"],
        "night_alt_cloudy_wind": ["Night Cloudy Winds"]
      }
      

      I’m going to work on this a bit and hopefully the next release of the MirrorMirror software will be a bit more friendly. As an aside, I’ve noticed that the weather integration technique continually adds to the arrays. So the memory usage will grow and grow at whatever frequency you set the compliment refresh. This isn’t terrible, as straight text doesn’t take a whole lot of memory. But it may have unintended effects if you leave your mirror running for months at a time or if you are expecting a true randomization of the compliments you enter.

      posted in Troubleshooting
      B
      bhepler
    • RE: Display more than one news article?

      @wrumble I don’t believe so, no. But that sounds like a good feature for the newsreader module. If you code it up, you can contribute it to the development branch. You’re the second person I’ve seen ask about it in the past couple of days, so there’s definitely a desire for the functionality.

      posted in General Discussion
      B
      bhepler
    • RE: How I got my Magic Mirror working on a Raspberry Pi 0 (zero)

      @piziie In my experience, this means that the mirror process is already running and you’ve attempted to start it again. Are you using PM2 to manage the mirror process? Is it possible that two of your scripts are both trying to start the mirror? Have you changed any init settings to auto-boot the mirror?

      posted in Tutorials
      B
      bhepler
    • RE: Facial Recognition - customize your mirror for every user!

      @YourhighnessLeender Check your capitalization. Your training script output was ‘Johannes’ and your config.js has ‘johannes’.

      posted in Troubleshooting
      B
      bhepler
    • RE: Newbie questions

      @theusu5k You can change the language of the calendar via the main configuration. Check with the configuration documentation for details. This will also change the language for any module that supports it (including weather). @broberg has the right idea for the news feeds. Find the feed for the language you want and then replace the feed in the module’s configuration in config.js.

      The default weathermodule is pretty good. If you wish more features, check out the Wunderground module. Both of these will let you set a location for the weather forecast.

      posted in Troubleshooting
      B
      bhepler
    • RE: My First Magic Mirror Build

      Nice! Very clean. I didn’t see any ventilation holes. Are you having any issues with heat?

      posted in Show your Mirror
      B
      bhepler
    • RE: White screen after xx time

      I had this problem a while ago when I was playing with Motion and a Raspicam. My solution was to have PM2 monitor the Motion process and restart it whenever it would hang. The process would occasionally hang when writing to the memory card, but I’m not sure if that’s the problem in your case.

      Anyhow, between PM2 monitoring the Motion process and restarting it when necessary and a scheduled reboot every morning at 2AM, it haven’t had the white screen problem in months.

      posted in Troubleshooting
      B
      bhepler
    • RE: Tips on powering the Pi

      I use one of these: NextGadget 3-Port USB Desk Charger. USB ports are powered strongly enough for the Pi, and it powers the monitor via the AC plug.

      Only downside: the cord itself is only about 4 feet long. So if your mirror isn’t going right over an electrical outlet, you may have to wire in an extension cord yourself.

      posted in Hardware
      B
      bhepler
    • 1 / 1