Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

icecreammatt/gopherwink

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published