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.
    evroomE Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 18
    • Posts 499
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

      @AxLed

      1. Just did. No (visible) changes.

      2. All my timed programs. Exactly like in your example.

      3.All my bouquets with the services in it. Like in your example.

      We have simular Dreamboxes, so simular output.
      I have 3 bouquets (Favourites (TV), Nederland (TV), Duitsland (TV))
      I use WebControl Dreambox (via the DM IP) to control the box.

      Unfortunate your tip with (& # 6 0 ; ) and (& # 6 2 ; ) is not working for me; it deletes everything between < and >:

      (<)


      (>)

      That is a major flaw of this forum, besides not really being iPad friendly.

      posted in Entertainment
      evroomE
      evroom
    • RE: [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

      @AxLed
      So I guess we need to get a list displayed first, before sending the DB-PLAY command, right ?
      I have set “apiBase: ‘http://192.168.178.28’,” in the config, but it only shows the channel that is currently running on my box.
      No error in pm2 logs, just the “Starting node helper for: MMM-Dreambox”.
      The URL http://192.168.178.28/web/getallservices gives a list in XML style.

      (the code button </> does not work here)

      This XML file does not appear to have any style information associated with it. The document tree is shown below.



      1:7:1:0:0:0:0:0:0:0:FROM BOUQUET “userbouquet.favourites.tv” ORDER BY bouquet
      etc, etc, etc.

      posted in Entertainment
      evroomE
      evroom
    • RE: [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

      @AxLed
      I get “Modell: dm7020hd - dezeit läuft: (RTL7 HD)”, meaning that I did something right, but nothing streams; just a black box.
      Little Typo there, but German is difficult :-)
      The bRef and sRef give output in the browser, so that seems okay.

      When I use port 80, the MM log shows:

      0|mm  | Whoops! There was an uncaught exception...
      0|mm  | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm  | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|mm  | TypeError: Cannot read property 'code' of null
      0|mm  |     at Request._callback (/home/pi/MagicMirror/modules/MMM-Dreambox/node_helper.js:110:36)
      0|mm  |     at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
      0|mm  |     at emitTwo (events.js:126:13)
      0|mm  |     at Request.emit (events.js:214:7)
      0|mm  |     at Request.<anonymous> (/home/pi/MagicMirror/node_modules/request/request.js:1161:10)
      0|mm  |     at emitOne (events.js:116:13)
      0|mm  |     at Request.emit (events.js:211:7)
      0|mm  |     at IncomingMessage.<anonymous> (/home/pi/MagicMirror/node_modules/request/request.js:1083:12)
      0|mm  |     at Object.onceWrapper (events.js:313:30)
      0|mm  |     at emitNone (events.js:111:20)
      

      Without port (URL only) I get:

      0|mm  | Starting node helper for: MMM-Dreambox
      

      But I do not see any stream nor a list of stations.

      pm2 list shows that no omxplayer stream is active.

      Can you tell me which parameters in the config are the most important and what I should see when I open those ‘personal’ URL’s in a browser ?

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

      @axled
      Interesting. Will give it a try.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-GoogleMapsTraffic

      Yes, the README tricked you a bit.

      Remove this:

      var config = {
      modules: [
      

      and the last 2 lines:

      }
      ]
      

      Verify with:

      cd ~/MagicMirror; npm run config:check
      
      posted in Transport
      evroomE
      evroom
    • RE: MMM-GoogleMapsTraffic

      Read this for learning purposes:

      https://forum.magicmirror.builders/topic/5399/how-to-check-your-config-for-errors-for-absolute-beginners

      If you post the config:check output and your MMM-GoogleMapsTraffic part inside config.js, I am sure someone can help you.

      Good luck.

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

      My MMM-RTSPStream module comes last.
      So the first modules may shift this module down and therefore my streaming window appears to be always located in the middle.
      In principle I want to have it in the middle, so I leave it there.
      I made sure that MMM-RTSPStream is the only one using “middle_center”.

      The module position will determine where the module window is being placed.
      Exactly where is determined by the main.css and perhaps changes in the custom.css.

      This is what the main.css does to “middle_center”, as example:

      .region.middle.center {
        width: 100%;
        text-align: center;
        -moz-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
      }
      

      For “middle_center” I changed my custom.css like this, for example:

      .region.middle.center {
        width: 60%;
      }
      

      This overrules the width in the main.css.
      [I have my monitor in portrait mode (900x1600) and have 2 columns of 60% + 40%]

      The moduleWidth and moduleHeight determine the size of your module and how other module will wrap around it.
      The moduleOffset will move the streaming window relative to the module window.

      The stream1 width and hight determine the streaming window size.
      When sized bigger than the module window, it will simply use this bigger size.
      It will even will cover other modules when too big, those modules will not wrap around it.

      This config works for me:

      {
        module: "MMM-RTSPStream",
        disabled: false,
        position: "middle_center",
        header: "Axis Security Monitor",
        config: {
          autoStart: true,
          rotateStreams: false,
          moduleWidth: 590,
          moduleHeight: 332,.
      //      moduleOffset: { left: 0, top: 0},
          localPlayer: 'omxplayer',
          remotePlayer: 'none',
          showSnapWhenPaused: false,
          remoteSnaps: false,
          stream1: {
            name: 'Axis_M2026_LE_MkII',
            url: 'rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360',
            width: 590,
            height: 332
          },
      

      With

      $ pm2 logs mm
      

      you can check the streaming window parameters:

      0|mm  | Starting stream stream1 with args: [
      0|mm  |     "--avdict",
      0|mm  |     "rtsp_transport:tcp",
      0|mm  |     "--win",
      0|mm  |     "-2, 656, 588, 988",
      0|mm  |     "--no-osd",
      0|mm  |     "--live",
      0|mm  |     "--video_queue",
      0|mm  |     "4",
      0|mm  |     "--fps",
      0|mm  |     "30",
      0|mm  |     "rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360"
      0|mm  | ]
      

      I have changed my custom config like this:

      .MMM-RTSPStream header {
          text-align: left;
      }
      .MMM-RTSPStream .innerWrapper {
        border-style: none;
        //border: 1px solid red;
      }
      

      I used solid red in order to see the position of the module window more clear.

      Be sure to use

      cd ~/MagicMirror; npm run config:check
      

      to check the config for errors before restarting mm, it will save you from obvious mistakes.

      Those are my findings, for me the settings work, perhaps it will help other users.

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

      You can move the streaming window using

      moduleOffset: { left: XX, top: YY },
      

      left: plus value shifts right, minus value shifts left
      top: plus value shifts down, minus value shifts up

      The width and height value in the stream config determines the streaming window size.

      The name moduleOffset is IMHO a bit misleading, as it does not move the module window.

      I still fail to see the connection between the module position (e.g. “top_left”, “top_right”, “bottom_left”, etc) and the position of the streaming window.
      The streaming window always appears in the middle.
      Except when I use “top_bar” or “bottom_bar”.

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

      I tried playing with absPosition, but it does not do what is expected.

      First of all:

      absPosition: This overrides the automatic window and moduleOffset settings.

      Second of all:

      Format: { top: XX, right: XX, bottom: XX, left: XX } where XX is the pixel position on the screen.

      This is not quite true.
      The omxplayer options say: --win ‘x1 y1 x2 y2’
      This would translate to: { top: XX, left: XX, right: XX, bottom: XX }
      In principle it is a rectangular with coordinates (x1,y1) - (x2,y2).

      But most important:

      Whatever I do, including the module position, the video window is ALWAYS in the center of the screen, for the FULL width of the screen.

      I will try playing with the other parameters a bit.

      posted in Utilities
      evroomE
      evroom
    • RE: calendar module: Today at HH:MM

      I see several examples where Today and Tommorow is displayed, but did not see the corresponding config.

      In my config I added / changed

      urgency: 2,
      getRelative: 6,
      

      Still no joy.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Strange issue

      @richland007
      Unless someone tells different, from my point of view you do not have any CPU or memory issues.
      In fact, it makes me wonder why I am seeing the electron.js processes so high in my output.

      I do not use MMM-watchdog and I do not know exactly what it is doing.
      Do not know what it is pinging, but something on your MM makes it time out and as a cause it restarts mm.
      The log only tells you that it failed, but not what exactly failed.
      Would be nice to know how you can send this ping manually, then you can observe the behavior yourself.

      I take it, that you have your monitor connected to your Pi.
      So MM not running as server only and the display not on a client.

      Anyway, good to hear that you potentially have found the issue and you learned a bit of Linux on the side.

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

      Looking at the css file of the module, I would try to edit the custom.css and add this:

      .MMM-RTSPStream .innerWrapper {
        border: 0;
      }
      

      Not tested.

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

      @Cr4z33
      As I do not use MMM-AssistantMk2 and/or MMM-Hotword, I cannot help you there.
      In principle the streaming should continue.
      As a matter of fact, when I stop MM, my cam streams still continue (are listed by pm2 as independent applications).
      As soon as there will be a MMM-HotAssistant, I might give it a try :-)

      posted in Utilities
      evroomE
      evroom
    • RE: Strange issue

      @richland007
      Concerning your top.txt, was that the output on the moment that MM was restarted ?
      I do not see obvious memory issues.
      Only that vncserver and python are CPU hungry, but within limits.
      And I do not see any electron processes.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Strange issue

      @richland007
      On pm2 and restarting I cannot say many.
      On using ctrl+q neither, as I only access my MM via ssh.

      Can you send the output of the following commands:

      $ uname -a
      $ swapon -s
      $ free -h
      $ cat /etc/dphys-swapfile | egrep -v ‘#|^$’
      $ sudo service dphys-swapfile status

      I just learned that swap is handled as a service.
      Being old-school, this is something new to me :-)

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Strange issue

      To disable MMM-WatchDog, edit the config.js file.
      Locate:

      module: 'MMM-WatchDog',
      

      Edit this like this:

      module: 'MMM-WatchDog',
      disabled: true,
      

      and restart MM:

      $ pm2 restart mm
      

      Use

      pm2 list
      

      to check if your application name actually is mm, or something else.

      Later you can enable it again by updating config.js like this:

      disabled: false,
      

      This works for all modules.
      When I test modules I normally leave the config lines and disable a module in this fashion.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Strange issue

      Okay, this calls for some more basics.

      Print the whole file:
      $ cat top.txt

      Load the file in an editor:
      $ nano top.txt
      $ vi top.txt

      I am old-school, so I use vi, but nano is more Word-like.

      To show the last 50 lines:
      $ tail -50 top.txt

      To show the first 50 lines:
      $ head -50 top.txt

      Where of course 50 is just an example.

      To show text that is appending:
      $ tail -f top.txt

      To show text that is appending and re-open the file when necessary (useful for rotating log files):
      $ tail -F top.txt

      On disabling a module see the next reply.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Can't find out what I did wrong in my config.js...

      Glad to help.
      So many errors after only one mistake (the most common to make; we all did it sometime I guess) :slightly_smiling_face:

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Can't find out what I did wrong in my config.js...

      Perhaps this is a start, provided I copy/pasted it right ?
      Although I think you are familiar with this and used other linters to find the ‘mistake’.

      pi@MagicPi:~/MagicMirror $ cd ~/MagicMirror; npm run config:check
      
      Checking file...  /home/pi/MagicMirror/config/config.js
      Line 213 col 42 Missing semicolon.
      Line 218 col 18 Missing semicolon.
      Line 222 col 5 Expected '}' to match '{' from line 190 and instead saw '{'.
      Line 223 col 7 Expected ']' to match '[' from line 28 and instead saw 'module'.
      Line 223 col 13 Expected '}' to match '{' from line 11 and instead saw ':'.
      Line 223 col 14 Missing semicolon.
      Line 224 col 7 Expected an assignment or function call and instead saw an expression.
      Line 224 col 15 Missing semicolon.
      Line 224 col 7 Unrecoverable syntax error. (94% scanned).
      

      I think you missed a } around line 220.

      The “Missing semicolon” messages normally are just nitpicking, but the "Expected ‘}’ to match ‘{’ " are usually true.

      posted in Troubleshooting
      evroomE
      evroom
    • calendar module: Today at HH:MM

      Hi,

      Searching did not lead to a solution.
      My current config shows date and time for all items (for example Nov 19th 12:00).
      I would like to see “Today at 12:00” for todays items.
      Is that posible ?

      module: "calendar",
      disabled: false,
      header: "Family Calendar",
      position: "top_left",
      maximumEntries: 12,
      maximumNumberOfDays: 365,
      fetchInterval: 300000,
      maxTitleLength: 35,
      getRelative: 0,
      timeFormat: "absolute",
      dateFormat: "MMM Do kk:mm",
      fullDayEventDateFormat: "MMM Do",
      showEnd: false,
      displaySymbol: false,
      
      posted in Troubleshooting
      evroomE
      evroom
    • 1 / 1