Giter VIP home page Giter VIP logo

Comments (6)

btsimonh avatar btsimonh commented on June 8, 2024

hi, I've not looked at my cam for some time, but assume there is a reboot button on their UI, but that you would need to be 'logged in' to send the appropriate command.
The approach I would take would be to fire up Chrome Dev tools, and visit the cam UI. Observe network traffic when you press the reset button, and attempt to replicate what it sends.
Then you just have to check my original NR flow for authorization and sending commands works against the firmware you have, and add the reset command to the flow.....
br, simon

from 826-x-ip-camera.

belveder79 avatar belveder79 commented on June 8, 2024

hi, thx for the hint - yes, since you did 99% of the work already concerning the authentication, this part is solved already :-)

Exactly as you suggested, I tracked down the reboot button until the point where there is a "do you really want to restart?" popup and to the msg.send(something), even before I ran across your development... so I will try that and post my milage to have you put it into your flow for reference...

best, Clemens

from 826-x-ip-camera.

belveder79 avatar belveder79 commented on June 8, 2024

well... that was suuuuper easy, thanks to your implementation:

this one goes into the init function node:

    ccm_reboot: function( ){
        var type = 2;
        var newnid = this.makenid(++this.nid_seq, type ? this.lid:0, this.login_secret_dec, type, null, null);
        var data =  {
                sess: 1,
                sess_nid: newnid,
                sess_sn: this.sn
            };
            
        ccm.send_msg(
            "ccm_reboot.js", 
            data
        );
    }

and there is just a simple function that does this:

var ccm = flow.get('ccm');
ccm.ccm_reboot();

works like a charm, thx again...

from 826-x-ip-camera.

btsimonh avatar btsimonh commented on June 8, 2024

I just love people who understand stuff!
To save me working out where all my flows are, etc.... could you do a PR?

from 826-x-ip-camera.

belveder79 avatar belveder79 commented on June 8, 2024

from 826-x-ip-camera.

btsimonh avatar btsimonh commented on June 8, 2024

thankyou again!

from 826-x-ip-camera.

Related Issues (6)

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.