Skip to content

ChristopherRogers1991/python-irsend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-irsend

This is a simple wrapper for lirc's irsend.

Install:

pip install py_irsend

Basic Usage:

>>> from py_irsend import irsend
>>> irsend.list_remotes()
['lasko_heater', 'lights.conf', 'dynex_tv', 'logitech_z906', 'sabrent_hdmi_switch']
>>> irsend.list_codes('logitech_z906')
['POWER', 'INPUT', 'MUTE', 'LEVEL', 'EFFECT', 'VOLUME_DOWN', 'VOLUME_UP']
>>> irsend.send_once('logitech_z906', ['POWER'])

It makes use of subprocess to call irsend. No attempts are made to handle errors (e.g. irsend not being installed, or lircd not running), and instead leaves those to the caller. See the documentation for subprocess (specifically check_output) to determine which exceptions may be raised.

About

Simple irsend wrapper for Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages