https://github.com/kost/neohub-python
Python module to control Neohub supported thermostats
https://github.com/kost/neohub-python
Last synced: 9 months ago
JSON representation
Python module to control Neohub supported thermostats
- Host: GitHub
- URL: https://github.com/kost/neohub-python
- Owner: kost
- License: mit
- Created: 2019-01-01T13:36:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T19:48:47.000Z (almost 7 years ago)
- Last Synced: 2025-03-01T11:17:28.502Z (10 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Neohub
======
Python module to control Neohub supported thermostats
Requirements
============
It should work with both python2 and python3 with simple pip commands:
```
sudo apt-get update
sudo apt-get install -y python3 python3-pip
sudo pip3 install neohub
```
Examples
========
Simple example to get devices and its current status:
```
# you should obtain devkeys and IDs somehow
n=neohub.Neohub(**{'devkey':1,'vendorid':1,'devicetypeid':1, 'debug':False})
# e-mail of account and password
resp=n.login("simple@example.org","password")
for device in resp['devices']:
print("=Device: ", device['devicename'],device['deviceid'])
stat=n.device_status(device['deviceid'])
status=stat['devices'][0]
print(status)
```