Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble using code #4

Open
Timnathan opened this issue Jan 29, 2018 · 1 comment
Open

Trouble using code #4

Timnathan opened this issue Jan 29, 2018 · 1 comment

Comments

@Timnathan
Copy link

Hello,

I have been having trouble using your code on a V6414BN connected to my ST hub. I believe I have followed the directions but keep getting an that says unavailable and to check config. The camera itself works fine on ST and in the SmartCam app.

I set up a static IP for the camera and the password works in the smart cam app. I am kind of new to this any ideas what I did wrong? Firmware on the camera is v.1.15.

Here's my log:

97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:37 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:37 PM: debug checkMotionDetectionSetting()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:37 PM: debug refresh()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:37 PM: debug updated()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:36 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:36 PM: debug checkMotionDetectionSetting()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:36 PM: debug refresh()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:36 PM: debug updated()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:16 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:16 PM: debug checkMotionDetectionSetting()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:16 PM: debug refresh()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug checkMotionDetectionSetting()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug refresh()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug updated()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug checkMotionDetectionSetting()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug refresh()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug updated()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:37:48 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:37:48 PM: debug checkMotionDetectionSetting()
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:37:48 PM: debug refresh()

@airdrummingfool
Copy link
Owner

It looks like the Device Handler is not receiving a response from the camera. Let's try some command-line HTTP requests and see if the camera responds to those. I'm using (and recommend) httpie. Please post the responses you get from the following queries (replace [user], [pass], and [camera ip] as appropriate):

First, let's check the basic device info (feel free to redact serial number, MAC, etc):

http --auth-type digest --auth [user]:[pass] GET [camera ip]/stw-cgi-rest/system/deviceinfo

Then we'll check the videoanalysis endpoint.

http --auth-type digest --auth [user]:[pass] GET [camera ip]/stw-cgi-rest/eventsources/videoanalysis

Then we can try a simple POST to turn on detection:

http --auth-type digest --auth [user]:[pass] PUT [camera ip]/stw-cgi-rest/eventsources/videoanalysis "DetectionType"="MotionDetection"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants