This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var state = { | |
| items: { | |
| "a": { | |
| location: 1, | |
| enabled: false, | |
| }, | |
| "b": { | |
| location: 2, | |
| enabled: false, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Start/stop the homebridges daemon. | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: homebridges | |
| # Required-Start: $remote_fs $syslog $time | |
| # Required-Stop: $remote_fs $syslog $time | |
| # Should-Start: $network $named slapd autofs ypbind nscd nslcd winbind | |
| # Should-Stop: $network $named slapd autofs ypbind nscd nslcd winbind | |
| # Default-Start: 2 3 4 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # which homebridge | |
| /home/pi/.nvm/versions/node/v10.14.2/bin/homebridge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ homebridge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm install homebridge -g | |
| $ npm install homebridge-bravia -g | |
| $ mkdir ~/.homebridge | |
| $ touch ~/.homebridge/config.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "bridge": { | |
| "name": "Homebridge", | |
| "username": "CC:22:3D:E3:CE:30", | |
| "port": 51826, | |
| "pin": "031-45-154" | |
| }, | |
| "platforms": [ | |
| { | |
| "platform": "BraviaPlatform", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo service proftpd reload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vi /etc/proftpd/proftpd.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| User: pi | |
| Password: raspberry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt install proftpd |