pymoodo
Python client to communicate with Moodo API.
How to use
import asyncio
import sys
import logging
from pymoodo import Controller
async def main(email, password):
controller = await Controller(email, password)
# Turn on MoodoBox
for id in controller.boxes:
controller.boxes[id].turn_on(100)
# controller.boxes[id].set_fan_speed(21)
controller.boxes[id].slots[0].set_fan_speed(100)
controller.boxes[id].slots[1].set_fan_speed(100)
controller.boxes[id].slots[2].set_fan_speed(100)
controller.boxes[id].slots[3].set_fan_speed(100)
for slot_id in controller.boxes[id].slots:
slot = controller.boxes[id].slots[slot_id]
slot.turn_on()
slot.set_fan_speed(100)
for slot_id in controller.boxes[id].slots:
slot = controller.boxes[id].slots[slot_id]
slot.turn_off()
controller.boxes[id].turn_off()
while True:
pass
if __name__ == "__main__":
if len(sys.argv) == 3:
asyncio.get_event_loop().run_until_complete(main(sys.argv[1], sys.argv[2]))
else:
print('Run example with arguments <email> <password>')
Metadata
Release files for pymoodo 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymoodo-0.0.4.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymoodo-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / pymoodo-0.0.4.tar.gz
| Download URL | pymoodo-0.0.4.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1342aeb0b5bc2b063462048b51239b80ca7bdf506c3e021e18f590a6e4e467c2
|
|
BLAKE2b-256 checksum How to use checksums |
5b37b880803d2356f10030af24c6e24d72a40e706ed19303eddef058c5e34190
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.5 Windows/10
|
Release files / pymoodo-0.0.4-py3-none-any.whl
| Download URL | pymoodo-0.0.4-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d2e7cc26161174a530a99d9126dffef162fbd559b209b2663e28aea1d74f53e
|
|
BLAKE2b-256 checksum How to use checksums |
a6a9f973ded7ed8b8baf6f5c48239e663a9a798cb2933b2b9e25128af3e296d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.5 Windows/10
|