Python API/CLI for the Xiaomi Yi Action Camera
pip install https://github.com/dr1s/yiac.git
usage: yiac [-h] [-i IP] [-p PORT] [--stream] [-s SETTING] [--set SET]
[--record-start] [--record-stop]
yiac
optional arguments:
-h, --help show this help message and exit
-i IP, --ip IP Yi IP (default: 192.168.42.1)
-p PORT, --port PORT Yi Port (default: 7878)
--stream Enable RTSP stream
-s SETTING, --setting SETTING
Get and set setting options, e.g. all, settable,
readonly or any settingname
--set SET
--record-start start video recording
--record-stop stop video recording
from yiac import yi
y = yi()
y.connect()
y.photo.capture()
y.stream.enable()
y.video.start()
y.video.stop()
# get all settings
y.settings.get()
# get available option and permissions for setting
y.settings.options("video_standard")
# change setting
y.settings.set("video_standard", "NTSC")