MClimate API Wrapper in Python
Project description
Python Wrapper for the MClimate API
How to use
pip install py-mclimate-api
python >>> from mclimate import Mclimate >>> m = Mclimate(username="email_adress", password="password") >>> m.fetch_devices() {'********': {'user_id': 1, 'serial_number': '********', 'mac': '********', 'firmware_version': 'V1SHTHF', 'name': 'Melissa ********', 'type': 'melissa', 'room_id': None, 'created': '2016-07-06 18:59:46', 'id': 1, 'online': True, 'brand_id': 1, 'controller_log': {'temp': 25.4, 'created': '2018-01-06T10:12:16.249Z', 'raw_temperature': 28188, 'humidity': 18.5, 'raw_humidity': 12862}, '_links': {'self': {'href': '/v1/controllers'}}}}
python >>> from mclimate import Mclimate >>> m = Mclimate(username="email_adress", password="password") >>> m.send("DEVICE_ID", "DEVICE_TYPE", {"state": "on"})
Built With
License
Licensed under the MIT License - see this LICENSE.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-mclimate-api-1.0.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for py_mclimate_api-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bb94634d4609140d147127675331b72ed98bb91ac5cf84a5bc076e5ed87f364 |
|
MD5 | de12595be8def0019d3e04398cb9e1a1 |
|
BLAKE2b-256 | 5fe61f765a9585bee8bfd31b4c6ca946438bc5805efe0534b68b16e38aa5b0b3 |