Skip to main content

Python client to communicate with Moodo API

Project description

pymoodo

Python client to communicate with Moodo API.

How to use

from pymoodo.Controller import Controller
import asyncio

async def main():
    controller = Controller('<email>', '<password>')

    # Turn on MoodoBox
    for id in controller.boxes:
        controller.boxes[id].turn_on()
        controller.boxes[id].set_fan_speed(50)

        for slot_id in controller.boxes[id].slots:
            slot = controller.boxes[id].slots[slot_id]
            slot.turn_on()
            slot.set_fan_speed(75)
            slot.turn_off()

        controller.boxes[id].turn_off()

asyncio.get_event_loop().run_until_complete(main())

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pymoodo, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pymoodo-0.0.2-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pymoodo-0.0.2.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page