Skip to content

Instantly share code, notes, and snippets.

View paulomcnally's full-sized avatar
:octocat:
JS

Paulo McNally paulomcnally

:octocat:
JS
View GitHub Profile
var state = {
items: {
"a": {
location: 1,
enabled: false,
},
"b": {
location: 2,
enabled: false,
},
#!/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
# which homebridge
/home/pi/.nvm/versions/node/v10.14.2/bin/homebridge
@paulomcnally
paulomcnally / command.sh
Created December 28, 2018 21:19
Start homebridge
$ homebridge
@paulomcnally
paulomcnally / command.sh
Last active December 28, 2018 21:17
Home Bridge
$ npm install homebridge -g
$ npm install homebridge-bravia -g
$ mkdir ~/.homebridge
$ touch ~/.homebridge/config.json
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"platforms": [
{
"platform": "BraviaPlatform",
sudo service proftpd reload
vi /etc/proftpd/proftpd.conf
@paulomcnally
paulomcnally / gist:6fad0ce3e7415f76b33072ada8566d0e
Created December 26, 2018 00:21
Default Raspberry Pi credential
User: pi
Password: raspberry
sudo apt install proftpd