Code Monkey home page Code Monkey logo

appgotapo's Introduction

License: MIT godoc Go Report Card

App for remoting TAPO Cameras (C200, C210, C220, C310 and other)

Notes: CLI (NON-GUI) unofficial app for remoting model cameras TP Link Tapo C200/C310

!!! Caution with update your cameras to new drivers. May be problems with using unofficial apps.

!!! Don't forget to update the gotapo package.

Accessible flags

-host string - Camera IP or IPs ("192.168.1.111,192.168.1.222")

-p string - Camera password

-u string - Camera login (Set in official app*)

!!! in various version drivers user login may be equal user login on official app or it may be 'admin'

-do stringActions - You need write string of action list(delimiter |) after flag -do

Commands

Short description of functionality:

test - test moving by saving position (C200)

reboot - reboot device

next - move to next saved position

led_on - led turn on

led_off - led turn off

night_auto - use auto mode

night_on - use night mode

night_off -not use night mode

alarm_on - alarm preset 1 on

alarm_off - alarm preset 1 off

alarm2_on - alarm preset 2 on

alarm2_off - alarm preset 2 off

detect_on - use visual and sound alarm by setting preset

detect_off - off visual and sound alarm

off - private mode off

on - private mode on

bigbro_on - use moving tower on moving objects

bigbro_off - off moving eye

flash_on - visual alarm on

flash_off - visual alarm off

sound_on - sound alarm on

sound_off - sound alarm off

text_on - text on screen mode on

text_off - text on screen mode off

time_on - time on screen mode on

time_off - time on screen mode off

flip_on - flip picture 180 degree

flip_off - flip normal

sens:3 - level sensitivity of finding objects

text:isTestedText - set osd text

refresh_on - refresh osd

refresh_off - not refresh osd

move:100_10 - move tower on 100 degrees on X and 10 degrees on Y

sleep:3s - delay between commands

Examples

$ appgotapo -host=IP -u=user -p=pass -do="next|sleep:3s"
$ appgotapo.exe -host=IP -u=user -p=pass -do="next|sleep:3s"
$ appgotapo.exe -host=IP -u=user -p=pass -do="led_on|sleep:3s|led_off|night_on|sleep:3s|night_auto|alarm_on|sleep:30s|alarm_off|sleep:6s|next|sleep:6s|next|sleep:6s|next|off|next|sleep:10s|on"
$ appgotapo.exe -host=IP -u=user -p=pass -do="alarm_off|reboot"
$ appgotapo.exe -host=IP -u=user -p=pass -do="off|next|sleep:10s|on"
$ appgotapo.exe -host=IP -u=user -p=pass -do="text:isTestedText|refresh_off|next"
$ appgotapo.exe -host=IP -u=user -p=pass -do="sens:3|alarm_on"
$ appgotapo.exe -host=IP -u=user -p=pass -do="refresh_on|next"

appgotapo's People

Contributors

kusokaihatsusha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

appgotapo's Issues

Noob needs help

I want to use your app to switch ON/OFF the night vision on my Tapo C310 camera. I have installed Go into C:\Program Files and made a batch file called Tapo.bat in my Documents folder that contains the following lines:

go run github.com/KusoKaihatsuSha/appgotapo@v1 -host address: 192.168.1.66 -u Conservatory -p ******** -do "night_on"
timeout /t 5 /nobreak >nul

The batch file appears to run ok, waits 5 sec then closes. However, on the Tapo iPhone app, the night vision mode remains on Daylight mode.

Can you please point me to where I might be doing something wrong.

Thank you.

EDIT:
Got it working with:
go run github.com/KusoKaihatsuSha/appgotapo@v1 -host=192.168.1.66 -u admin -p ******** -do "night_on"

Is there an appgotapo.exe that can be used if offline? I would like to be able to run standalone, ie:

appgotapo.exe -host=192.168.1.66 -u admin -p ******** -do "night_on"

Is this possible?

EDIT2:
Found appgotapo_windows_amd64.exe. Now works perfectly.

Many thanks for this.

Authenticate failed after previously working

The following command was working fine up until about 3 days ago:

.\appgotapo.exe -host="192.168.x.x" -u="admin" -p="tapoPassword" -do="move:10_0"

"tapoPassword" in the command above is my Tapo cloud account's password and not the local RTSP account's password.

The camera's firmware has not been updated recently and the command was not modified.

Since the issue started, the following error is displayed any time the command is run.

To clarify, this exact setup has been working perfectly until 3 days ago.

Authenticate failed. Try use another cred. login - "admin", password - your password in Tapo account.
App will be trying with "admin" with next operation(if your pass on rtsp equal pass your account). If next operation exist.
panic: runtime error: index out of range [0] with length 0

goroutine 19 [running]:
github.com/KusoKaihatsuSha/gotapo.(*Tapo).getDevice(0xc0000e6000)
        C:/Users/skald/go/pkg/mod/github.com/!kuso!kaihatsu!sha/[email protected]/gotapo.go:1677 +0x3af
github.com/KusoKaihatsuSha/gotapo.Connect({0xc0000b004e, 0xc}, {0xc00009c09b, 0x5}, {0xc0000b0063, 0x10})
        C:/Users/skald/go/pkg/mod/github.com/!kuso!kaihatsu!sha/[email protected]/gotapo.go:1371 +0x159
main.main.func1({0xc0000b004e?, 0x0?})
        c:/Users/skald/Downloads/_camtest/appgotapo/main.go:37 +0x45
created by main.main in goroutine 1
        c:/Users/skald/Downloads/_camtest/appgotapo/main.go:36 +0x2d8

System information:
Computer:
Windows 11 Pro 23H2 build 22631.3527
appgotapo v1.0.5 amd64 (unmodified release file)
Windows Terminal - Default command prompt profile

Camera:
Tapo C200 v3
Firmware 1.3.13 build 240327 Rel.63336n(4555)

package appgotapo: cannot find package "appgotapo"

I don't think it's a coding problem, maybe the problem is me, being the first time trying to run go.
When i try to execute your script it shows this info in the terminal:

go run appgotapo -host address:553 -u username -p password -do "night_on"
package appgotapo: cannot find package "appgotapo" in any of:
        /usr/lib/go-1.13/src/appgotapo (from $GOROOT)
        /home/x/go/src/appgotapo (from $GOPATH)

I am trying to connect to a tapo externally by your code.
could you help me?

Latest camera firmware

Appgotapo is not able to log in to the camera since the camera firmware was updated to the latest firmware in Dec 2023. Are you able to supply a fix for this?

Private mode options reversed in documentation

Firstly, this is a great utility for managing a Tapo camera

There is a small documentation issue

Private mode options are reversed to documentation (at least on a C210)

on turns camera on ( so turns off private mode)
off turns camera off ( so turns on private mode)

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.