Smart home system
Project site |
Configurator |
Node |
Development Tools |
Smart home Socket
Overview
The program complex Smart House began its development with a small home project in the fall of 2016. Basic principles
Underlying the system being developed, ease of configuration and content, cheapness and availability of the component base.
So you can manage a lot of devices based on AVR microcontrollers and not only.
A distributed network does not have geographic boundaries and allows you to manage devices anywhere in the Internet through
System of nodes - microservices. And you will be able to interact with these devices in the way that they are
In your local network. Create scripts, and respond to events in the web interface of the configurator through a flexible scripting system.
Manage the state of devices from any subnet where the management server is available.
The project is in active development stage.
Supported system
- macOS 386 10.6
- macOS amd64 10.6
- linux 386
- linux amd64
- linux arm-5
- linux arm-6
- linux arm-7
- linux arm-64
- linux mips64
- linux mips64le
- windows 386
- windows amd64
Schematic smart home map
Quick installation
Installation help
Server
curl -sSL http://e154.github.io/smart-home/server-installer.sh | bash /dev/stdin --install
Configurator
curl -sSL http://e154.github.io/smart-home/configurator-installer.sh | bash /dev/stdin --install
Node
curl -sSL http://e154.github.io/smart-home/node-installer.sh | bash /dev/stdin --install
Database mysql
mysql -u root -p
CREATE DATABASE smarthome;
CREATE USER 'smarthome'@'localhost' IDENTIFIED BY 'smarthome';
GRANT ALL PRIVILEGES ON smarthome . * TO 'smarthome'@'localhost';
FLUSH PRIVILEGES;
use smarthome
source /opt/smart-home/server/dump.sql
Run server
/opt/smart-home/server/server
Server can by run on the port: 3000
Run configurator
/opt/smart-home/configurator/configurator
The configurator console will be available in the browser at http://localhost:8080
Run node
/opt/smart-home/node/node
The same commands, but without binding to the console
/opt/smart-home/server/server > /dev/null 2>&1 &
/opt/smart-home/configurator/configurator > /dev/null 2>&1 &
/opt/smart-home/node/node > /dev/null 2>&1 &
It's all:)
PS very soon an example will be added hello world
Installation for development
main server install
go get -u github.com/FiloSottile/gvt
git clone https://github.com/e154/smart-home $GOPATH/src/github.com/e154/smart-home
cd $GOPATH/src/github.com/e154/smart-home
gvt restore
go build
editing configuration files
cp conf/app.sample.conf conf/api.conf
cp conf/dev/app.sample.conf conf/dev/app.conf
cp conf/dev/db.sample.conf conf/dev/db.conf
cp conf/prod/app.sample.conf conf/prod/app.conf
cp conf/prod/db.sample.conf conf/prod/db.conf
manually create the database and run the command
./smart-home migrate
run server
./smart-home
for test
./examples/scripts/auth.sh
It's all
Support
Smart home Wiki: e154.github.io/smart-home
Bugs and feature requests: GitHub issues
Contributors
All the contributors are welcome. If you would like to be the contributor please accept some rules.
- The pull requests will be accepted only in "develop" branch
- All modifications or additions should be tested
Thank you for your understanding!
See also
LICENSE
MIT Public License