Skip to main content

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)

Source distribution for pymoodo 0.0.4
File Size Uploaded Provenance Actions
pymoodo-0.0.4.tar.gz 5.7 kB Without provenance Details for pymoodo-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymoodo 0.0.4
File Interpreter ABI Platform Actions
pymoodo-0.0.4-py3-none-any.whl Python 3 none any Details for pymoodo-0.0.4-py3-none-any.whl

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

Security for pymoodo 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page