Coder Social home page Coder Social logo

Camera Connection Error about reolink_dev HOT 5 CLOSED

fwestenberg avatar fwestenberg commented on September 6, 2024
Camera Connection Error

from reolink_dev.

Comments (5)

keith-b-c avatar keith-b-c commented on September 6, 2024 2

Sorry for my late response! If I look at the code, the camera should give a json response after correct login. The error you logged only appears when the json is not valid. So in order to find out what's happening, can you provide me the response (from the browser) of the login command? The request should look:

body = [{"cmd": "Login", "action": 0, "param": {"User": {"userName": username, "password": password}}}]

Thanks!

I have the same problem, how do I go about entering the above code?

from reolink_dev.

fwestenberg avatar fwestenberg commented on September 6, 2024 1

Please check v0.8.

from reolink_dev.

fwestenberg avatar fwestenberg commented on September 6, 2024

Sorry for my late response! If I look at the code, the camera should give a json response after correct login. The error you logged only appears when the json is not valid. So in order to find out what's happening, can you provide me the response (from the browser) of the login command? The request should look:

body = [{"cmd": "Login", "action": 0, "param": {"User": {"userName": username, "password": password}}}]

Thanks!

from reolink_dev.

scstraus avatar scstraus commented on September 6, 2024

I have this problem too. It seems to come from the app being connected and streaming the cameras. When it is, it seems like the component no longer can connect to the camera and login. It would be good to have an availability sensor to tell when this is happening and when it's not, as I use a conditional card to show the camera, it would be good to only show it when it's actually working. I will open an issue for that.

from reolink_dev.

IvanPenyaHuguet avatar IvanPenyaHuguet commented on September 6, 2024

I think he wants the response of the login. One way to do it is with Postman, you have to do a POST request to http://YOUR_CAM_IP/cgi-bin/api.cgi with one param key cmd and value of login and a raw json body as given changing the username and password for yours:

[{"cmd": "Login", "action": 0, "param": {"User": {"userName": username, "password": password}}}]

Two photos to understand how to do it in postman, click send and paste here the body response.

Capture1
Capture2

The response has to look something like this:
[ { "cmd": "Login", "code": 1, "error": { "detail": "login failed", "rspCode": -7 } } ]

from reolink_dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.