MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-SynologySurveillance can get enumerate camera info, but on MM page just shows UNDEFINED

    Scheduled Pinned Locked Moved Unsolved Utilities
    7 Posts 4 Posters 520 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Madeline
      last edited by

      Re: MMM-SynologySurveillance

      Relatively new to MM, running latest software (just set up yesterday and today on Rasp Pi 4, full install. Have many third party modules working properly and love it. Having a problem with MMM-SynologySurveillance. Turned debug on and it seems to be able to log in and enumerate all the cameras, (see log below) and I even see it periodically query with the full url and the keys for each camera. No errors that I can see. however on the MM page it’s the only module that shows “UNDEFINED” no matter which zone I put it in. Ideas?

      [2025-07-13 14:45:32.371] [LOG] MMM-SynologySurveillanceNew infos of DiskStation with idx: 0
      0|mm | [2025-07-13 14:45:32.371] [LOG] {
      0|mm | “camIds”: [
      0|mm | 5,
      0|mm | 7,
      0|mm | 14,
      0|mm | 32,
      0|mm | 34,
      0|mm | 35
      0|mm | ],
      0|mm | “camNameIdMapping”: {
      0|mm | “Back Doors”: 5,
      0|mm | “Pool Cam”: 7,
      0|mm | “Indoor Kitchen”: 14,
      0|mm | “Side Door”: 32,
      0|mm | “Indoor TV Room”: 34,
      0|mm | “Indoor Living Room”: 35
      0|mm | },
      0|mm | “camIdNameMapping”: {
      0|mm | “5”: “Back Doors”,
      0|mm | “7”: “Pool Cam”,
      0|mm | “14”: “Indoor Kitchen”,
      0|mm | “32”: “Side Door”,
      0|mm | “34”: “Indoor TV Room”,
      0|mm | “35”: “Indoor Living Room”
      0|mm | },

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Madeline
        last edited by

        @Madeline can you show the module config from config.js

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sophiasteck
          last edited by

          @Madeline said in MMM-SynologySurveillance can get enumerate camera info, but on MM page just shows UNDEFINED:

          Relatively new to MM, running latest software (just set up yesterday and today on Rasp Pi 4, full install. Have many third party modules working properly and love it. Having a problem with MMM-SynologySurveillance. Turned debug on and it seems to be able to log in and enumerate all the cameras, (see log below) and I even see it periodically query with the full url and the keys for each camera. No errors that I can see. however on the MM page it’s the only module that shows “UNDEFINED” no matter which zone I put it in. Ideas?

          [2025-07-13 14:45:32.371] [LOG] MMM-SynologySurveillanceNew infos of DiskStation with idx: 0
          0|mm | [2025-07-13 14:45:32.371] [LOG] {
          0|mm | “camIds”: [
          0|mm | 5,
          0|mm | 7,
          0|mm | 14,
          0|mm | 32,
          0|mm | 34,
          0|mm | 35
          0|mm | ],
          0|mm | “camNameIdMapping”: {
          0|mm | “Back Doors”: 5,
          0|mm | “Pool Cam”: 7,
          0|mm | “Indoor Kitchen”: 14,
          0|mm | “Side Door”: 32,
          0|mm | “Indoor TV Room”: 34,
          0|mm | “Indoor Living Room”: 35
          0|mm | },
          0|mm | “camIdNameMapping”: {
          0|mm | “5”: “Back Doors”,
          0|mm | “7”: “Pool Cam”,
          0|mm | “14”: “Indoor Kitchen”,
          0|mm | “32”: “Side Door”,
          0|mm | “34”: “Indoor TV Room”,
          0|mm | “35”: “Indoor Living Room”
          0|mm | },

          It looks like your module is successfully connecting and fetching camera data (cam IDs and names are correct in the logs), so it’s likely a display configuration issue.

          • Check your config.js for the MMM-SynologySurveillance section — make sure your cameras array is correctly defined and matches the names or IDs returned.

          • Some people fix this by explicitly mapping like:
            cameras: [“Back Doors”, “Pool Cam”, “Indoor Kitchen”]
            or using the IDs:
            cameras: [5, 7, 14]

          • Also, confirm you have showStream or similar flags set properly.

          • Lastly, maybe increase your updateInterval to give it time to fetch images.

          If you can, post your MMM-SynologySurveillance config snippet here. Happy to take a look!

          1 Reply Last reply Reply Quote 0
          • M Offline
            Madeline
            last edited by sdetweil

            Well I have some progress, I now get three boxes on the MagicMirror page with the camera icon in them but no data.

            here’s my updated config.js snippet…

            {
                    module: "MMM-SynologySurveillance",
                    position: "middle_center",
                    config: {
                        debug: true,
                        ds: [
                              {
                                protocol: "https",
                                host: "x.x.x.x",
                                port: "xxxx",
                                user: "xxxx",
                                password: "xxxxxx",
                                cams: [ 5, 7, 14],
                               },                
                            ],
                         },
                    },
            

            Someone suggested updating the update interval, but I’ve tried several intervals mostly focusing on on minimumTimeBetweenRefreshs (which is spelled wrong, but that’s what’s in the docs on GitHub, I also tried spelling it correctly, no change. Still getting the periodic refreshes in the logs like I was before, so it’s still logging in and getting something.

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @Madeline
              last edited by sdetweil

              @Madeline I can’t help with the problem, but just a help thing…

              for all config and data, including any logs, please use the code wrapper in the message editor
              (I edited your post to add the wrapper)

              how to use

              copy the text you wish to post (like your module config section above)

              paste it into the message editor, blank line above and below
              then hit the code wrapper button </> above the editor

              if you want to add it manually its, 3 backtics, which is the key to the left of 1 on the US keyboard
              must start at the beginning of the line and be the only thing on the line
              (also supports highlighting the content, you can add the type immediately after the 1st code block marker
              here are some of the types
              text
              css
              js
              sh

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Madeline
                last edited by

                @Madeline where are the camera definitions?
                they have to be in this same module config setup

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                wishmaster270W 1 Reply Last reply Reply Quote 0
                • wishmaster270W Offline
                  wishmaster270 Module Developer @sdetweil
                  last edited by

                  @Madeline

                  Hi and sorry for my late replay.

                  First of all… Please take care that the answer of @sophiasteck contains some misleading information as the array is called cams and not cameras and the module only supports referencing the cameras by their name and Not their ids. Additionall there exists no flag showStream.

                  The cams array contains objects which need at least the name defined.
                  According to the logs you posted your config should look something like…

                  {
                          module: "MMM-SynologySurveillance",
                          position: "middle_center",
                          config: {
                              debug: true,
                              ds: [
                                    {
                                      protocol: "https",
                                      host: "x.x.x.x",
                                      port: "xxxx",
                                      user: "xxxx",
                                      password: "xxxxxx",
                                      cams: [
                                          { name: "Back Doors" }, 
                                          { name: "Pool Cam"},
                                          { name: "Indoor Kitchen"}
                                        ], 
                                     },                
                                  ],
                               },
                          },
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy