Tom-Hirschberger / MMM-SynologySurveillance

An MagicMirror² module which uses the Synology Webapi to get the MJPEG streams of surveillance cams and displays them
MIT License
5 stars 1 forks source link

How to add cams #15

Closed kourkoulos closed 1 year ago

kourkoulos commented 1 year ago

Hello,

how to you add more cameras in the code (for example Cam2):

cams: [ { alias: "Cam1", name: "NAME_IN_DS", } ]

How should the code look like for 2 or more camera? Thanx.

Tom-Hirschberger commented 1 year ago

Hi,

if both cams are connected to the same diskstation simply add a second object to the cams array:

cams: [
{
alias: "Cam1",
name: "NAME_IN_DS",
}, 
{
alias: "Cam2",
name: "NAME_OF_SECOND_Cam_IN_DS",
}
]
kourkoulos commented 1 year ago

Thank you! It workes perfect!

MagicMirror

Tom-Hirschberger commented 1 year ago

Great to see one more user that is happy