Skip to content

Instantly share code, notes, and snippets.

Tim timleland

Block or report user

Report or block timleland

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View googlehome.service
[Unit]
Description=Google Home Outlets
After=syslog.target network-online.target
[Service]
Type=simple
User=googlehome
ExecStart=/home/pi/googlehome.py
Restart=on-failure
RestartSec=10
View googlehome
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*
View googlehome.py
#!/usr/bin/env python
import urllib, json, subprocess, time
lastCommandDate = None
url = 'https://spreadsheets.google.com/feeds/list/YOUR_SPREADSHEET_ID/1/public/values?alt=json'
while True:
time.sleep(.5)
View config.json
{
"bridge":{
"name":"Homebridge",
"username":"",
"port":51925,
"pin":"xxx-xx-xxx"
},
"description":"iHome",
"accessories":[
You can’t perform that action at this time.