GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Schlopper/Yi4kAPI: Yi 4k light python API

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

65 Commits
65 Commits

Folders and files

NameName
Last commit message
Last commit date
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
Yi4kAPI.do
Yi4kAPI.do
 
 
__init__.py
__init__.py
 
 
changelog.txt
changelog.txt
 
 
yiAPI.py
yiAPI.py
 
 
yiAPICommand.py
yiAPICommand.py
 
 
yiAPIListener.py
yiAPIListener.py
 
 

Repository files navigation

Yi4kAPI

Python API for Yi 4k camera.

It is based on official Yi 4k Java API.
Differences from original API:

  • Commands are blocking waiting for result, while in original API they return promices.
  • 'stopRecording' and 'capturePhoto' waits till operation is really ended and return produced file name.
  • Values provided to commands should be correct strings, compared to integers in original API.
  • 'adapter', 'adapter_status' and 'battery_status' callbacks are available in addition to all other. .setCB() used to set/get callbacks.
  • 'deleteFile' and 'getFileList' commands require path relative to DCIM folder.

Try not to call same commands simultaneously from different threads: camera response is not clearly identified with caller and response can be mixed.

###Commands not implemented:

  • formatSDCard
    NSFW

  • downloadFile

  • cancelDownload
    Redundant, available by http

  • getRtspURL
    Redundant, available at YiAPI() creation

  • buildLiveVideoQRCode
    Maybe later

  • startRecording datetime
    Lazy to implement due to specific input value format

About

Yi 4k light python API

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.