{"repo":"fvdm/nodejs-foscam","free":true,"listed":false,"github":"https://github.com/fvdm/nodejs-foscam","clone":"git clone https://github.com/fvdm/nodejs-foscam.git","description":"Remote control, view and config a Foscam or compatible IP camera","language":"JavaScript","stars":125,"topics":["camera","foscam","nodejs","tenvis","api-client","camera-settings","unlicense"],"license":"Unlicense","category":"api-integrations-sdks","readme_excerpt":"foscam Remote control, view and config a Foscam/Tenvis IP camera. All included methods are based on Foscam's (fragmented) API documentation. Some features may not be supported by non-pan/tilt, older cameras or old firmware. So make sure you keep a backup of your camera settings, just in case. Requirements - Node.js 18 or newer (uses native fetch() ) Usage All methods support both Promises and callbacks . When no callback is provided, a Promise is returned. Promise style (async/await) Callback style Installation Stable: npm install foscam Develop: npm install fvdm/nodejs-foscam#develop Methods Every method takes an optional callback function as last parameter. When no callback is provided, the method returns a Promise . NOTE: Some methods require a certain access-level, i.e. admins can do everything, but a visitor can only view. Basic setup ( properties, [callback] ) In order to connect to the camera you first need to provide its access details. You can either do this by setting the properties below directly in cam.settings , but better is to use cam.setup() . When the callback function is provided, setup() will attempt to connect to the camera and retrieve its status, returned as object to the callback. When it fails the callback gets false . name type default description -------- -------- --------------- ---------------------- host string 192.168.1.239 Camera IP or hostname port number 81 Camera port number user string admin Username pass string Password timeout number 5000 ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fvdm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fvdm/nodejs-foscam/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}