So you use the camera module i posted?
unfortunately i don’t use this module, so i am maybe the wrong person to ask…
But i took a look at the webcam.js of the module and in line 46/47 the width and hight is defined.
Maybe u should play around with that…
https://github.com/alexyak/camera/blob/master/webcam.js
nano MagicMirror/modules/camera/webcam.js
also check the camera.js at line 62/63…
nano MagicMirror/modules/camera/camera.js
I don’t know if it would be necessary to set the resolution of the cam within raspbian… ?
To start the cam with a button u can even use the MMM-Buttons module. This should work, if i understand the camera-module correct ^^
{
module: 'MMM-Buttons',
config: {
maxShortPressTime: 1000,
buttons: [
{
pin: 15,
name: "camera",
shortPress: {
notification: "SHOW_CAMERA",
}
},
longPress: {
notification: "HIDE_CAMERA",
},
},
]
}
},