Page 1 of 1

Samsung SNH-P6410BN

Posted: Saturday 25 July 2015 17:22
by mcduarte2000
Hi,

I've a Samsung SNH-P6410BN. The jpg url is not documented but through google I could find the snapshot URL:

Code: Select all

http://192.168.1.xxx/cgi-bin/video.cgi?msubmenu=jpg&resolution=xx 
(resolution can be 1 to 10, I tried different values without success)

It works in the browser (requests user and password), and works in the preview/test of Domoticz (I can see it live in the test screen). But then, it doesn't work after the camera is added.

Any ideas? A possible bug in Domoticz (if it works in test I guess it should also work on the application)?

Thanks,

Miguel

Re: Samsung SNH-P6410BN

Posted: Monday 29 February 2016 13:13
by Warlock00
Why no reply to this?

I have the same problem. Works in edit / test connection screen only.

Samsung snv-l6083r

http://192.168.3.122/cgi-bin/video.cgi?msubmenu=jpg
IP Address: 192.168.3.122
Port: 80
Image URL: /cgi-bin/video.cgi?msubmenu=jpg

Running Domoticz V2.4768 on Synology NAS

Re: Samsung SNH-P6410BN

Posted: Monday 04 July 2016 11:37
by martk
I found out that the Samsung camera's do have an RTSP stream. You can use this stream to get a snapshot. I've got it working here on 2 camera's :))

You'll have to install ffmpeg, google how to install that on Jessie. After that you can use this bash script for instance to send a snapshot using a Telegram bot:

Code: Select all

#!/bin/sh
export DATETIME=`date +%Y%m%d%H%M%S`
ffmpeg -i rtsp://admin:[email protected]/profile5/media.smp -vframes 1 -r 1 /home/pi/domoticz/www/snapshots/cam1/$DATETIME.jpg
#Verstuur de foto met Telegram
curl -s -X POST "https://api.telegram.org/botblablacode/sendPhoto" -F chat_id=@CHATID -F photo="@/home/pi/domoticz/www/snapshots/cam1/$DATETIME.jpg"
#Verstuur bericht beweging gedetecteerd!
curl --data chat_id=@CHATID --data-urlencode "text=Beweging op buitencamera gedetecteerd!"  "https://api.telegram.org/bot200094474:AAHAEyCcGcfbnHOzP8nmxgsjF313CQ6jWac/sendMessage"
#Delete previous taken snapshots older than 7 days
find /home/pi/domoticz/www/snapshots/cam1/ -name '*.jpeg' -mtime +7 -delete
I'll run this bash script using a lua script :)