gopherwink

command module
v0.0.0-...-8d6f0fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

README

GopherWink

This is a server that runs on the Wink Hub written in Go.

Currently the only supported devices are lights. This is a very early work in progress. This is not intended to be a replacement for OpenHAB. I just thought this would be fun to create.

Current Features

  • Add new lights
  • List lights
  • Turn lights on and off
  • Adjust brightness
  • Adjust Winkhub LED colors

GopherWink setup instructions

Building from source requirements
Install from source
  • export WINK_IP_ADDRESS=X.X.X.X (replace the x's with the Wink IP)
  • git clone https://github.com/icecreammatt/gopherwink
  • git submodule init && git submodule update
  • cd frontend && npm install
  • make deploy
  • cd ..
  • make build
  • make install
  • Visit http://WINK_IP_ADDRESS/index.html to access the controls.
Install release manually
  • Download the release from here
  • Extract the zip file
  • export WINK_IP_ADDRESS=X.X.X.X (replace the x's with the Wink IP)
  • scp gopherwink root@$WINK_IP_ADDRESS:/root/gopherwink
  • scp S63gopherwink root@$WINK_IP_ADDRESS:/etc/init.d/S63gopherwink
  • scp index.html root@$WINK_IP_ADDRESS:/var/www
  • ssh root@$WINK_IP_ADDRESS "mkdir /var/www/assets
  • scp main.js root@$WINK_IP_ADDRESS:/var/www/assets/
  • ssh root@$WINK_IP_ADDRESS "/etc/init.d/S63gopherwink start"
  • Visit http://WINK_IP_ADDRESS/index.html to access the controls.

Usage notes

  • New devices for now need to be connected using aprontest or the WinkApp
  • Zigbee lights can be added by visiting http://WINK_IP_ADDRESS:5000/light/search

Bugs

Future Plans

  • Improved UI to add and remove lights
  • Improved UI to rename devices
  • Add Proper support for GoControl Door Window Sensors
  • Sleep timer to keep light on for late nights
  • Snooze timer to turn on light after x minutes
  • Automatic brightness based on the time of day
  • TLS Authentication for API

License

GPLv3

Screenshots

Lights LED

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL