planetbeing / homebridge-foscam-ng Goto Github PK
View Code? Open in Web Editor NEWFoscam plugin for homebridge.
Foscam plugin for homebridge.
When attempting to open the feed in its own window, the following error appears in homebridge.err
Wed, 28 Sep 2016 23:12:56 GMT rtsp-stream start-line sent SETUP rtsp://192.168.$
Wed, 28 Sep 2016 23:12:56 GMT rtsp-stream headers sent { Transport: 'RTP/AVP;un$
CSeq: 3,
Authorization: 'Digest username="admin", realm="Foscam IPCam Living Video", n$
Wed, 28 Sep 2016 23:12:57 GMT rtsp-stream decoding chunk 'RTSP/1.0 200 OK\r\nCS$
Wed, 28 Sep 2016 23:12:57 GMT rtsp-stream start of header
Wed, 28 Sep 2016 23:12:57 GMT rtsp-stream end of header
/usr/local/lib/node_modules/homebridge-foscam-ng/lib/RTSPClient.js:206
if(addresses.length == 0) {
^
TypeError: Cannot read property 'length' of undefined
/usr/local/lib/node_modules/homebridge-foscam-ng/lib/RTSPClient.js:206
if(addresses.length == 0) { at /usr/local/lib/node_modules/homeb$
at QueryReqWrap.asyncCallback as callback
The error also refers to an IP Address that does not refer to any device on my network.
Live video feed is not working 10.2
Dec 30 22:47:45 raspberrypi homebridge[6304]: [12/30/2016, 10:47:45 PM] Loaded plugin: homebridge-camera-ffmpeg
Dec 30 22:47:45 raspberrypi homebridge[6304]: [12/30/2016, 10:47:45 PM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
Dec 30 22:47:45 raspberrypi homebridge[6304]: [12/30/2016, 10:47:45 PM] ---
Dec 30 22:47:50 raspberrypi homebridge[6304]: [12/30/2016, 10:47:50 PM] Loaded plugin: homebridge-foscam-ng
Dec 30 22:47:50 raspberrypi homebridge[6304]: [12/30/2016, 10:47:50 PM] Registering platform 'homebridge-foscam-ng.Foscam-NG'
Dec 30 22:47:50 raspberrypi homebridge[6304]: [12/30/2016, 10:47:50 PM] ---
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] Loaded plugin: homebridge-fritz
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] Registering platform 'homebridge-fritz.Fritz!Box'
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] ---
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] Loaded plugin: homebridge-yeelight
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] Registering platform 'homebridge-yeelight.yeelight'
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] ---
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] Loaded config.json with 0 accessories and 4 platforms.
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] ---
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] Loading 4 platforms...
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] [My FritzBox] Initializing Fritz!Box platform...
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] [Yeelight] Initializing yeelight platform...
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] [Yeelight] YeePlatform Init
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] Initializing Camera-ffmpeg platform...
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] Initializing Foscam-NG platform...
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] [Yeelight] DidFinishLaunching
Dec 30 22:47:54 raspberrypi homebridge[6304]: [12/30/2016, 10:47:54 PM] FoscamAccessory configured with ageorgios foscam 88 3
Dec 30 22:47:55 raspberrypi homebridge[6304]: add to multicast group
Dec 30 22:47:55 raspberrypi homebridge[6304]: listen on 0.0.0.0
Dec 30 22:47:55 raspberrypi homebridge[6304]: [12/30/2016, 10:47:55 PM] BabyCam is running on port 40242.
Dec 30 22:47:55 raspberrypi homebridge[6304]: [12/30/2016, 10:47:55 PM] BabyCam is running on port 36375.
Dec 30 22:47:55 raspberrypi homebridge[6304]: no did or loc found!
Dec 30 22:47:55 raspberrypi homebridge[6304]: [12/30/2016, 10:47:55 PM] [Yeelight] cached accessory: 0x0000000002be13fe
Dec 30 22:47:56 raspberrypi homebridge[6304]: [12/30/2016, 10:47:56 PM] FoscamAccessory: Date Synchronization { result: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: timeSource: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: ntpServer: 'time.nist.gov',
Dec 30 22:47:56 raspberrypi homebridge[6304]: dateFormat: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: timeFormat: 1,
Dec 30 22:47:56 raspberrypi homebridge[6304]: timeZone: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: isDst: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: dst: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: year: 2016,
Dec 30 22:47:56 raspberrypi homebridge[6304]: mon: 12,
Dec 30 22:47:56 raspberrypi homebridge[6304]: day: 30,
Dec 30 22:47:56 raspberrypi homebridge[6304]: hour: 20,
Dec 30 22:47:56 raspberrypi homebridge[6304]: minute: 47,
Dec 30 22:47:56 raspberrypi homebridge[6304]: sec: 52 } { timeSource: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: ntpServer: 'time.nist.gov',
Dec 30 22:47:56 raspberrypi homebridge[6304]: dateFormat: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: timeFormat: 1,
Dec 30 22:47:56 raspberrypi homebridge[6304]: timeZone: -7200,
Dec 30 22:47:56 raspberrypi homebridge[6304]: isDst: 1,
Dec 30 22:47:56 raspberrypi homebridge[6304]: dst: 30,
Dec 30 22:47:56 raspberrypi homebridge[6304]: year: 2016,
Dec 30 22:47:56 raspberrypi homebridge[6304]: month: 11,
Dec 30 22:47:56 raspberrypi homebridge[6304]: day: 30,
Dec 30 22:47:56 raspberrypi homebridge[6304]: hour: 22,
Dec 30 22:47:56 raspberrypi homebridge[6304]: min: 47,
Dec 30 22:47:56 raspberrypi homebridge[6304]: sec: 55 }
Dec 30 22:47:56 raspberrypi homebridge[6304]: connect ok!
Dec 30 22:47:56 raspberrypi homebridge[6304]: [12/30/2016, 10:47:56 PM] [Yeelight] accesseory reachable
Dec 30 22:47:56 raspberrypi homebridge[6304]: [12/30/2016, 10:47:56 PM] [Yeelight] dev connected 0x0000000002be13fe true
Dec 30 22:47:56 raspberrypi homebridge[6304]: [12/30/2016, 10:47:56 PM] Foscam Camera Info: { result: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: productName: 'FosBaby+P1',
Dec 30 22:47:56 raspberrypi homebridge[6304]: serialNo: 1,
Dec 30 22:47:56 raspberrypi homebridge[6304]: devName: 'FosBabyP1',
Dec 30 22:47:56 raspberrypi homebridge[6304]: mac: 'E8ABFA4E3EF2',
Dec 30 22:47:56 raspberrypi homebridge[6304]: year: 2016,
Dec 30 22:47:56 raspberrypi homebridge[6304]: mon: 12,
Dec 30 22:47:56 raspberrypi homebridge[6304]: day: 30,
Dec 30 22:47:56 raspberrypi homebridge[6304]: hour: 20,
Dec 30 22:47:56 raspberrypi homebridge[6304]: min: 47,
Dec 30 22:47:56 raspberrypi homebridge[6304]: sec: 52,
Dec 30 22:47:56 raspberrypi homebridge[6304]: timeZone: 0,
Dec 30 22:47:56 raspberrypi homebridge[6304]: firmwareVer: '2.21.2.21',
Dec 30 22:47:56 raspberrypi homebridge[6304]: hardwareVer: '1.5.3.16',
Dec 30 22:47:56 raspberrypi homebridge[6304]: pkgTime: '2016-04-18_14%3A51%3A34' } rtsp://username:password@foscam:88/videoMain rtsp://user:pass@foscam:88/videoSub
Dec 30 22:47:56 raspberrypi homebridge[6304]: [12/30/2016, 10:47:56 PM] FosBabyP1 is running on port 39381.
Dec 30 22:47:57 raspberrypi homebridge[6304]: [12/30/2016, 10:47:57 PM] FoscamAccessory: New motion detect params: { isEnable: true,
Dec 30 22:47:57 raspberrypi homebridge[6304]: linkage: 0,
Dec 30 22:47:57 raspberrypi homebridge[6304]: snapInterval: 0,
Dec 30 22:47:57 raspberrypi homebridge[6304]: sensitivity: 1,
Dec 30 22:47:57 raspberrypi homebridge[6304]: triggerInterval: 0,
Dec 30 22:47:57 raspberrypi homebridge[6304]: schedule0: 281474976710655,
Dec 30 22:47:57 raspberrypi homebridge[6304]: schedule1: 281474976710655,
Dec 30 22:47:57 raspberrypi homebridge[6304]: schedule2: 281474976710655,
Dec 30 22:47:57 raspberrypi homebridge[6304]: schedule3: 281474976710655,
Dec 30 22:47:57 raspberrypi homebridge[6304]: schedule4: 281474976710655,
Dec 30 22:47:57 raspberrypi homebridge[6304]: schedule5: 281474976710655,
Dec 30 22:47:57 raspberrypi homebridge[6304]: schedule6: 281474976710655,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area0: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area1: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area2: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area3: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area4: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area5: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area6: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area7: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area8: 1023,
Dec 30 22:47:57 raspberrypi homebridge[6304]: area9: 1023 }
Dec 30 22:47:58 raspberrypi homebridge[6304]: [12/30/2016, 10:47:58 PM] FoscamStream: RTSPClient got sdp.
Dec 30 22:47:59 raspberrypi homebridge[6304]: [12/30/2016, 10:47:59 PM] FoscamStream: RTSPClient got sdp.
Dec 30 22:47:59 raspberrypi homebridge[6304]: [12/30/2016, 10:47:59 PM] FoscamStream: RTSPClient got sdp.
Dec 30 22:47:59 raspberrypi homebridge[6304]: [12/30/2016, 10:47:59 PM] FoscamStream: RTSPClient got sdp.
Dec 30 22:47:59 raspberrypi homebridge[6304]: [12/30/2016, 10:47:59 PM] [My FritzBox] Fritz!Box platform login successful
Dec 30 22:47:59 raspberrypi homebridge[6304]: [12/30/2016, 10:47:59 PM] [My FritzBox] Discovering accessories
Dec 30 22:47:59 raspberrypi homebridge[6304]: [12/30/2016, 10:47:59 PM] [My FritzBox] Outlets found: 087610239316,087610322897
Dec 30 22:48:00 raspberrypi homebridge[6304]: [12/30/2016, 10:48:00 PM] [My FritzBox] Thermostats found:
Dec 30 22:48:00 raspberrypi homebridge[6304]: [12/30/2016, 10:48:00 PM] [My FritzBox] Sensors found:
Dec 30 22:48:00 raspberrypi homebridge[6304]: [12/30/2016, 10:48:00 PM] [My FritzBox] Initializing platform accessory 'Guest WLAN'...
Dec 30 22:48:00 raspberrypi homebridge[6304]: [12/30/2016, 10:48:00 PM] [My FritzBox] Initializing platform accessory 'Fritz!Plug'...
Dec 30 22:48:00 raspberrypi homebridge[6304]: [12/30/2016, 10:48:00 PM] [My FritzBox] Initializing platform accessory 'Fritz!Plug2'...
Dec 30 22:48:00 raspberrypi homebridge[6304]: Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
Dec 30 22:48:00 raspberrypi homebridge[6304]: ┌────────────┐
Dec 30 22:48:00 raspberrypi homebridge[6304]: │ 032-45-156 │
Dec 30 22:48:00 raspberrypi homebridge[6304]: └────────────┘
Dec 30 22:48:00 raspberrypi homebridge[6304]: [12/30/2016, 10:48:00 PM] Homebridge is running on port 51827.
Hi,
First of all, great work and thank you for your efforts. I'm really happy with the results so far. I have one tiny question :-) Can you tell me where the snapshots are saved (by default) and/or is there a parameter I can use for a different location?
Thanks in advance,
Ab
Is it possible to add multiple cameras using this plugin?
Hello,
after starten homebridge my time is set to DST + 30. Is it possible to change this?
Best regards
Sven
Hi,
I upgraded to the latest build, but it seems that there's a SyntaxError. I couldn't locate it so far, I check the Syntax of all *.js files with "nodejs -c" and cannot find anything.
Hope anybody drops me in the right direction?
[10/10/2016, 7:18:05 PM] ====================
[10/10/2016, 7:18:05 PM] ERROR LOADING PLUGIN homebridge-foscam-ng:
[10/10/2016, 7:18:05 PM] SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/root/.npm-global/lib/node_modules/homebridge-foscam-ng/node_modules/foscam-binary-client/index.js:6:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
I dropped everything and reinstalled Homebridge and homebridge-foscam-ng
[12/4/2016, 3:34:56 AM] Missing parameters.
/usr/lib/node_modules/homebridge-foscam-ng/node_modules/homebridge-foscam-stream/lib/FoscamAccessory.js:15
let host = config.host;
^
TypeError: Cannot read property 'host' of null
at new FoscamAccessory (/usr/lib/node_modules/homebridge-foscam-ng/node_modules/homebridge-foscam-stream/lib/FoscamAccessory.js:15:26)
at FoscamPlatform.didFinishLaunching (/usr/lib/node_modules/homebridge-foscam-ng/index.js:30:28)
at emitNone (events.js:91:20)
at API.emit (events.js:185:7)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:90:13)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
error on raspberry pi
" throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^
Error: The requested platform 'Foscam-NG' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:106:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:263:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:71:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)"
I am a complete layman. So, please forgive me but is there a known issue with iOS 10.1 and this plugin? Motion detection works and I'm getting a static preview of the camera. However, clicking the thumbnail yields a black screen with a line through a camera and the message "This camera is not responding.". Prior to updating to 10.1 this was working fine.
Again, sorry if this is an inappropriate channel to file this issue and for the lack of detail. I'm using the Foscam R2 if that's helpful. Thanks for your amazing work on this!
Hi,
I'm using the forementioned IP Cam, I have a little preview snapshot in Home-App and also receive any Motiondetection Message. But the Stream stays black, after couple of seconds I see in the error.log:
Stop: rtsp://user:[email protected]:554/videoMain
Closing the Streaming-View and opening it up doesn't help.
This Message only appears once.
To my knowledge for this model API is running on Port 88. RTSP on 554
best regards
Daniel
I updated to iOS 10.2 as well as updating to the new version of homebridge. Now my camera shows up as on the Home app as a new accessory to be added, but once I type in 031-45-154 it says it's unable to add it. Any ideas of what's causing this?
Tried installing this on my home bridge server running on OS X 10.12.1. Received several warnings from npm, the main one being:
CXX(target) Release/obj.target/node-opus/src/node-opus.o
../src/node-opus.cc:41:1: warning: 'OpusEncoder' defined as a class here but
previously declared as a struct [-Wmismatched-tags]
class OpusEncoder : public ObjectWrap {
^
../src/../deps/opus/include/opus.h:164:9: note: did you mean class here?
typedef struct OpusEncoder OpusEncoder;
^~~~~~
class
1 warning generated.
SOLINK_MODULE(target) Release/node-opus.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
When home bridge starts it complains:
:34:09 - ====================
16:34:09 - ERROR LOADING PLUGIN homebridge-foscam-ng:
16:34:09 - Error: Could not locate the bindings file. Tried:
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/build/binding.node
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/build/Debug/binding.node
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/build/Release/binding.node
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/out/Debug/binding.node
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/Debug/binding.node
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/out/Release/binding.node
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/Release/binding.node
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/build/default/binding.node
→ /usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/compiled/4.5.0/darwin/x64/binding.node
at bindings (/usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/bindings/bindings.js:88:9)
at Object. (/usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/node_modules/ref/lib/ref.js:5:47)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/node_modules/ref-struct/lib/struct.js:49:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/node_modules/ogg-packet/index.js:6:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/homebridge-foscam-ng/node_modules/node-opus/lib/Encoder.js:4:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.