Comments (6)
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.
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.
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.
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.
from 826-x-ip-camera.
thankyou again!
from 826-x-ip-camera.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 826-x-ip-camera.