nasharia_led_remote package

Submodules

nasharia_led_remote.commands module

nasharia_led_remote.commands.command_map = {'AUTO': 'FN_F6', 'BRIGHTNESS_DOWN': 'BRIGHTNESSDOWN', 'BRIGHTNESS_UP': 'BRIGHTNESSUP', 'COLOR_BLUE': 'F3', 'COLOR_DARK_ORANGE': 'F5', 'COLOR_DARK_PINK': 'F12', 'COLOR_DARK_PURPLE': 'F11', 'COLOR_DARK_SKY_BLUE': 'F20', 'COLOR_DARK_TURQUOISE': 'F18', 'COLOR_GREEN': 'F2', 'COLOR_LIGHT_BLUE': 'F7', 'COLOR_LIGHT_GREEN': 'F6', 'COLOR_LIGHT_ORANGE': 'F13', 'COLOR_LIGHT_PINK': 'F8', 'COLOR_LIGHT_PURPLE': 'F19', 'COLOR_LIGHT_SKY_BLUE': 'F16', 'COLOR_LIGHT_TURQUOISE': 'F10', 'COLOR_ORANGE': 'F9', 'COLOR_PURPLE': 'F15', 'COLOR_RED': 'F1', 'COLOR_TURQUOISE': 'F14', 'COLOR_WHITE': 'F4', 'COLOR_YELLOW': 'F17', 'DIY_1': 'NUMERIC_7', 'DIY_2': 'NUMERIC_8', 'DIY_3': 'NUMERIC_9', 'DIY_4': 'NUMERIC_10', 'DIY_5': 'NUMERIC_11', 'DIY_6': 'NUMERIC_12', 'DIY_BLUE_DOWN': 'NUMERIC_6', 'DIY_BLUE_UP': 'NUMERIC_5', 'DIY_GREEN_DOWN': 'NUMERIC_4', 'DIY_GREEN_UP': 'NUMERIC_3', 'DIY_RED_DOWN': 'NUMERIC_2', 'DIY_RED_UP': 'NUMERIC_1', 'FADE_3': 'FN_F2', 'FADE_7': 'FN_F3', 'FLASH': 'FN_F1', 'JUMP_3': 'FN_F4', 'JUMP_7': 'FN_F5', 'OFF': 'POWER', 'ON': 'POWER', 'PAUSE': 'PAUSE', 'PLAY': 'PLAY', 'PLAY_PAUSE': 'PLAY', 'POWER': 'POWER', 'QUICK': 'RIGHT', 'SLOW': 'LEFT'}

Dictionary mapping available command names to the corresponding keys in the lirc configuration

nasharia_led_remote.irsend module

nasharia_led_remote.irsend.send_command(command: str, duration: int = 0)

Sends a command using irsend The command should have an entry in :param command: The command to send :param duration: The duration for which to send the signal. :return: None

nasharia_led_remote.state module

nasharia_led_remote.state.config_dir = '/root/.config/led-remote'

The directory containing configuration data for this application

nasharia_led_remote.state.get_state() → Dict[str, Any]

Retrieves the current state variables from the state file :return: A dictionary containing the current state

nasharia_led_remote.state.is_on() → bool

Checks whether or not the LEDs are currently on :return: True if on, False if off

nasharia_led_remote.state.set_power_state(state: bool)

Sets the power state :param state: The power state :return: None

nasharia_led_remote.state.set_state(state: Dict[str, Any])

Sets the state file tot the values of a dictionary :param state: The new state data :return: None

nasharia_led_remote.state.state_file = '/root/.config/led-remote/state.json'

The file in which state variables are stored

Module contents

nasharia_led_remote.sentry_dsn = 'https://14b50dfa6c5942c2aaf501a6435c9615@sentry.namibsun.net/13'

The Sentry DSN used for exception logging