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

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

      Btw. Assuming you use omxplayer. Do not have experience with other players.

      I use omxplayer ‘standalone’, not within MM, but under control of pm2.
      When I restart my camera, the omxplayer is connecting to the stream automatically.
      No restart of the omxplayer stream needed.
      Just FYI.

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

      Hi,

      You can try adding this line to the config:

      omxRestart: 1,
      

      Automatically restart the OMX Stream every X hours.
      Default: 24 (hours).

      Btw. Assuming you use omxplayer. Do not have experience with other players.

      localPlayer: 'omxplayer',
      

      But getting rid of the root cause of connection dropping and image freezing after a few minutes seems better time invested.

      posted in Utilities
      evroomE
      evroom
    • RE: Portrait Mode

      See this thread:
      https://forum.magicmirror.builders/topic/9730/led-monitor-vertical-setup-how?_=1591998940597

      In your case I would try

      display_hdmi_rotate=1

      posted in General Discussion
      evroomE
      evroom
    • RE: Fresh Install

      @johnnyboy said in Fresh Install:

      Fingers x there is a Portrait fix going about, as cannot afford another build in Landscape mode

      Hi,

      Please read this thread:

      https://forum.magicmirror.builders/topic/9730/led-monitor-vertical-setup-how?_=1591998940597

      Perhaps it helps .

      posted in General Discussion
      evroomE
      evroom
    • MMM-GrafanaChart - scrolling issue

      Hi,

      I have position: 'fullscreen_above', but I do not see the complete dashboard.
      I can scroll the dashboard up and down, but I would like to see the complete dashboard on my MM display.

      Is this a Grafana issue, or a MMM-GrafanaChart issue ?

      Grafana on MM - 01

      With kind regards,

      @evroom

      See GitHub issue:
      https://github.com/SvenSommer/MMM-GrafanaChart/issues/8

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Can i download raspberrian to a thumb drive/external hard drive?

      @sdetweil said in Can i download raspberrian to a thumb drive/external hard drive?:

      on pi4 and odroid

      Sam, which Odroid do you use?
      And will a Pi 4 with 8Gb RAM be fast enough for MM these days?

      I use a Pi 3 and am planning to install Grafana and Influxdb on the same host.
      Perhaps asking for problems or warrants an HW upgrade.

      posted in General Discussion
      evroomE
      evroom
    • RE: Can i download raspberrian to a thumb drive/external hard drive?

      @retroflex
      I also did not leave both SD and USB in.
      I thought it will boot from SD first, especially since it is ready faster than the USB.
      But someone that does, will find out.

      Concerning Pi 4, I read that a beta fix is ready, but still under test. It appears to have some dependencies that could cause problems.
      But I do not yet use a Pi 4.
      What Sam does is the way to go at this moment.

      posted in General Discussion
      evroomE
      evroom
    • RE: Can i download raspberrian to a thumb drive/external hard drive?

      Here is what I know on this topic.

      OTP means One Time Programmable Memory.
      Meaning, you can set it only once, no return possible.

      vcgencmd otp_dump
      
      vcgencmd otp_dump | egrep '^17|^30|^66'
      
      vcgencmd otp_dump | grep ^17
      Use program_usb_boot_mode=1 to change.
      
      vcgencmd otp_dump | grep ^30
      Use max_usb_current=1 to change.
      
      vcgencmd otp_dump | grep ^66 
      Use program_usb_boot_timeout=1 to change.
      
      /boot/config.txt
      program_usb_boot_mode=1
      program_usb_boot_timeout=1
      max_usb_current=1
      
      Address 17 – bootmode register
      Bit 21 - Enable booting from SD card
      Bit 28 - Enable USB device booting
      Bit 29 - Enable USB host booting (ethernet and mass storage)
      
      Address 30 – revision code1 
      Bit 32 - Disable overvoltage
      
      Address 66 - advanced boot register
      Bit 24 - Extend USB HUB timeout parameter
      
      Green LED flashing due to absent SD card:
      
      dtoverlay=sdtweak,poll_once
      

      I would try this first:

      program_usb_boot_mode=1
      

      and if booting does not work:

      program_usb_boot_timeout=1
      

      So, first boot from SD card.
      Change config.txt to set program_usb_boot_mode=1.
      Boot again from SD card (sudo shutdown -r now).
      Halt system (sudo shutdown -h now)
      Remove SD card and place USB stick.
      Boot from USB stick.

      If boot fails, remove USB stick, place SD card.
      Boot from SD card.
      Change config.txt to set program_usb_boot_timeout =1.
      Boot again from SD card (sudo shutdown -r now).
      Hold system (sudo shutdown -h now)
      Remove SD card and place USB stick.
      Boot from USB stick.

      When it succeeds, remove the entries from config.txt again.

      program_usb_boot_mode=1
      program_usb_boot_timeout=1
      

      Be patient when rebooting from USB card.
      It takes a bit longer than with SD card.

      posted in General Discussion
      evroomE
      evroom
    • RE: Can i download raspberrian to a thumb drive/external hard drive?

      @sdetweil said in Can i download raspberrian to a thumb drive/external hard drive?:

      pis dont boot a usb stick.

      Actual they can, at least Pi 3 Model B and Pi 3 Model B Plus can.
      I replaced my SD-cards with USB sticks recently.

      @mynameisntavailable
      Send this info to determine it;

      $ cat /sys/firmware/devicetree/base/model;echo
      $ vcgencmd otp_dump | egrep '^17|^30|^66'
      

      You will need to change the config.txt once and reboot (using the Pi that runs on the SD-Card):

      /boot/config.txt
      program_usb_boot_mode=1
      program_usb_boot_timeout=1
      

      With these settings you can replace the SD-Card by a USB-Stick.

      17:3020000a
      30:00a02082
      66:01009daa
      

      There are people out there that actually have an external SSD drive running.
      The only thing that can be tricky I the power-supply as the USB Stick may draw too much current.
      I am using those little USB sticks (USB flash drive).

      posted in General Discussion
      evroomE
      evroom
    • RE: Calendar aggregation by date rather than quantity

      @jerbookins

      Hi,

      I suppose that when you play around with those 2 parameters, you will get want you want:

      maximumNumberOfDays: 7,
      maximumEntries: 100,
      

      Where maximumEntries is limited to the range 0 to 100, so if you are a very busy person …

      Good luck.

      posted in Requests
      evroomE
      evroom
    • RE: Need help with sdetweil script

      @sdetweil said in Need help with sdetweil script:

      so, as I have watched people struggle to reconstruct their mirrors after an update, I wanted to make it easier

      Hesitated a little bit to submit this reply, but I want to make use of this thread by complimenting Sam on his script.
      Also for persons that do not really struggle setting up MagicMirror, it is a very useful script. A real time-saver.
      Today I have set-up 2 MagicMirrors from scratch (went from using SD cards to using USB sticks) and it worked like a charm. Had them running again in no time.
      So, thanks Sam, for a job well done !

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Config Error

      @BKeyport said in Config Error:

      @evroom “convention” isn’t the right word here, perhaps. I’m almost leaning to “peer pressure” perhaps? Doing it because it seems everyone else is?

      I had to read the beginning of the thread first before starting ‘name-calling’ :-) And perhaps had to address it to the thread starter @PHAGE-GOV, for learning purposes
      Some people treat the config.js file as code and think that they are actually coding. In principle a JS file is a text file containing JavaScript code, so it is a bit misleading, although it contains “var config =”, which suggests it being a part of some code.
      IMHO it would be better to use the json extension, so config.json, as it is based on JSON and stores data structures and objects in this format.

      One should’t care less how coders use variables in their programs (as Sam said: “make names meaningful, use case where appropriate”, especially if you want to keep it maintainable or want to hand it over to someone else), but in case of config.js one should make at least a bit of an effort to keep it simple and understandable. Again: IMHO.

      In my book this is for example a no-go:

      {
      location: "New York",
      locationID: "", 
      appid: "YOUR_OPENWEATHER_API_KEY"
      }
      

      This is just waiting for an accident to happen.
      What is wrong using locationName, locationId and apiId ?
      Or location, location_id and api_id ?
      Probably nitpicking from my side, but it hurts my eyes :-)

      I would say “make names meaningful, use case where appropriate and keep it consistent”.

      I also know it it all voluntary work and it does not cost a dime (unless you donate something to the author, like I did) and therefore one is not really allowed to complain :-) I hope some constructive criticism is allowed though. Do not want to offend anyone.

      That being said, just enjoy your MagicMirror. :-)

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Config Error

      @sdetweil said in Config Error:

      i know what they are and know what good ones produce…

      Cannot tell from your reply, if you were offended by my post, but please don’t be.
      First of all you are the most appreciated and by far the most active member on the Forum and if it weren’t for you, less people would succeed with their installs and less people would be using MM.
      But you did say “i didn’t know there were any conventions!”, hence my reply, a bit naïve perhaps.
      Probably you meant so say it within the context of programming MM modules.
      I had better addressed the link to @BKeyport so that he could take notice, but in principle it was meant for those interested (and do not know that in MM “Welcome_message is not the same as welcome_message”).

      Have a nice day,

      @evroom

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Config Error

      @sdetweil said in Config Error:

      i didn’t know there were any conventions! least I don’t follow anything written anywhere

      Naming conventions are not must, but it is used to make code more readable and understandable.
      A quick google came up with this useful page:

      https://github.com/ktaranov/naming-convention/blob/master/JavaScript Name and Coding Conventions.md

      posted in Troubleshooting
      evroomE
      evroom
    • MMM-CalenderExt2: fullday events not displayed on day of event

      Hi,

      I recently started using MMM-CalenderExt2 due to issues with the default calendar, but with this module I have the following problem:

      Full day events are not displayed on the day of the event.

      I use Google Calendar to enter the event (full day event for today):

      BEGIN:VEVENT
      DTSTART;VALUE=DATE:20200502
      DTEND;VALUE=DATE:20200503
      DTSTAMP:20200502T102951Z
      UID:329p3d2e5fccimqrsfjl6c6g9e@google.com
      CREATED:20200502T102356Z
      DESCRIPTION:
      LAST-MODIFIED:20200502T102356Z
      LOCATION:
      SEQUENCE:0
      STATUS:CONFIRMED
      SUMMARY:ALLDAYTEST
      TRANSP:TRANSPARENT
      END:VEVENT
      

      On the MM I do not see the event.
      When I enter a full day event for tomorrow, I see the event scheduled for tomorrow.
      Then after the first refresh of the events on the day of the event (approx. at 00:05 hrs), the event is removed from the list of events for that day.

      Very annoying.
      Any ideas how to get this fixed ??
      Is this a parsing issue, or a module issue ??

      Part of config.js:

      views: [
            {
              name: "Familie Calendar",
              mode: "upcoming",
              position: "top_left",
              calendars: ["Familie Calendar"],
              slotCount: 1,
              slotTitle: "Family Calendar",
              slotMaxHeight: "16px",
              filterPassedEvent: true,
              maxItems: 9,
              maxDays: 60,
              locale: "de-DE",
              hideOverflow: false,
              dateFormat: "ddd Do MMM",
              dateTimeFormat: {
                      sameDay: "[Today] HH:mm",
                      nextDay: "[Tomorrow] HH:mm",
                      nextWeek: "dddd HH:mm",
                      lastDay: "[Yesterday] HH:mm",
                      lastWeek: "[Last] ddd HH:mm",
                      sameElse: "ddd Do Mo HH:mm",
                      },
              timeFormat: "HH:mm",
              relativeFormat: {
                      passed: "ended %ENDFROMNOW%",
                      current: "ends %ENDFROMNOW%",
                      future: "starts %STARTFROMNOW% (%DURATION%)",
                      },
              useEventTimeRelative: false,
              transform: (event)=>{
                if (event.title.search("Verjaardag") > -1) {
                  event.icon = "fxemoji-partypopper" // Set icon of that event to "fxemoji-partypopper"
                }
                if (event.title.search("RIP") > -1) {
                  event.icon = "fxemoji-whitelatincross"
                }
                return event // Return that event.
              },
            },
          ],
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

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

      but the video frame stays in the portriat oreintation

      In

      /home/pi/MagicMirror/css/custom.css
      

      add

      .MMM-RTSPStream .innerWrapper {
        border-style: none;
      }
      

      to remove the frame altogether.
      Or find a way using css to rotate the frame.

      I tried the positions top_left, top_right, bottom_left and bottom_right.
      All work.
      It can be that your other modules are pushing it down.
      Try to have the module positioned a bit earlier in your config.

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

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

      Can you explain this behavior?

      No, I cannot explain this, but I noticed it too.
      No video over the VNC connection.

      When I google, I see this recommendation:

      Open VNC Server>Options>Troubleshooting. Then make sure "enable experimental direct capture mode is checked.

      You might give it a try.

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

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

      Are there any errors in config.js?

      This is my config that works.
      I think the only real difference is the omxRestart entry.

      {
        module: "MMM-RTSPStream",
        disabled: false,
        position: "bottom_right",
        header: "MMM-RTSPStream Test",
        config: {
          autoStart: true,
          omxRestart: 1,
          rotateStreams: false,
          moduleWidth: "352px", // Width in px of the module.
          moduleHeight: "240px", // Height in px of the module.
          localPlayer: 'omxplayer',
          remotePlayer: 'none',
          showSnapWhenPaused: false,
          remoteSnaps: false,
          stream1: {
            name: 'BigBuckBunny',
            url: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov',
            frameRate: "25",
            protocol: "tcp",
            width: "352px", // The width in px of the stream.
            height: "240px", // The height in px of the stream.
          }
        }
      },
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

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

      I don’t understand what’s missing…

      It does look good.

      In principle, the line from the pm2 log

      [19:45:46.329] [LOG]    Starting stream stream1 using: omxplayer --avdict rtsp_transport:tcp --win 786,238,1138,480 --live --video_queue 4 --fps 30 --no-osd rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
      

      should work as standalone.
      If it does not play standalone, so from the command line, then it will not work in MMM-RTSPStream.

      I would disable the module and make sure nothing is running anymore (no omxplayer stuff).

      module: "MMM-RTSPStream",
      disabled: true,
      
      pm2 restart mm
      pm2 status
      

      Make sure ‘omx_stream1’ is not present.
      Stop it when necessary

      pm2 stop omx_stream1
      pm2 delete omx_stream1
      
      ps -eaf | grep -v grep | grep omxplayer
      

      Kill any omxplayer process (kill -9 ).

      Then run omxplayer from command line:

      omxplayer --avdict rtsp_transport:tcp --win 786,238,1138,480 --live --video_queue 4 --fps 30 --no-osd rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

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

      the link works in VLC but still doesn’t work in MM

      Hi,

      What does this say ?

      pm2 logs --lines 100
      

      The part where you should see

      0|MagicMirror  | Starting stream stream1 with args: [
      

      And

      pm2 status
      

      should show

      omx_stream1
      

      And can you try it from the command line ?

      omxplayer --genlog --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win "0 0 354 240" rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
      
      posted in Utilities
      evroomE
      evroom
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 24
    • 25
    • 7 / 25