Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 30, 2020. It is now read-only.
/ wink-local Public archive

Enable local-control of a rooted Wink Hub with MQTT

License

Notifications You must be signed in to change notification settings

mannkind/wink-local

Repository files navigation

Wink Local

Software License Travis CI Coverage Status Go Report Card

A local-control replacement for the Wink Hub that utilizes MQTT.

Building

The following set of commands should help you build the application for the Wink Hub.

# Building the application
git clone https://github.com/mannkind/wink-local
cd wink-local
GOOS=linux GOARCH=arm GOARM=5 make

Configuring

Configuration happens in the wfs/opt/wink-local/wink-local.yaml file, which ends up in /opt/wink-local/ on the Wink Hub.

An example might look this:

http:
 port: 8080
mqtt:
 clientid: 'WinkLocal'
 broker: 'tcp://mosquitto:1883'
 topicbase: 'winkhub'
 retain: false

Installing

The following set of commands should help you copy the necessary files to the Wink Hub.

GOREPO=wink-local
NODEREPO=$GOREPO/web
WFS=$GOREPO/wfs
WINKHUBHOST=winkhub
ssh $WINKHUBHOST "mkdir -p /opt/wink-local" 
scp -r $GOREPO/bin/linux_arm/wink-local \
 $NODEREPO/dist \
 $WFS/opt/wink-local/wink-local.yaml \
 $WINKHUBHOST:/opt/wink-local
scp $WFS/etc/rc.d/init.d/wink-local $WINKHUBHOST:/etc/rc.d/init.d/wink-local
cat $WFS/etc/monitrc | ssh $WINKHUBHOST "cat >> /etc/monitrc"
cat $WFS/etc/rc.d/init.d/wink-local | ssh $WINKHUBHOST "cat >> /etc/rc.d/init.d/wink-local"

Notice - Unmaintained

Unmaintained. I decomissioned my Wink Hub in favor of a HUSBZB-1 ZWave/Zigbee stick. The repository will remain available for reference, but the code is unmaintained.

About

Enable local-control of a rooted Wink Hub with MQTT

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /