imbrian
(Im Brian)
June 3, 2014, 4:53pm
2
It looks like your parameters (ip, port, username and password) have not been set. Here are the step-by-step instructions for setup of the NON-local Foscam (meaning, you’ll need port forwarding or an otherwise publicly accessible camera to use it):
And here is a private message I had sent to another user on how to get his foscam set up using the above code:
Yes – you first need to add a custom device type. That will define what your inputted device is and how it works.
Visit https://graph.api.smartthings.com/ide/devices and click ”New SmartDevice” in the upper right corner.
Give it the Name of ”Foscam” – author can be whatever you want. In ”Capabilities”, select ”Image Capture” and ”Polling”.
Under ”Custom” enter these attributes: ”setStatus” and ”alarmStatus”.
Under ”Custom” enter these commands: ”alarmOn”, ”alarmOff”, ”left”, ”right”, ”up”, ”down”, ”pause”, ”set”, ”preset1”, ”preset2”, ”preset3”, ”toggleAlarm” and ”preset”.
Click ”Create” – it’ll drop you to the coding IDE. Just paste in this source code: https://ra…