Code Monkey home page Code Monkey logo

Comments (3)

JanLoebel avatar JanLoebel commented on September 25, 2024

Yes that's possible if the machine you're running the script is in the same network as your homebase.

mainP2pLocal() is the method to start in index.ts, but first you need to provide your P2P_DID and ACTOR_ID in the .env-file. That information you can get by calling the mainHttp() method in the index.ts. You only have to do that once till you have the P2P_DID and ACTOR_ID. Then change the hard coded IP of 192.168.68.101 to your homebase ip.

With this command you can set the arming mode:

// CMD_SET_ARMING  # 0 => away 1 => home, 2 => schedule, 63 => disarmed
devClientService.sendCommandWithInt(CommandType.CMD_SET_ARMING, 1);

Remove or uncomment the line below: devClientService.sendCommandWithIntString(CommandType.CMD_SET_DEVS_OSD, 1, 0); to not change the OSD settings.

from eufy-node-client.

xanthos84 avatar xanthos84 commented on September 25, 2024

thank you for the fast response!
well, i am no real dev sadly - i am struggling where to start actually..
So installation first..
and then where to run the command? Is it possible via GET/POST request like an API? That would be easy to use...

from eufy-node-client.

JanLoebel avatar JanLoebel commented on September 25, 2024

Sorry.. for a non developer this is currently to complicated. Currently I'm working to provide more features instead of adding a REST-like-API. Sorry you'll have to wait till this is further.

from eufy-node-client.

Related Issues (17)

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.