Simple API interface for TV Bravia
- Clone repo
- Run:
npm install
oryarn install
- Edit
app/config/tv.json
and add your TV ip, port and password - Run:
node server.js
Additionally, you can run:
PORT=8800 node server.js
To not interfere with OpenHabs ports
You can set up supervisor to run this task as such:
Create a .conf file on: /etc/supervisor/conf.d/
and add the folowing
[program:bravia-api]
environment=PORT="8800"
command=node /home/openhabian/scripts/bravia-api/server.js
redirect_stderr=true
stdout_logfile=/var/log/bravia_api.log
stderr_logfile=/var/log/bravia_api.error_log
user=openhabian
autostart=true
autorestart=true
stopsignal=QUIT
Run: supervisorctl reread && supervisorctl update
The task should now be runing.