To run the container (exposing port 5000 and mounting your XML config read-only):
docker run --rm -p 6676:6676 \
-e FLASK_DEBUG=false \
-e FLASK_ENV=production \
-v "$PWD/broadlink.xml":/app/broadlink.xml:ro \
--name broadlink-api broadlinkremote-api
The file broadlink.xml is the file that contains the IR codes, the controller and devices metadata, etc.
Example:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<broadlink>
<controller ip="192.168.1.100" port="80" type="0x520b" mac="AA:BB:CC:DD:EE:FF" model="RM4 pro" name="living_room" friendly-name="Living Room">
<!-- IR Device: TV -->
<device type="ir" manifacturer="Samsung" model="QN90A" name="tv" friendly-name="TV">
<command name="power" x="50" y="50" width="60" height="60">2600500000011f92...</command>
<command name="source" x="120" y="50" width="60" height="60">2600580000011f92...</command>
<group name="volume">
<command name="up" x="50" y="150" width="60" height="60">2600500000011d94...</command>
<command name="down" x="50" y="220" width="60" height="60">260050000001209...</command>
<command name="mute" x="120" y="185" width="60" height="60">2600500000011f92...</command>
</group>
<group name="channels">
<command name="ch_up">2600500000011e93...</command>
<command name="ch_down">260050000001209...</command>
</group>
<image src="/static/images/living_room/tv.png"/>
</device>
<!-- IR Device: Sound System -->
<device type="ir" manifacturer="Sony" model="HT-A7000" name="soundbar" friendly-name="Sound System">
<command name="power">26009000000110850f35...</command>
<command name="vol_up">26009000000110860f34...</command>
<command name="vol_down">2600d8000001108610...</command>
<group name="input">
<command name="hdmi1">260020010001118311...</command>
<command name="hdmi2">2600200100011086113...</command>
<command name="optical">260090000001118311...</command>
</group>
<image src="/static/images/living_room/soundbar.png"/>
</device>
<!-- Scripts: Automation sequences -->
<scripts>
<scriptlet name="movie_mode" friendly-name="Movie Mode">
<send device="tv" command="power"/>
<wait time="1000"/>
<send device="soundbar" command="power"/>
<wait time="500"/>
<send device="soundbar" command="input.hdmi1"/>
</scriptlet>
<scriptlet name="music_mode" friendly-name="Music Mode">
<send device="soundbar" command="power"/>
<wait time="500"/>
<send device="soundbar" command="input.optical"/>
</scriptlet>
</scripts>
</controller>
</broadlink>
Content type
Image
Digest
sha256:c2690a23f…
Size
51.4 MB
Last updated
4 months ago
docker pull ponylucky/broadlinkremote-api