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

    Posts

    Recent Best Controversial
    • RE: Two Instances in PM2

      I did find this in the cd MagicMirror???

      pi@raspberrypi:~/MagicMirror $ pm2 log MagicMirror
      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
      /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
      /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|MagicMir | at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
      0|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:498:3)
      0|MagicMir | at Module.require (internal/modules/cjs/loader.js:598:17)
      0|MagicMir | at require (internal/modules/cjs/helpers.js:11:18)
      0|MagicMir | Error: ENOENT: no such file or directory, open ‘package.json’
      0|MagicMir | at Object.fs.openSync (fs.js:660:18)
      0|MagicMir | at Object.fs.readFileSync (fs.js:565:33)
      0|MagicMir | at Object. (/home/pi/MagicMirror/js/app.js:15:32)
      0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:654:30)
      0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:665:10)
      0|MagicMir | at Module.load (internal/modules/cjs/loader.js:566:32)
      0|MagicMir | at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
      0|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:498:3)
      0|MagicMir | at Module.require (internal/modules/cjs/loader.js:598:17)
      0|MagicMir | at require (internal/modules/cjs/helpers.js:11:18)

      posted in Troubleshooting
      S
      shazglass
    • RE: Two Instances in PM2

      @bhepler hithere
      I did as per your instructions - except I dont know how to use the forum markup tool…so just copied and pasted.
      I now dont have any instances running? I can only access my mirror if i go ino cd MagicMirror and then type npm install.

      pi@raspberrypi:~ $ pm2 stop all
      [PM2] Applying action stopProcessId on app [all](ids: 0)
      [PM2] MagicMirror ✓
      ┌─────────────┬──────┬─────────┬───┬─────┬────────┐
      │ Name │ mode │ status │ ↺ │ cpu │ memory │
      ├─────────────┼──────┼─────────┼───┼─────┼────────┤
      │ MagicMirror │ fork │ stopped │ 6 │ 0% │ 0 B │
      └─────────────┴──────┴─────────┴───┴─────┴────────┘
      Use pm2 show <id|name> to get more details about an app
      pi@raspberrypi:~ $ pm2 delete MagicMirror
      [PM2] Applying action deleteProcessId on app [MagicMirror](ids: 0)
      [PM2] MagicMirror ✓
      ┌──────┬──────┬────────┬───┬─────┬────────┐
      │ Name │ mode │ status │ ↺ │ cpu │ memory │
      └──────┴──────┴────────┴───┴─────┴────────┘
      Use pm2 show <id|name> to get more details about an app
      pi@raspberrypi:~ $ pm2 save
      [PM2] Saving current process list…
      [PM2] Nothing to save !!!
      [PM2] In this case we keep old dump file. To clear dump file you can delete it manually !
      pi@raspberrypi:~ $ pm2 flush
      [PM2] Flushing /home/pi/.pm2/pm2.log
      [PM2] Logs flushed
      pi@raspberrypi:~ $ pm2 start mm.sh
      [PM2][ERROR] script not found : /home/pi/mm.sh
      script not found : /home/pi/mm.sh
      ┌──────┬──────┬────────┬───┬─────┬────────┐
      │ Name │ mode │ status │ ↺ │ cpu │ memory │
      └──────┴──────┴────────┴───┴─────┴────────┘
      Use pm2 show <id|name> to get more details about an app
      pi@raspberrypi:~ $ pm2 save
      [PM2] Saving current process list…
      [PM2] Nothing to save !!!
      [PM2] In this case we keep old dump file. To clear dump file you can delete it manually !
      pi@raspberrypi:~ $ pm2 start mm
      [PM2][ERROR] script not found : /home/pi/mm
      script not found : /home/pi/mm
      ┌──────┬──────┬────────┬───┬─────┬────────┐
      │ Name │ mode │ status │ ↺ │ cpu │ memory │
      └──────┴──────┴────────┴───┴─────┴────────┘
      Use pm2 show <id|name> to get more details about an app
      pi@raspberrypi:~ $ pm2 log mm
      [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
      [PM2][ERROR] No file to stream for app [mm], exiting.
      pi@raspberrypi:~ $ pm2 log MagicMirror
      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
      [PM2][ERROR] No file to stream for app [MagicMirror], exiting.
      pi@raspberrypi:~ $

      posted in Troubleshooting
      S
      shazglass
    • RE: Two Instances in PM2

      @bhepler hi there.
      Thank you for the instructions. I did exactly as you said. It has taken away the “mm” instance. I am left with only the MagicMirror one now. However. It will not boot Into mirror mode on start up, although I can see the CPU is being used, so I type pm2 stop MagicMirror and it shows that it has stopped. Only way I can get the mirror to show is by typing cd MagicMirror
      Then in that directory I type npm start. It does a small load thing and then my mirror shows. How can I get it to how it should be without having to go into the mirror directory?
      Thank you for your patience. Most appreciated!

      posted in Troubleshooting
      S
      shazglass
    • RE: Two Instances in PM2

      @mykle1 hi again😉. Yep. I did do that and that’s when both run in the background but none go to mirror mode. Then u suggested going into cd MagicMirror and running npm start and then it goes into mirror mode. I use control q to quit but I still have two instances. I need to delete both and reinstall but without losing my mirror and that’s what I don’t know how to do. I want it back to boot up going straight to mirror mode and then just control q to quit then pm2 stop MagicMirror and pm2 start MagicMirror. Right now I have mm and MagicMirror. I’m just at a loss☹️

      posted in Troubleshooting
      S
      shazglass
    • RE: Two Instances in PM2

      Hi everyone.
      Please help. I have two instances of mm starting on boot up. I don’t know what I did wrong. When pi starts the cpu is showing movement but doesn’t boot into mm. I have to type is pi pm2 stop mm. Then pm2 stop MagicMirror to stop the cpu usage. I go into cd MagicMirror and type npm start and my mirror starts. Control q and quits. But this isn’t the right way to do it. How and in what directory do I go into to delete pm2 as I have two instances. Thnx everyone. Appreciate all help.

      posted in Troubleshooting
      S
      shazglass
    • RE: Two Instances in PM2

      @mykle1 ok. Don’t worry about screen saver. Sorted that out. But not sure how I did it. LOL!

      posted in Troubleshooting
      S
      shazglass
    • RE: Two Instances in PM2

      @mykle1 hi. So glad to hear you are doing well. Bit chilly here in SA but all good thnx.
      Ok so I went into the MagicMirror module in terminal as you suggested and ran npm start. It ran a whole bunch of lines then went into Mirror mode. Everything is there. Then to stop it I held control + q to stop. It stops it and puts me back to the terminal I started in. How for demo purposes would I go in and out of the mirror now? How do I get it back to easy access? And what did I do wrong? On install when it asked do u want to use pm2 I said Y. Then is new clean terminal I did pm2 startup. I copied and pasted the line required. I rebooted. Then typed nano mm.sh and added ~/MagicMirror
      DISPLAY=:0 npm start
      Saved then typed
      Chmod +x mm.sh
      Then typed pm2 save
      That’s where I get two instances one MagicMirror that won’t respond until ur way
      And the other is mm which I deleted with your thread instructions.
      So how do I get easy in and out of mirror mode? Thanx my life saver once again!

      Also. I can’t disable the screen saver with the new version. How do I stop it now?
      Thnx. Look forward to hearing from you😉

      posted in Troubleshooting
      S
      shazglass
    • RE: Two Instances in PM2

      @mykle1 hi again☺️. Hope u are well. I had this same problem. I ran your suggestions and now I only have MagicMirror and not mm. However. When I pm2 start MagicMirror. It shows it’s “online” yet fails to go onto mirror mode. Please help. I don’t want to start from scratch. Also how do I stop the screen going into sleep mode? Thnx @Mykle1 you have been my MM life support thus far!!!

      posted in Troubleshooting
      S
      shazglass
    • RE: I cant seem to insall 3rd party modules correctly, what am i doing wrong?

      I am NO expert and I could be 100% incorrect, but in your pic of your modules you dont have a return wrapper. you need this }, and you just have this }

      posted in Troubleshooting
      S
      shazglass
    • Rsp 3 model B. Questions

      I have a rsp3 model b. I am running MM with all default models except calendar. Plus QR-code, pi system stats and MMM-voice with Hello-Lucy. The voice side is so temperamental that sometimes it works and other times it hangs MM. who else is using a rap3 with voice? Please advise if the rsp is letting me down for power or there is something I have done wrong? A newbie here…😉

      posted in Hardware
      S
      shazglass
    • RE: MMM-voice wont register commands

      @strawberry-3-141 oh my gosh!! I feel so stupid!! Yes, the first MM my son did was with Hello Lucy, we thought we deleted it, clearly not! and the new MM we just put MMM-voice! if you saw the two of use shouting at the mic and with a couple swear words you would find this very funny! Sorry for taking up your time!!!

      posted in Troubleshooting
      S
      shazglass
    • RE: MMM-voice wont register commands

      @sharmstr hi there. Thnx for the link. That’s the same way I configured the second back up rsp. And I’m using an expensive snowball blue mic that’s for gaming. Just feel like somethings wrong. Why does one rsp recognize hide click and show clock. Yet the second build just recognizes hide modules show modules and nothing else. Something g somewhere is wrong. The original build was done 2 months ago and that one recognizes all the modules to hide and show yet hangs after the initial start up. The second one was done yesterday and only recognizes hide and show modules not individual like show clock. Just dumb founded right now.

      posted in Troubleshooting
      S
      shazglass
    • MMM-voice wont register commands

      hi all
      I have managed to get MMM-voice installed on my 2 different rsp model 3. (one is a backup for sons project)
      However rsp 1 is not recognising any commands except “hide modules” and “show modules”. It wont recognise “hide compliments, news,clock” etc. My other rsp has the exact same config and that ones MMM-voice is so unstable, it starts fine, recognises all commands, but just hangs the mirror after the initial bout of commands. To make it work again, I have to restart the rsp. Both are unstable…what am I doing wrong?

      Any and absolute all help will be GREATLY appreciated! Thank you

      posted in Troubleshooting
      S
      shazglass
    • RE: MMM-voice setup but MagicMirror wont display

      @Mykle1 hahahahah - will send him out now;)

      posted in Troubleshooting
      S
      shazglass
    • RE: MMM-voice setup but MagicMirror wont display

      @Mykle1 oops! See what happens when I type - thnk goodness my son is doing all the hard work! pologies or the incorrect name ;)

      And I do agree - I thought I had done something wrong and messed up my son’s voice commands. But again THANK YOU for he help - will tackle “hello-Lucy” with my son this weekend…fingers crossed!

      posted in Troubleshooting
      S
      shazglass
    • RE: MMM-voice setup but MagicMirror wont display

      @strawberry-3.141 I have to be dead honest, I dont know! I was asked to run a few commands in the terminal and when asked to start the MM…after a couple of commands later it worked. the best person to ask is Myle…I am to much of a newbie to understand…sorry.

      posted in Troubleshooting
      S
      shazglass
    • RE: MMM-voice setup but MagicMirror wont display

      @Mykle1
      I would just like to say a MASSIVE and HUGE THANK YOU to you for helping me fix the problem I was experiencing!! I PM’ed you and you have spend the last 10 minutes of your Sunday helping out a complete stranger who half the time didn’t know what you were asking me to do.
      So, you will be mentioned in my son’s science project that he has chosen to do the MM on.
      without you, there was no WOW factor! @Mykle1 - you are an ANGEL!!! thank you so much!!! x

      posted in Troubleshooting
      S
      shazglass
    • RE: MMM-voice setup but MagicMirror wont display

      @Mykle1 Thank you!! I hope I can help my son with this! Thank you for your help, I seriously appreciate your time.
      From a hot sunny South Africa;)

      posted in Troubleshooting
      S
      shazglass
    • RE: MMM-voice setup but MagicMirror wont display

      @strawberry-3.141

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
      	address: "localhost", // Address to listen on, can be:
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
      	                                                       // or add a specific IPv4 of 192.168.1.5 :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	language: "en",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "mmm-systemtemperature",
      			position: "top_center",	
      			classes: 'small dimmed', 		
      		},
      		{
          			module: "MMM-Lunartic",
          			position: "top_center",                   
          			config: { 
      					image: "animation",                    
      					distance: "km",                      
      					useHeader: true,                      
      					header: "The Moon",   
      					maxWidth: "300px",
      					animationSpeed: 3000,                   
          			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third",
      			config: {
      				compliments: {
      					anytime: [
      						"Hey there Tyler!"
      					],
      					morning: [
      						"Good morning, Tyler!",
      						"Enjoy your day!",
      						"How was your sleep Tyler?"
      					],
      					afternoon: [
      						"Hello, Tyler!",
      						"How was school Tyler?",
      						"Looking good today!"
      					],
      					evening: [
      						"Have a great evening!",
      						"You look nice!",
      						"Sleep well Tyler!"
      					]
      				}
      			}
      		},
      		{
      			module: "currentweather",
      			position: "top_right",
      			config: {
      				location: "Johannesburg,South_Africa",
      				locationID: "3362024",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "9cb2b560a465957274fa56860a202af5"
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "Johannesburg,South_Africa",
      				locationID: "3362024",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "c65138e0beb14c63bdf5f804f8816f74"
      			}
      		},
      		{
      			module: "MMM-CountDown",
      			position: "bottom_right",
      			config: {
      				event: "End of Term 2",
      				date: "2018-06-22",
      			}
      		},
      		{
      			module: "MMM-voice",
      			position: "bottom_bar",
      			config: {
      				microphone: 1,
      			debug: true
          			}
      		},
      		{
      			module: "MMM-QRCode",
      			position: "bottom_left",
      			config: {
      				text: " Scan to join Home Wifi",
      				colorDark  : "#fff",
      				colorLight : "#000",
              			imageSize  : 60,               
              			showRaw    : false,
      			}
      		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "EWN News",
      						url: "http://ewn.co.za/RSS%20Feeds/Latest%20News"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true
      			}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      

      This is my config/config.js I have no clue whats wrong, but things arent even in the same place as before? The QRCode is higher, the Countdown is higher, the Moon thing is squashed. I think I am killing my sons project. The MM shows the mic display but says ERROR then UNDEFINED.

      posted in Troubleshooting
      S
      shazglass
    • RE: MMM-voice setup but MagicMirror wont display

      @strawberry-3.141 Hi - thank you for your reply. Ok, so how do I fix the error log in the module? and where must i type debug: true? Sorry for being a pain - like I said, I have no idea, I am seriously just helping my son, who also just taught himself by reading all of this information.

      posted in Troubleshooting
      S
      shazglass
    • 1
    • 2
    • 1 / 2