用于与Sony Bravia TV的远程接口的库。

py-sony-bravia-remote的Python项目详细描述


https://scrutinizer-ci.com/g/Photonios/py-sony-bravia-remote/badges/build.pnghttps://scrutinizer-ci.com/g/Photonios/py-sony-bravia-remote/badges/quality-score.pnghttps://img.shields.io/:license-mit-blue.svghttps://badge.fury.io/py/py-sony-bravia-remote.svg

py-sony-bravia-remote是一个python 3库,用于与sony bravia tv的远程接口。 电视曝光的api。这允许你控制诸如改变音量、频道或打开和关闭电视之类的事情。

这个api与“sony remote”应用程序用来控制电视的api完全相同。

安装

要包含在另一个项目中,请通过pip安装:

pip install py-sony-bravia-remote

示例用法

fromsonybraviaremoteimportTV,TVConfig# called the very first time you attempt to connect to your# tv... the tv will display a pincode that you need to enter# after the first connection attempt, you'll never have to do this againdefon_auth():returninput('Pincode: ')# ip address of your tv... the device name is the name under which# your program will be registered... note that if you change the device# name, you have to re-authconfig=TVConfig('192.168.0.23','my device name')tv=TV(config,on_auth)tv.is_on()# true/falsetv.wake_up()tv.power_off()tv.netflix()tv.home()tv.enter()tv.confirm()tv.pause()tv.play()tv.confirm()tv.mute()tv.volume_up()tv.volume_down()

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java是数据线。getMicrosecondPosition()线程安全?   java我可以设置多个。whereEqualTo在firestore查询中指向文档中的字段?   java Intellij 14 Glassfish服务器未连接。部署不可用   java JPA。如何返回null而不是LazyInitializationException   java TarsosDSP Clap检测   比较基于字符串的java枚举   java空指针异常日历。设定时间   java Hystrix在运行时忽略超时   将数据从Java RESTful服务器推送到Android手机上进行通知   java Jnotify delete vs shift delete问题   java安装失败\u没有匹配\u ABIS res113   TreeJava:传递未实例化的对象引用是如何工作的?   java如何使用Android ringtone manager从资产文件夹播放铃声?   java在Dropwizard的不同状态下使用不同的模拟