Synology Diskstation & Cameras

I have seen bad images from time to time. You could try changing the resolution being used by your camera to see if it affects the result. Otherwise, I’m not sure what would be causing it. The code is pretty simple that does that part, but most of it is hidden by what SmartThings provides.

For the motion detection, you’ll want to make sure you used the link provided by the new install of your SmartApp. The link changes when you uninstall and reinstall. Can you verify that you are using the new one? If you are, did the test message work?

Okay so after setting sms provider again, got the notification part working. Images are still not coming up. On the camera image resolution is set to lowest…Even take image is not working…What can I do to fix this ?

On the live logging I am only getting this now :frowning:

	7344b03a-af03-42c4-a7de-dad6bce77f00

8:08:44 PM:
trace
sending GetSnapshot


	7344b03a-af03-42c4-a7de-dad6bce77f00

8:08:44 PM:
trace
take picture

Can’t get an image when pressing the “take” button. In the logs i see it saying its taking pictures when motion is detected, but i have never been able to see an image ever. I have 2 hikvision dome 3MP cameras without PTZ

I have two Hikvision 2032 as well and can’t get any image from them. Have set the image resolution to lowest…

I am having a strange problem. I was playing around with this app about 6-9 months ago and never got it totally working. Tonight I figured I would upgrade it to the latest and just start over. So I did that and it was somewhat working on 4 of my 6 cameras if I did a “take picture” My two main cameras (which one happens to be a 5MP camera) were not working. So I tried uninstalling and reinstalling the app to make sure everything was totally clean. Now when I try to reinstall the app I get a “network timeout” in the app and in the IDE logs I see this. It does not look like it even tries to connect anymore. Any pointers? Thanks!!

	92c6e634-e016-42bb-8198-764d9df5c154

12:10:32 AM:
trace
force refresh of DS info


	92c6e634-e016-42bb-8198-764d9df5c154

12:10:29 AM:
trace
subscribe to location

Ok premature posting. I power cycled the hub and its now working again as it was before. My two main front yard cameras are not working though. All 6 of my cameras are AXIS branded cameras. The 4 that are working are all setup in 1080P mode and work fine with the app. The problem is I don’t need those 4 cameras. My two front yard ones are the ones I need. The main one is a 5MP fixed camera while the other is a 1080P PTZ camera. I just lowered the resolution for a test on the 5MP one and it works but I need to keep the resolution at 5MP. The camera supports 3 concurrent stream resolutions in surveillance station. Is there anyway to have the app pull a lower resolution steam vs the main stream? (I assume its trying to capture stream 2). As for my PTZ camera it is 1080p just like my 4 other cameras. Any idea on how to troubleshoot that one? I see in the log

trace sending GetSnapshot
trace take picture

and nothing after that. Thanks!!

I know the foscam devices suppoort different resolutions based on the argument in the URL. Maybe you can go that route to get a lower resolution stream?

@chicken I updated the device to let you choose what stream to capture an image from. It seems like there is an issue with some image sizes somewhere in my code or in the platform. This workaround may be helpful for other people with image capture issues too.

To upgrade, copy the new device handler code over the old code. Then go into the device on your phone, choose “Edit Device”, and put in the stream number you want to capture from. You shouldn’t need to rerun setup if everything else seems to be working.

You are awesome!!! We have family plans the rest of today but I’ll test it out tonight. Thank you so much!!

Just upgraded the code and set my 2nd stream to be lower resolution and everything is working great now. A big thank you!! I need to get the photo burst app setup tomorrow so I can get a notification and picture when my mailbox is opened. Now I can see who is there touching my mail :slight_smile: Thanks again and happy holidays!!!

I am about to get a diskstation and a few Hikvision cameras and I have some amateurish questions.

  1. Can the motion detection from the cameras be used to trigger other actions within ST?
  2. Why do you need image capture within ST and Surveillance Station?

Thanks,

JD

Hello,

I finally was able to create the camera’s after struggling with timeout errors and other stuff (reading that reseting the hub might help was the main help) I have motion working perfectly fine but I am unable to get picture ever.

I’m using everything in last version available.

Thanks

edit: using 7 cameras, different brands and resolutions (1 SD , 6 HD).

swanny
I have followed your directions to install the app
when I opened the app on my android, and while setting up the sms notification, sinology was asking for an API ID and I got a filed to send message notification, any thoughts?

One of the other users was able to replace the “Hello+World” in the motion detection url with a space and that removed the API ID field for him. I’d suggest trying that. One of these days I’ll get around to updating the documentation too.

Dave

@swanny,

No clue why I can’t get picture?

Thanks

I don’t know if anyone has set it up with as many cameras as you have. If you want to message me the log when you run the setup application and also the log when you take a picture, I can try to see what’s going on.

Swanny,

I use two factor authentication for my Syno. I’m thinking that is why it won’t connect. Have you already accounted for that, or would I need to turn that feature off?

@swanny

Ok so this is the log when I add the cameras: PMED

And when I try to take a picture I just get:

0ff04dc0-876d-4b6a-bdb9-2700342571a4 0:07:01: trace sending GetSnapshot
0ff04dc0-876d-4b6a-bdb9-2700342571a4 0:07:01: trace take picture no stream

Nothing else.

Thanks!

I don’t have it set up to support two factor authentication. Sorry!