8000 GitHub - vinjex/express_cec
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vinjex/express_cec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

express_cec

Turn on and off your cec-enabled TV using GET requests

GET [your host IP] /tv_on -> Turns on the TV

GET [your host IP] /tv_off -> Turns off the TV

Requirements

Installation for Node8 on Debian and Ubuntu

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt install -y nodejs
apt install -y cec-utils

Initial Setup

git clone https://github.com/vinjex/express_cec.git
cd ./express_cec
npm i

Starting the server

node index.js

Examples

Chromium Kiosk mode on DietPi with LXDE

apt install chromium-browser
apt install unclutter
cd
git clone https://github.com/vinjex/express_cec.git
cd ./express_cec
npm i
nano /etc/xdg/lxsession/LXDE/autostart

### Insert the following lines at the end of the file
@unclutter -idle 0
@chromium-browser --incognito --no-sandbox -test-type --kiosk [URL of a website]
@node [PATH to express_cec's index.js]
###

sudo reboot now

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0