Tuesday, January 7, 2014

Chickencam - How To

Figured this was as good a place as any to post a write up on how to setup your own Chicken (or whatever) camera.
You will need:
  • A suitable IP Camera, these can be found from $30 upwards on Ebay, we use a cheap Foscam Pan Tilt Camera
  • A Network bridge, which does just as it says. Creates a Bridge between your WiFi network and a non-wifi device. These are often used to give game consoles / TV's etc. internet service. I have had great success with the very compact IOGear Universal Ethernet to Wi-Fi N Adapter
  • 2 power outlets wherever you plan to setup the camera.
  • A WiFi Router connected to your home network, with sufficient range to reach to wherever you plan to install your camera. I just upgraded to the NETGEAR Wireless Router - AC1750 Dual Band Gigabit (R6300 v2)
  • The Freeware Yawcam camera steaming application
Setup:
  1. Firstly you need to power on your Network Bridge, if your router has the WPS function then press the WPS button on your router, then on the Network Bridge, the setup would then be automatic and as long as your Network Bridge is in range, the LAN light should then light to notify you that it is sucesfully attached to the network. If your router does not support the WPS standard, you may need to physically wire the Network Bridge to your network, then navigate to the IP address assigned to it by your router to setup your WiFi settings. 
  2. Once your Network Bridge is showing connectivity to your network, you can now attach your camera. With the Foscam camera, simply connect the power and connect a short Network cable from the camera to the Network Bridge, after giving the camera a minute or 2 to boot, navigate to the IP address assigned to the camera on your network, or identified using the Foscam Camera Identification tool for Windows or Mac
  3. Once you have identified the IP address to log into and manage your camera, log in and configure the camera. With the Foscam application you can pan/tilt the camera using the built in software, but we did not want to give this ability to the outside world, so we decided to take the streaming image from here one step further and send it to an application that can publish the image to the outside world - Yawcam.
  4. Within Yawcam you will need to use the IP Camera device option and if using the Foscam, you can use the following URL to link to the image streaming from your camera: http://xxx.xxx.xxx.xxx:1111//videostream.cgi (where xxx.xxx.xxx.xxx is the IP address and 1111 is the port). You will also enter your Administrative login/password so Yawcam can talk to your camera. 
  5. In Yawcam you will need to set the Port number you wish to publish your video stream to, this can be found in the Settings > Output > Stream section, in our case we use port 8081. You will need to configure port forwarding for TCP/UDP on Port 8081 to forward to the IP address of your computer running the Yawcam app. It is best if you use a static IP address on your computer, to avoid this changing if you reboot your PC.
  6. Your camera should then be viewable at http://xxx.xxx.xxx.xxx:8081, where xxx.xxx.xxx.xxx is the IP address of your connection with your provider, you can identify this at: I reccomend using a Dynaimc IP service such as the free service offered by DynDNS: which can be setup on your Router to sync your IP address with a host name, in our case we use rinky.gotdns.com 



So there you have it, how Chickencam gets from our camera to http://rinky.gotdns.com:8081/ This is a quick and dirty write up and I may have missed something, please comment and I'll do my best to answer questions in a timely manner.