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

    Posts

    Recent Best Controversial
    • RE: Create another PM2 Script?

      @Mods

      Appreciate I have posted this twice in 2 seperate posts - but other one is FAO the Developer in his original post of 1 year ago, and to the poster who replied with his fix.

      This post goes to anyone here who can help me with making and executing a script, going by the example given for this module.

      posted in Troubleshooting
      D
      Damian
    • RE: Create another PM2 Script?

      Okay, so I opened up my directory… created a new file in /home/pi and named it sonos.sh… going by the jumbled up way things have been written in the example above, I have tried every combination to try and make sense of what it is saying to type into terminal

      cd ~ sonos.sh file contents
      sonos.sh

      I will no doubt be going around in circles here trying to decypher the instructions, so can I ask anyone to please decypher this for me and tell me what and where to enter these? do I manually input them into the sonos.sh file? do I get terminal to enter them?
      I a
      l already set up PM2 over a year ago to autostart MM, and sure it was never as hard as this?

      this is what I get when trying

      pi@raspi:~ $ cd ~sonos.sh
      bash: cd: ~sonos.sh: No such file or directory
      pi@raspi:~ $ sonos.sh
      bash: sonos.sh: command not found
      pi@raspi:~ $ sonos.sh file contents:
      bash: sonos.sh: command not found
      pi@raspi:~ $ cd ~/node-sonos-http-api
      pi@raspi:~/node-sonos-http-api $ DISPLAY=:0 npm start
      
      > sonos-http-api@1.6.0 start /home/pi/node-sonos-http-api
      > node server.js
      
      2018-04-16T11:21:47.702Z INFO Could not find file /home/pi/node-sonos-http-api/settings.json
      2018-04-16T11:21:48.670Z INFO Presets loaded: { example: 
         { players: 
            [ { roomName: 'Bathroom', volume: 10 },
              { roomName: 'Kitchen', volume: 10 },
              { roomName: 'Office', volume: 10 },
              { roomName: 'Bedroom', volume: 10 },
              { roomName: 'TV Room', volume: 15 } ],
           playMode: { shuffle: true, repeat: 'all', crossfade: false },
           pauseOthers: false } }
      2018-04-16T11:21:54.317Z ERROR Port 5005 seems to be in use already. Make sure the sonos-http-api isn't 
          already running, or that no other server uses that port. You can specify an alternative http port 
          with property "port" in settings.json
      
      npm ERR! Linux 4.9.35-v7+
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
      npm ERR! node v6.14.1
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! sonos-http-api@1.6.0 start: `node server.js`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the sonos-http-api@1.6.0 start script 'node server.js'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the sonos-http-api package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     node server.js
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs sonos-http-api
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls sonos-http-api
      npm ERR! There is likely additional logging output above.
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/node-sonos-http-api/npm-debug.log
      pi@papaspi:~/node-sonos-http-api $ pm2 start sonos.sh
      [PM2][ERROR] script not found : /home/pi/node-sonos-http-api/sonos.sh
      script not found : /home/pi/node-sonos-http-api/sonos.sh
      ┌──────┬──────┬────────┬───┬─────┬────────┐
      │ Name │ mode │ status │ ↺ │ cpu │ memory │
      ├──────┼──────┼────────┼───┼─────┼────────┤
      │ mm   │ fork │ online │ 0 │ 0%  │ 0 B    │
      └──────┴──────┴────────┴───┴─────┴────────┘
       Use `pm2 show ` to get more details about an app
      pi@raspi:~/node-sonos-http-api $
      posted in Troubleshooting
      D
      Damian
    • RE: MMM-Sonos - To show what your SONOS is playing.

      @Damian said in MMM-Sonos - To show what your SONOS is playing.:

      create another pm2 script named sonos.sh in ~ directory
      cd ~
      sonos.sh file contents:
      cd ~/node-sonos-http-api
      DISPLAY=:0 npm start
      
      pm2 start sonos.sh
      pm2 start mm
      pm2 save
      

      Okay, so I opened up my directory… created a new file in /home/pi and named it sonos.sh… going by the jumbled up way things have been written in the example above, I have tried every combination to try and make sense of what it is saying to type into terminal

      cd ~ sonos.sh file contents
      sonos.sh

      I will no doubt be going around in circles here trying to decypher the instructions, so can I ask anyone to please decypher this for me and tell me what and where to enter these? do I manually input them into the sonos.sh file? do I get terminal to enter them?
      I a
      l already set up PM2 over a year ago to autostart MM, and sure it was never as hard as this?

      this is what I get when trying

      pi@raspi:~ $ cd ~sonos.sh
      bash: cd: ~sonos.sh: No such file or directory
      pi@raspi:~ $ sonos.sh
      bash: sonos.sh: command not found
      pi@raspi:~ $ sonos.sh file contents:
      bash: sonos.sh: command not found
      pi@raspi:~ $ cd ~/node-sonos-http-api
      pi@raspi:~/node-sonos-http-api $ DISPLAY=:0 npm start
      
      > sonos-http-api@1.6.0 start /home/pi/node-sonos-http-api
      > node server.js
      
      2018-04-16T11:21:47.702Z INFO Could not find file /home/pi/node-sonos-http-api/settings.json
      2018-04-16T11:21:48.670Z INFO Presets loaded: { example: 
         { players: 
            [ { roomName: 'Bathroom', volume: 10 },
              { roomName: 'Kitchen', volume: 10 },
              { roomName: 'Office', volume: 10 },
              { roomName: 'Bedroom', volume: 10 },
              { roomName: 'TV Room', volume: 15 } ],
           playMode: { shuffle: true, repeat: 'all', crossfade: false },
           pauseOthers: false } }
      2018-04-16T11:21:54.317Z ERROR Port 5005 seems to be in use already. Make sure the sonos-http-api isn't 
          already running, or that no other server uses that port. You can specify an alternative http port 
          with property "port" in settings.json
      
      npm ERR! Linux 4.9.35-v7+
      npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
      npm ERR! node v6.14.1
      npm ERR! npm  v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! sonos-http-api@1.6.0 start: `node server.js`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the sonos-http-api@1.6.0 start script 'node server.js'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the sonos-http-api package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     node server.js
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs sonos-http-api
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls sonos-http-api
      npm ERR! There is likely additional logging output above.
      
      npm ERR! Please include the following file with any support request:
      npm ERR!     /home/pi/node-sonos-http-api/npm-debug.log
      pi@papaspi:~/node-sonos-http-api $ pm2 start sonos.sh
      [PM2][ERROR] script not found : /home/pi/node-sonos-http-api/sonos.sh
      script not found : /home/pi/node-sonos-http-api/sonos.sh
      ┌──────┬──────┬────────┬───┬─────┬────────┐
      │ Name │ mode │ status │ ↺ │ cpu │ memory │
      ├──────┼──────┼────────┼───┼─────┼────────┤
      │ mm   │ fork │ online │ 0 │ 0%  │ 0 B    │
      └──────┴──────┴────────┴───┴─────┴────────┘
       Use `pm2 show ` to get more details about an app
      pi@raspi:~/node-sonos-http-api $ 
      
      posted in Entertainment
      D
      Damian
    • RE: MMM-Sonos - To show what your SONOS is playing.

      @cohron

      @Snille

      Hello,

      Can you please explian how and where to create the sonos.sh file?
      And how to then add the rest into that file?

      I’m having trouble understanding what you mean by placing a script in ~ directory…
      And the next part cd~sonos.sh file contents:

      Thanks

      create another pm2 script named sonos.sh in ~ directory
      cd ~
      sonos.sh file contents:
      cd ~/node-sonos-http-api
      DISPLAY=:0 npm start
      
      pm2 start sonos.sh
      pm2 start mm
      pm2 save
      
      posted in Entertainment
      D
      Damian
    • Create another PM2 Script?

      Hello, can someone please help me figuire out where to place a PM2 Script please?

      I am following the guide to put on MMM-Sonos, and cannot fathom out the directions to create another PM2 Script, can someone tell me what the instructions mean? Is this a command line? as I cannot find a directory named sonos.sh file contents

      create another pm2 script named sonos.sh in ~ directory
      cd ~
      sonos.sh file contents:
      cd ~/node-sonos-http-api
      DISPLAY=:0 npm start
      
      pm2 start sonos.sh
      pm2 start mm
      pm2 save
      
      

      the first part I have done, and see the web browser with sonos related text, so indeed, that hard bit has been done… just lost in the wording above as to what I should do, and where to do it?

      pi@magicpi:~ $ git clone https://github.com/jishi/node-sonos-http-api.git
      
      cd node-sonos-http-api
      npm install --production
      npm start
      
      verify, open a browser, point to your MM’s IP like so:
      http://192.168.0.207:5005/zones
      you should see a page full of sonos related text, if so the hard part is done…
      

      Thank you

      posted in Troubleshooting
      D
      Damian
    • RE: Hello-Lucy

      @Mykle1 said in Hello-Lucy:

      Damn CBD and his spectacular weather module. ;-)

      https://www.youtube.com/watch?v=_cW4lW_KiIw

      I may just have to just use CBD’s one now as my old faithfull WuderGround is acting weird :-(

      posted in Fun & Games
      D
      Damian
    • Weird MMM-Wunderground numbers

      Hi
      Updated MM … even did a Git pull, but these weird numbers still show? Is this needing me to perhaps allocate another location near me ( if present one is having issues) or something else I need to investigate?

      Been working perfect for over a year.

      0_1523723685700_IMG-20180414-WA0005.jpg

      posted in Troubleshooting
      D
      Damian
    • RE: Any MMM-Hive Users that can help, please?

      @mongo116

      Ahhhh… thanks.
      I thought these referred to the inside temp? I will have another look at the config and see, but off hand I recall only 1 set? Those I thought were for inside… but will look more closely 2mor and play about.

      So yeah, very happy to have it actually working now, and that the link I gave you helped finding that BG changed things… and other MMM-Hive users on here will also appreciate the work you done to fix it.

      Thanks again…

      posted in Troubleshooting
      D
      Damian
    • RE: Any MMM-Hive Users that can help, please?

      @mongo116

      Thanks so much… I deleted then re-installed, and it works :-) Top man!

      Now… how do I set lowest Temp for outside so anything higher than my setting will color the thermoeter icon like your example?

      I know the inside will show red as its heating, then go grey when target reached, but unsure how to adjust outside the same way?

      posted in Troubleshooting
      D
      Damian
    • RE: Any MMM-Hive Users that can help, please?

      @mongo116

      Just on the off chance I am missing the blatant obvious… can you please paste your full settings here that you made on yours? Obviously not your personal ones :-)

      And your config to see what you put in there. … it’s always the smallest things that trip us up, so want to check everything 100% before I just give up on it.

      posted in Troubleshooting
      D
      Damian
    • 1 / 1