45clouds / homebridge-ip-camera

IP camera plugin for homebridge
50 stars 7 forks source link

Adding Second Camera #4

Closed simonrb2000 closed 7 years ago

simonrb2000 commented 7 years ago

Hi,

Trying to add a second camera to the config file, can't seem to get it right? Any ideas on the format? Cheers

simonrb2000 commented 7 years ago

Sorted

theo-69 commented 7 years ago

@simonrb2000 how did you sort it?

simonrb2000 commented 7 years ago

I just added it underneath the first camera as another accessory I think..

45clouds commented 7 years ago

Working example below:

        "platform": "Camera-ffmpeg",
        "cameras": [
          {
            "name": "FRONT",
            "videoConfig": {
                "source": "-re -i rtsp://user:password@10.12.9.211:554/Streaming/Channels/101",
                "stillImageSource": "-i http://user:password@10.12.9.211/Streaming/channels/1/picture",
                "maxStreams": 2,
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 10
             }
          },
          {
            "name": "GARAGE",
            "videoConfig": {
                "source": "-re -i rtsp://user:password@10.12.9.212:554/Streaming/Channels/101",
                "stillImageSource": "-i http://user:password@10.12.9.212/Streaming/channels/1/picture",
                "maxStreams": 2,
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 10
             }
          }
         ]
theo-69 commented 7 years ago

Thanks its working