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

    Posts

    Recent Best Controversial
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @iorifly

      Hi,

      had troubles opening that config.html myself.
      Try this:

      1/ Install the module using:

      sh -c "$(curl -s https://raw.githubusercontent.com/shbatm/MMM-RTSPStream/develop/scripts/installer.sh)"
      

      2/ Add the module to the config.js:

      vi ~/MagicMirror/config/config.js
      
      {
              module: 'MMM-RTSPStream',
      	disabled: false,
              position: 'middle_center',
              config: {
                  initialSetup: true,
              }
       }
      

      3/ Restart mm:

      pm2 restart mm
      

      4/ Start Chromium Web Browser on Pi (direct or using VNC).
      Use URL:

      http://localhost:8080/MMM-RTSPStream/config.html
      

      5/ Follow the instructions and save the config.

      6/ Add the module to the config.js (replace the initial one):

      vi ~/MagicMirror/config/config.js
      

      7/ Flush the logs:

      pm2 flush
      

      8/ Restart mm:

      pm2 restart mm
      

      9/ Check the logs:

      pm2 logs --lines 200
      

      10/ Look for this line (when there are no blocking errors):

      Starting stream stream1 using:
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @iorifly
      Okay, that makes sense.
      Has been a while since I set it up myself, but I will take a look.
      Cannot promise anything :-)

      What are you trying / hoping to stream?

      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @iorifly said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      'MMM-RTSPStream

      Hi,
      what do you expect to happen with this particular config?
      Did you execute all the steps from the “Using the module” paragraph in
      https://github.com/shbatm/MMM-RTSPStream
      ?
      I would suggest to read the instructions once more and then let us know the result.

      Success.

      posted in Utilities
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil said in new update/upgrade script, ready for testing:

      I decided to forget about alias altogether…

      Of course, your script, your call.
      Just keep it somewhere in the back of your head, should you stumble over it again in any way or form.
      As I minimum I learned something new, including using alias in a script at all.

      Thanks for the scripts and the help you provide to all users with fresh install and / or upgrade issues, including myself.

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil

      It is always difficult creating something and having it run flawlessly on many different systems with their many different settings, some exotic :-)

      One more thing I stumbled upon when googling:

      shopt -s expand_aliases
      

      Add this before the alias command, or just at the top of your script.
      Seems to work.

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil said in new update/upgrade script, ready for testing:

      I changed test script to do it your way… try it out

      pi@raspberrypi:~/MagicMirror $ curl -sL https://www.dropbox.com/s/80fevh39jme3iig/testlang.sh?dl=0 | bash
      On branch master
      Your branch is up to date with 'origin/master'.
      

      Sam. I think the issue is, that the command is git status and you alias LC_ALL=C git to the name git, not the command git.
      You cannot use the alias as a replacement for a part of your command, but I might be wrong.

      I think the only solution is to check for language en_US and then for every git command either use plain git or else by using LC_ALL=C.

      Or just use LC_ALL=C for every git call.

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil

      Sam,

      for some reason your testlang.sh script, using alias, is still responding in German, whereas the plain command responses in English:

      pi@raspberrypi:~/MagicMirror $ curl -sL https://www.dropbox.com/s/80fevh39jme3iig/testlang.sh?dl=0 | bash
      Auf Branch master
      Ihr Branch ist auf demselben Stand wie 'origin/master'.
      :
      :
      
      pi@raspberrypi:~/MagicMirror $ LC_ALL=C git status
      On branch master
      Your branch is up to date with 'origin/master'.
      :
      :
      
      pi@raspberrypi:~/MagicMirror $ git status
      Auf Branch master
      Ihr Branch ist auf demselben Stand wie 'origin/master'.
      :
      :
      

      Also interesting; using sh iso bash:

      pi@raspberrypi:~/MagicMirror $ curl -sL https://www.dropbox.com/s/80fevh39jme3iig/testlang.sh?dl=0 | sh
      On branch master
      Your branch is up to date with 'origin/master'.
      

      EDIT - recommendations / friendly advice:

      1/ Use #!/bin/bash in your script, not ~/bin/bash
      2/ Do not alias the git command, just plain LC_ALL=C git status

      I am on 2.10.0, but can try your testlang.sh script when needed.
      Will keep the language settings on German for a while.

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil said in new update/upgrade script, ready for testing:

      i remove the alias so, the output will not tell us anything…

      It will tell you if you get English as output, despite any language & variable settings.

      I temporary changed the locale to de_DE.utf8 for testing and git status gave me German output.
      Then I did LC_ALL=C git status and it replied in English.
      LC_MESSAGES=C git status continued to reply in German.

      Just FYI, perhaps it will help you, perhaps not :-)

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @spitzlbergerj

      Hi there, I do not want to interfere, as Sam is most capable, but can you give the output of this command?

      locale -a
      

      And tell if you see English or German output for those 2 commands?

      LC_ALL=C git status
      
      LC_MESSAGES=C git status
      
      posted in General Discussion
      evroomE
      evroom
    • RE: Update troubles. Again.

      @uatuba
      No need to apologize, but you were asked to supply the exact steps taken.
      A git pull followed by npm install in the MM homedir will most likely solve your electron error message.
      If not, the upgrade script from Sam will solve it or at least will provide with some info to check for.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Update troubles. Again.

      @uatuba

      The v2.20.0 announcement said
      https://forum.magicmirror.builders/topic/11899/v2-10-0

      Please update using the following command: git pull && npm install.
      

      Note that one has to be in the MagicMirror directory before issuing these commands (cd ~/MagicMirror).

      The README.md shows 2 commands, see:
      https://github.com/MichMich/MagicMirror/blob/master/README.md#updating

      Not a sign of just an single git pull anywhere.

      Anyway, I would suggest you to try the commands from the first post in this topic:
      https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing?page=1
      The only note would be that it is advised to stop MM (e.g. using pm2 stop mm).

      Success.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @ChrizZz said in new update/upgrade script, ready for testing:

      Now my Pi is downloading the electron v3.1.13 version with 3.01 kB/s.

      It looks like github has problems. I also cannot download other stuff from it with proper speed or without running into a timeout. Perhaps local or depends on your ISP region.

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil
      Sam, shall I update my ~/MagicMirror/package.json file and try again?

      Edit:

      Just did.
      It says I am on 2.10.0 already, even though it was interrupted on the electro download.

      How can I force the upgrade or make it believe 2.9.0 is still active?
      In the package.json file?

      Edit 2:
      Changed from 2.10.0 to 2.9.0 and now it is running.

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil

      ~version “Approximately equivalent to version”, will update you to the next patch version.

      ^version Will update you to the next minor version.

      version Will update you to the exact given version.

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil said in new update/upgrade script, ready for testing:

      weird… the package.json says

      Which exact package.json would that be?
      Perhaps mine tells to use 3.1.13?

      Although:

      pi@raspberrypi:~ $ grep electron ~/MagicMirror/package.json
        "main": "js/electron.js",
          "electron": "^3.0.13"
      
      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil
      Okay, just that you know that my current 2.8.0 to 2.10.0 upgrade is trying to get 3.1.13.

      > electron@3.1.13 postinstall /home/pi/MagicMirror/node_modules/electron
      > node install.js
      
      Downloading tmp-21342-0-electron-v3.1.13-linux-armv7l.zip
      [==========================>                  ] 61.8% of 45.65 MB (720.69 B/s)
      

      This was in the log for the 2.9.0 to 2.10.0 upgrade:

      > electron@3.1.13 postinstall /home/pi/MagicMirror/node_modules/electron
      > node install.js
      
      Downloading tmp-27972-0-electron-v3.1.13-linux-armv7l.zip
      Error: read ECONNRESET
      /home/pi/MagicMirror/node_modules/electron/install.js:49
        throw err
        ^
      
      Error: read ECONNRESET
          at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
      

      Do you catch and evaluate the output or only the exit value?

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil said in new update/upgrade script, ready for testing:

      yeh, the website with the file broke the download…

      Version 3.0.13 only takes 2 minutes.
      Strangely enough version 3.1.13 takes ages and causes a timeout / connection reset.
      Perhaps a local issue, although I have 57Mbps download.

      Is there a reason for 3.1.13 and not @latest ?
      Dependencies perhaps ?
      Not that I want or need it, just asking.

      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @surger13

      You can try adding the missing variables

      $ sudo cat /etc/default/locale
      :
      LANGUAGE=de_DE.UTF-8
      LC_ALL=de_DE.UTF-8
      :
      

      And / or do a reconfigure:

      $ sudo dpkg-reconfigure locales
      

      Make sure de_DE.UTF-8 UTF-8 is checked.
      Tab to OK
      Tab to OK

      $ sudo reboot
      
      posted in General Discussion
      evroomE
      evroom
    • RE: new update/upgrade script, ready for testing

      @sdetweil
      Sam, the 2.9.0 threw an error on the electron update, but then continued.
      I am apparently on 2.10.0 now, but probably I am not running the latest electron version.

      pi@raspberrypi:~ $ grep version ~/MagicMirror/package.json
        "version": "2.10.0",
      

      This was the part where the error occured:
      :

      :
      > electron@3.1.13 postinstall /home/pi/MagicMirror/node_modules/electron
      > node install.js
      
      Downloading tmp-27972-0-electron-v3.1.13-linux-armv7l.zip
      Error: read ECONNRESET
      /home/pi/MagicMirror/node_modules/electron/install.js:49
        throw err
        ^
      
      Error: read ECONNRESET
          at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
      :
      :
      

      What would be the correct command to update electron and from which directory?

      posted in General Discussion
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @kris1208 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      I redid an installation of the module but it is the same, the display is partial. Do you have another module to advise me?

      So you got rid of the errors in the pm2 log?

      pm2 flush
      pm2 restart mm
      pm2 logs --lines 200
      

      Do you see an entry like this?

      Starting stream stream1 with args:
      

      If yes, what are the arguments?

      Using vlc or omxplayer?

      ps -eaf | grep -v grep | egrep 'omxplayer|vlc'
      

      Still difficult to determine what you mean by partial.
      I think it is looking good.
      Perhaps you want to get rid of the white frame?

      vi ~/MagicMirror/css/custom.css
      

      Add:

      .MMM-RTSPStream .innerWrapper {
        border-style: none;
        //border: 1px solid red;
      }
      
      posted in Utilities
      evroomE
      evroom
    • 1
    • 2
    • 8
    • 9
    • 10
    • 11
    • 12
    • 24
    • 25
    • 10 / 25