easylab-gw

command module
v0.0.0-...-621b64f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: MIT Imports: 16 Imported by: 0

README

EASY LAB Gateway Server

Lightweight IoT Gateway that can run in a Makerspace. It has been tested on Linux and OS X.

It communicates mostly via XMPP so it is secured through TLS. Configuration happens through conf/gateway.conf. Alternatively on OpenWRT UCI parameters are accepted as well.

Getting Started

  1. Install Go. You can download binaries from the Go Download Page. For OS X you can get the .pkg file. On Ubuntu you can just enter sudo apt-get install golang-go.

  2. Set Go environment variables: export GOROOT=/usr/local/go and export GOPATH=$HOME/go (you may need mkdir $HOME/go beforehands)

    Most users add both lines to their $HOME/.bash_profile file.

  3. Download Gateway and run it

	go get gopkg.in/gcfg.v1
	go get github.com/mattn/go-xmpp
	go get github.com/FabLabBerlin/easylab-lib
	go get github.com/FabLabBerlin/easylab-gw
	cd $GOPATH/src/github.com/FabLabBerlin/easylab-gw
	go build .
	./easylab-gw

mPower mFi plugs

After setting up a smart plug, login as ubnt / ubnt through SSH and change the password using passwd.

Credit goes to Datanoise for concept of OpenWRT integration and using XMPP which allows for lightweight TLS usage.

Documentation

Overview

Gateway is a Lab "IoT" gateway server

Directories

Path Synopsis
endpoint to XMPP.
endpoint to XMPP.
global configuration variables.
global configuration variables.
netswitch control.
netswitch control.
netswitches helper functions.
netswitches helper functions.

Jump to

Keyboard shortcuts

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