GithubHelp home page GithubHelp logo

Comments (9)

bropat avatar bropat commented on May 27, 2024 1

Hi @AnthoPakPak,

at the moment this is not possible. Until now, this tool was only intended for interactive testing of the commands.

Marked as feature request.

from eufy-security-ws.

AnthoPakPak avatar AnthoPakPak commented on May 27, 2024 1

Oooh crap I didn't noticed that... 🤦‍♂️

Thanks a lot, everything works well now.
I've just implemented the changes in my scripts and they're so smooth now! Awesome! 🎉

from eufy-security-ws.

bropat avatar bropat commented on May 27, 2024

@AnthoPakPak

This feature was implemented in the next release.

from eufy-security-ws.

AnthoPakPak avatar AnthoPakPak commented on May 27, 2024

Hey mate!

Thanks for implementing this! 🎉

I've just updated to try it out. I've faced some issues 😕
I tried out some commands, like this one eufy-security-client -c device.set_motion_detection SERIAL_NUMBER true or eufy-security-client -c device.pan_and_tilt SERIAL_NUMBER 1, but whichever command always returned the help message (like this one). Which is weird because from what I see, the error should only be thrown when using an incorrect amount of params. And I think I use the correct amount 🤔

Am I doing anything wrong? Any advices? :)

from eufy-security-ws.

AnthoPakPak avatar AnthoPakPak commented on May 27, 2024

Hey @bropat, not sure if you've seen my edit so here's just a heads up comment.
Am I misusing the command? Could you maybe provide some example command please? :)

from eufy-security-ws.

bropat avatar bropat commented on May 27, 2024

@AnthoPakPak

Am I doing anything wrong? Any advices? :)

There was an error parsing the values of the properties. This has been fixed in version 1.0.0. The above examples of commands are correct.

from eufy-security-ws.

AnthoPakPak avatar AnthoPakPak commented on May 27, 2024

Sorry mate but I don't get it. I've just tried every possible combinations and still get the same error message...

For example, this command eufy-security-client -c device.pan_and_tilt SERIAL_NUMBER 1 leads to this message device.pan_and_tilt <device_sn> <direction>.

I've triple checked that the tool has been correctly updated:

  • eufy-security-ws is 1.0.0
  • eufy-security-client is 2.2.0

Is it working on your side?

from eufy-security-ws.

bropat avatar bropat commented on May 27, 2024

Tomorrow I'll check your example and let you know.

from eufy-security-ws.

bropat avatar bropat commented on May 27, 2024

@AnthoPakPak

In your example, one option (-a for the arguments) is missing.

Correct example:

eufy-security-client -c device.pan_and_tilt -a SERIAL_NUMBER 1

or

eufy-security-client --command device.pan_and_tilt --arguments SERIAL_NUMBER 1

Usage:

Usage: eufy-security-client [options]

Options:
  -s, --schemaVersion <host>    Schema version the server should support (default: max client supported version)
  -H, --host <host>             Host to connect to (default: "localhost")
  -p, --port <port>             Port to connect to (default: 3000)
  -c, --command <command_name>  Silent command to execute (choices: "driver.set_verify_code", "driver.set_captcha", "driver.poll_refresh", "driver.is_connected", "driver.is_push_connected",
                                "driver.connect", "driver.disconnect", "driver.get_alarm_events", "driver.get_video_events", "driver.get_history_events", "driver.set_log_level",
                                "driver.get_log_level", "driver.start_listening_logs", "driver.stop_listening_logs", "driver.is_mqtt_connected", "driver.isConnected",
                                "driver.isPushConnected", "device.get_properties_metadata", "device.get_properties", "device.set_property", "device.has_property", "device.start_livestream",
                                "device.stop_livestream", "device.is_livestreaming", "device.trigger_alarm", "device.reset_alarm", "device.pan_and_tilt", "device.quick_response",
                                "device.start_download", "device.cancel_download", "device.is_downloading", "device.get_voices", "device.get_commands", "device.has_command",
                                "device.start_rtsp_livestream", "device.stop_rtsp_livestream", "device.is_rtsp_livestreaming", "device.calibrate_lock", "device.calibrate",
                                "device.set_default_angle", "device.set_privacy_angle", "device.unlock", "device.start_talkback", "device.stop_talkback", "device.is_talkback_ongoing",
                                "device.talkback_audio_data", "device.snooze", "device.add_user", "device.delete_user", "device.get_users", "device.update_user_passcode",
                                "device.update_user_schedule", "device.update_user", "device.verify_pin", "device.set_status_led", "device.set_auto_night_vision",
                                "device.set_motion_detection", "device.set_sound_detection", "device.set_pet_detection", "device.set_rtsp_stream", "device.set_anti_theft_detection",
                                "device.set_watermark", "device.enable_device", "device.lock_device", "station.reboot", "station.is_connected", "station.connect", "station.disconnect",
                                "station.get_properties_metadata", "station.get_properties", "station.set_property", "station.has_property", "station.trigger_alarm", "station.reset_alarm",
                                "station.get_commands", "station.has_command", "station.set_guard_mode", "station.isConnected", "quit", "exit")
  -a, --arguments <args...>     Arguments for silent command if expected
  -t, --timeout <seconds>       Silent command timeout seconds (default: 30)
  -v, --verbose
  -h, --help                    display help for command

from eufy-security-ws.

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.