RBoy Apps
INSTALLING FOSCAM IP CAMERA
For installing the Foscam IP Camera Device Handler follow these instructions:
  1. Click on the Foscam Device Handler, it will open a new window with the code, select all (Ctrl+A) and copy the code (Ctrl+C)
  2. Login to your SmartThings IDE at https://graph.api.smartthings.com (create a login if you don't have one AND don't forget to opt-in for the developer account). To verify that you're logged into the correct location, after logging into the above link, click on "My Locations" and then click on the name of the location where you want to install the SmartApp. Note: You may be asked to log into your account again when you click on your location, if so login again.
  3. Click on "My Device Handlers
  4. Click on "+New Device Handler" on the top right 
  5. Click "From Code"
  6. Paste the code (Ctrl + V) into the editor and click "Create"
  7. Click "Publish" and then "For me" on the top right
  8. Click on "My Devices" on the top
  9. Click on "+New Device" on the top right
  10. Enter a "Name
  11. For "Device Network Id *" enter 2000 (if installing multiple cameras, increment this number by 1, so for the second camera enter 2001, for the third 2002 etc)
  12. Under "Type *" select the new device handler you just created, it will show up at the bottom of the list called RBoy Foscam IP Camera  (IMPORTANT: Do NOT select Foscam from the middle of the list)
  13. Select your "Hub" (IMPORTANT: Don't miss this step)
  14. Select your "Location"
  15. Click "Create
  16. Open you SmartThings App on your phone and under "My Home" look for your new device 
  17. Open the device page on the phone and on the top right click on the gear icon to open the preferences/settings page for the camera
  18. Enter the details IP Address, port, username (case sensitive), password (do not use special characters in the password) etc and finish the configuration, then hit "Done"
  19. Now click  the "Refresh" button on the Camera device page (don't forget this important step otherwise the settings won't load). You're done! NOTE: Each time you change the settings in the preferences page (gear icon) and click done, you NEED to click on the "Refresh" button
NOTE: To get motion detected notifications you will need to install the Foscam Motion Alarm Monitor SmartApp. Follow these instructions for install the SmartApp.

See this post for troubleshooting and setting up video streaming

FOR UPDATING EXISTING DEVICE HANDLERS WITH A NEWER VERSION OF THE CODE:
  • Click on the Foscam Device Handler, it will open a new window with the code, select all (Ctrl+A) and copy the code (Ctrl+C)
  • Login to your SmartThings IDE at https://graph.api.smartthings.com. To verify that you're logged into the correct location, after logging into the above link, click on "My Locations" and then click on the name of the location where you want to install the SmartApp. Note: You may be asked to log into your account again when you click on your location, if so login again.
  • Click on "My Device Handlers"
  • Click on the "RBoy Foscam IP Camera" in the SmartThings IDE
  • Select all (Ctrl+A) and delete the old code, Paste (Ctrl+V) the new code
  • Click on "Save"
  • Click  on "Publish" and then click "For me"
  • IMPORTANT, DON'T SKIP THIS STEP: Open the Device on your phone, check/update your preferences (little gear icon on the top right) and hit "Done". Now hit the "Refresh" button. If you don't do this last step the updated Device Handler may not work.