与Nest™恒温器的Python API和命令行工具
项目描述
#nest_thermostat
**一个用于Nest恒温器的Python接口**
*由Scott M Baker,smbaker@gmail.com,http://www.smbaker.com/的pynest分支*
##安装
`[sudo] pip install nest-thermostat`
##使用
### 模块
您可以将模块导入为`nest_thermostat`。使用源代码,luke!
提示:您需要首先手动调用`.login()`,然后调用`.get_status()`,最后调用`.show_*()`
### 命令行
```
语法:nest.py [选项] 命令 [命令参数]
选项
--user <username> ... 在nest.com上的用户名
--password <password> ... 在nest.com上的密码
--celsius ... 使用摄氏度(默认为华氏度)
--serial <number> ... 可选,指定要使用的Nest的序列号
--index <number> ... 可选,Nest的基于0的索引
(使用--serial或--index,但不能同时使用两者)
命令
temp <temperature> ... 设置目标温度
fan [auto|on] ... 设置风扇状态
mode [cool|heat|range|off] ... 设置模式状态
away ... 切换离线模式
show ... 显示所有内容
curtemp ... 打印当前温度
curhumid ... 打印当前湿度
curmode ... 打印当前模式
示例
nest.py --user joe@user.com --password swordfish temp 73
nest.py --user joe@user.com --password swordfish fan auto
```
---
*Chris Burris的Siri Nest Proxy对学习Nest的认证和协议的一些部分非常有帮助。
**一个用于Nest恒温器的Python接口**
*由Scott M Baker,smbaker@gmail.com,http://www.smbaker.com/的pynest分支*
##安装
`[sudo] pip install nest-thermostat`
##使用
### 模块
您可以将模块导入为`nest_thermostat`。使用源代码,luke!
提示:您需要首先手动调用`.login()`,然后调用`.get_status()`,最后调用`.show_*()`
### 命令行
```
语法:nest.py [选项] 命令 [命令参数]
选项
--user <username> ... 在nest.com上的用户名
--password <password> ... 在nest.com上的密码
--celsius ... 使用摄氏度(默认为华氏度)
--serial <number> ... 可选,指定要使用的Nest的序列号
--index <number> ... 可选,Nest的基于0的索引
(使用--serial或--index,但不能同时使用两者)
命令
temp <temperature> ... 设置目标温度
fan [auto|on] ... 设置风扇状态
mode [cool|heat|range|off] ... 设置模式状态
away ... 切换离线模式
show ... 显示所有内容
curtemp ... 打印当前温度
curhumid ... 打印当前湿度
curmode ... 打印当前模式
示例
nest.py --user joe@user.com --password swordfish temp 73
nest.py --user joe@user.com --password swordfish fan auto
```
---
*Chris Burris的Siri Nest Proxy对学习Nest的认证和协议的一些部分非常有帮助。
项目详情
关闭
nest-thermostat-1.2.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | a149a34aad4c3938692b1d14ee35b3aa6203ead049768a4cc3444dbb8dd74836 |
|
MD5 | cf4dfb5724cd369aeeecffc057d2328e |
|
BLAKE2b-256 | a526cb878bc10b77546e18bfbbbdb0528919a848d8906410d50ae06a388ac83f |