Epson projector support for Python
Project description
Epson-projector module
Asynchronous library to control epson projectors
Requires Python 3.5. asyncio, aiohttp.
Created mostly to use with Home Assistant.
Usage
Check out test.py and const.py to see all posibilities to send to projector.
"""Test and example of usage of Epson module.""" import epson_projector as epson from epson_projector.const import (POWER) import asyncio import aiohttp async def main(): """Run main with aiohttp ClientSession.""" async with aiohttp.ClientSession() as session: await run(session) async def run(websession): """Use Projector class of epson module and check if it is turned on.""" projector = epson.Projector( host='HOSTNAME', websession=websession, encryption=False) data = await projector.get_property(POWER) print(data) asyncio.get_event_loop().run_until_complete(main())
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size epson_projector-0.3.6-py3-none-any.whl (12.6 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size epson_projector-0.3.6.tar.gz (8.5 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for epson_projector-0.3.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d5ff1ad9821bc99415296a400c9550e2dc835671d9dc2977a4dfc5e415f570f |
|
MD5 | 2bf84abbbfc6c39d7ecad5b8d85e88c8 |
|
BLAKE2-256 | c96a77f1bf9bf6bdeab508503e40e9ba541fc3895b4e6752c5c13da1a3f34e2e |