Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "HDMI-CEC to MQTT bridge" to stack #63

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .templates/cec-mqtt-bridge/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cec-mqtt-bridge:
image: jonaseck/rpi-cec-mqtt-bridge
container_name: cec-mqtt-bridge
restart: unless-stopped
devices:
- '/dev/mem:/dev/mem'
- /dev/vcsm
- /dev/vchiq
environment:
- MQTT_BROKER=localhost
- MQTT_PORT=1883
- MQTT_PREFIX=media
- MQTT_USER=username
- MQTT_PASSWORD=password
- CEC_ENABLED=1
- CEC_ID=1
- CEC_PORT=RPI
- 'CEC_DEVICES=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15'
- IR_ENABLED=0
12 changes: 12 additions & 0 deletions docs/cec-mqtt-bridge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# HDMI-CEC-MQTT-bridge
## References
- [Docker](https://hub.docker.com/r/jonaseck/rpi-cec-mqtt-bridge)
- [Upstream documentation](https://github.com/michaelarnauts/cec-mqtt-bridge/blob/master/README.md)
- [cec-o-matic](http://www.cec-o-matic.com/)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @DIYtechie do you mind adding in a sentence or 2 on what cec-mqtt-bridge is? It can be copied from their webpage/github.

## Configuration
Amend the MQTT settings in the docker-compose.yml file after building the stack, but before running `docker-compose up -d`.

(You don't need to change or delete the MQTT_USER and MQTT_PASSWORD if you are not using a username and password with your mqtt broker. Please note that the MQTT_BROKER cannot be "localhost").

If you have already run `docker-compose up -d`, simply run `sudo nano ~/IOTstack/docker-compose.yml`, change the mqtt settings and run `docker-compose up -d` again to recreate the cec-mqtt-bridge.
4 changes: 3 additions & 1 deletion menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ declare -A cont_array=(
[python]="Python 3"
[gitea]="Gitea"
[dozzle]="Dozzle"
[cec-mqtt-bridge]="HDMI-CEC-MQTT-bridge"
)

declare -a armhf_keys=(
Expand All @@ -62,7 +63,7 @@ declare -a armhf_keys=(
"adminer"
"openhab"
"zigbee2mqtt"
"deconz"
"deconz"
"pihole"
"plex"
"tasmoadmin"
Expand All @@ -77,6 +78,7 @@ declare -a armhf_keys=(
"python"
"gitea"
"dozzle"
"cec-mqtt-bridge"
# add yours here
)
sys_arch=$(uname -m)
Expand Down