I just installed this I have a foscam fi9821w. I can turn the ir’s on and off and move the camera but when I say take pic it doesn’t display. I have an android S4, any ideas?
Here is my log:
a4a66fe7-26be-4c9c-b4ff-4d66f7b211de 2:55:43 PM:
debug /cgi-bin/CGIProxy.fcgi?usr=deleted&pwd=deleted&cmd=snapPicture2
a4a66fe7-26be-4c9c-b4ff-4d66f7b211de 2:55:43 PM:
debug Executing hubaction on 192.168.1.15:88
a4a66fe7-26be-4c9c-b4ff-4d66f7b211de 2:55:43 PM:
debug Device Network Id set to c0a8010f:0058
a4a66fe7-26be-4c9c-b4ff-4d66f7b211de 2:55:43 PM:
debug Taking Photo
I deleted my user information.
what is the actual url I can go to to see if the photo is actually being transmitted?
Nope nothing, also, my device id does not change to hex, it keeps the original ip 192.168.1.15. I’ve even went in and changed it to hex but that didn’t work. Any reason why it might not be changing?
Mine are working again too. I had one cam that was taking bad pics, as in half the picture was good the but the other half was all black. But as of yesterday morning (12-14-14) everything is good to go.
Do you have to do anything to get the images to show up again? The images aren’t working, and it is just stuck as “Taking” again. I don’t see any errors in the log, and the URL is working for it.
Yeah, I’m in the 8190w picture taking/freezing the app club. I can control the camera, but see no image and if I try to take an image it freezes. I’ve rebooted the camera, reinstalled, unistalled to no avail. Hopeful to hear a solution, and thanks!
I’m another user in the same boat as the last few. I’m using an 8910W and have not been able to get any image displayed on the screen. Looking at the logs, I would’ve expected to see a line after the snapshot.cgi GET where the hub receives the .jpg, but nothing. This link pasted into a web browser returns a picture. The other function buttons are working correctly too.
No being a programmer, I’m not sure I understand the set of code near the end of the device type which describes how to display it on the screen.
Would it be possible to add more logging to the displaying a picture feature so we know where we’re getting hung up?
I’ve also created a rule in my firewall to allow the HTTP port, 18080, to one of my public IPs. I can accessing the same from the public side, but still no image.
Wait a sec… I’m not sure exactly what all this talk of Amazon S3 integration with the hub, but do I need to sign up for my own S3 account with Amazon for this to work?
You don’t need to sign up for it to work, the problem is with ST itself, or more accurately with some recent change that broke previously existing functionality.
The way I understand it works, the whole business of taking a picture uses the camera’s native functionality to take a picture and uploads that to S3, which is then displayed in the interface. You have a lot of stuff already up there, as it is where the whole SmartThings “persistence” lives.
It’s of course a very convoluted setup (as is the rest of the platform) with a lot of moving parts, although I would have thought someone would have figured out why it was broken by this point. Me personally I had to give up on the non-working, non-reliable bits and switched my cameras to run with iSpy and saving the pictures / videos to Dropbox, and leaving ST completely out of the equation until they get their Foscam act together.
well… you might be interested to know what I decided to do since I posted this question…
I wrote a short python script to save the image which is returned from the HTTP GET command and store this image into a folder of one of my existing web servers. Now that this picture is available at this location, and with a known name, I am going to modify the Device Type’s code to display the image at this known location each time I press the TAKE button. Btw, this script loops every two seconds.
I have tested all of it yet, but I got the .py working so far…
from urlparse import urljoin
import urllib
import os
def takepic():
image_url="http://172.20.23.254:18080/snapshot.cgi?user=***&pwd=***"
print image_url
os.chdir("D:\\")
urllib.urlretrieve(image_url, "/webserver/1.jpg")
import time
while 1==1:
takepic()
time.sleep(2.0)
alkiax - it can be a bit confusing…there are some layers of abstraction. The support for cameras is limited right now so this is a bit of a grass roots movement to create the device type required. You can wait for the support to be provided by ST, or get your hands a bit dirty with code. At it’s most harmless, you can copy/paste code into a device that you add in the dev environment. If you are ok looking at code, you can also do some tweaking. I copied/pasted code and created my own device for a DLink camera that someone else coded. You should create a dev ID and do some reading on device types etc.
Hello. I am new to the SmartThings platform, and recently set up a Hub and multiple sensors. I also set up two Foscam FI8910W, which are triggered to take a burst photo when my door sensors trigger and motion is detected. This only happens when my mode is set to away or at night.
Although I work in the networking industry, I do not know how to code. You guys have really compelled me to want to learn how to write code for ST. Any suggestions of where to start would be great!
In regards to the post:
I have read how ST hosts everything with AWS, and stores everything in S3. Although I haven’t implemented it yet, I think the script and idea that Dan @umuzidan has produced is great!
My question is, can this be altered to support saving the images on my phone, and then into a cloud storage service (dropbox, box, Amazon, etc…)?
Also, can we get access to the current taken photos? I assume ST would want to avoid having each of these stored, due to privacy issues and cost to host all these photos.
My next question is can code be altered to have the camera point towards the ceiling (As a Preset location), and then go to another preset location when my triggers go off?
The latest version of SmartThings app for iPhone gives you full access to captured images, including saving and sharing them via all available services - email, message, AirDrop, Twitter, Facebook, etc.
I believe @geko was referring to the mobile version of the SmartThings app, for IOS. This is IOS version 1.6.7. I loaded it on my wife’s iPhone and I was able to view all pictures, save them, SMS them, or upload them to cloud storage. I did not see any way to delete them.
For Android, the latest software release, on Google Play, is 1.6.8, but it does not offer similar photo options. On my Note 4, my Foscam FI8910W only produces a picture, but does not give me control over that photo. It is very similar if you were to take a Snapshot via the camera’s Web UI (Svr Push Mode). The Snapshot produces a Snap.htm file, in a new browser window. Unlike my Android device, I can save this photo by right clicking on the mouse.
I am sure this feature will come soon for Android.
For the control of my Non-HD Foscam camera, I used @tslagle13 code from his original post above. I originally tried to add my camera through the Web-Based IDE, by adding a new device, under the ‘My Devices’ tab. I used the pre-defined Foscam option, under device type, but this did not work. I haven’t looked at the code, but I would assume this is focused on HD cameras.
Am I doing something wrong ? Every time I try and copy and paste the code in to the New Smart Apps…I get this error message…“Metadata Error: input() can only be invoked inside a section definition”
The code is for creating a device type for a device. You use the code above and create a smart device type in Ide then create a a camera device using the smart device type for your camera device. Hope that will help.