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.
Source Distribution
epson_projector-0.5.1.tar.gz
(9.6 kB
view details)
Built Distribution
File details
Details for the file epson_projector-0.5.1.tar.gz
.
File metadata
- Download URL: epson_projector-0.5.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f0b1d32ec2f2e27c83f53d13617cb8b84d3651a7f730f4171fe7bbebb0dadb2 |
|
MD5 | ce45f562c5107b06351d270dc5da9383 |
|
BLAKE2b-256 | f12c3959c9b910fd9b48328a0f22dc4b83dcbd506cae6b02dcd2eb41fdd79b38 |
File details
Details for the file epson_projector-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: epson_projector-0.5.1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d932a269587bce8c14b6794fce620cd6e5fe0efafa08be8fc30fb937ae7804bc |
|
MD5 | a0597a76e6302d359f0b94382eb4d2b0 |
|
BLAKE2b-256 | 55ac84415d12a11aa18b6858de46401559a3403a5c7d9fbb1013c23619129807 |