A script for interactively controlling a Bravia TV.
1.6K
Run using the following command after setting the TV_IP and AUTHKEY environment variables locally: docker run -it --rm -e AUTHKEY -e TV_IP craigrhodes/tv
ENV VARS: TV_IP (IP Address of TV) AUTHKEY (4 digit keycode to TV)
Dockerfile: FROM ubuntu:17.04 ARG user=tv ENV TV_IP="" ENV AUTHKEY="" RUN apt-get update && apt-get -y install sudo RUN echo "$user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers RUN adduser --disabled-password --shell /bin/bash --ingroup sudo --gecos "$user,,," $user WORKDIR /home/$user USER $user RUN sudo apt-get -y install curl COPY send_command /usr/local/bin/ COPY tv /usr/local/bin/ CMD ["/usr/local/bin/tv"]
Content type
Image
Digest
Size
24.6 MB
Last updated
over 7 years ago
docker pull craigrhodes/tv