Read the statement by Michael Teeuw here.
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 | }, -
@Madeline can you show the module config from config.js
-
@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 yourcameras
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!
-
-
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.
-
@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 editorif 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 -
@Madeline where are the camera definitions?
they have to be in this same module config setup -
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 notcameras
and the module only supports referencing the cameras by theirname
and Not their ids. Additionall there exists no flagshowStream
.The
cams
array contains objects which need at least thename
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"} ], }, ], }, },