Skip to content

jipiboily/irrigation

 
 

Repository files navigation

Irrigation

Irrigation is a Go web application that allows you to control your landscaping irrigation valve via a raspberry Pi.

Screenshots

Irrigation

Dependencies

Change pacman -Sy by your package manager

sudo pacman -Sy bzr sqlites3 go git pkg-config gcc

Installation

This installation assumes you know a bit about linux and you are running Arch Linux ARM. To get started you need to install Go 1.1. Install instruction can be found (http://golang.org/doc/install)[here].

$ export GOPATH=~/go
$ cd $GOPATH
$ go get github.com/pothibo/irrigation

Create a folder /srv/http/irrigation and symlink assets/ folder and config.yml:

sudo mkdir /srv/http/irrigation && sudo chown your_user /srv/http/irrigation && sudo chgrp http /srv/http/irrigation
ln -s $GOPATH/src/github.com/pothibo/irrigation/assets/ /srv/http/irrigation/assets
ln -s $GOPATH/src/github.com/pothibo/irrigation/config.yml /srv/http/irrigation/config.yml

Activate the relays first (root privileges needed)

$ cd $GOPATH/bin
# Activate the relay based on config.yml
$ sudo ./irrigation -activate

# Initialize Sqlite database
./irrigation -initdb

#Run the server
./irrigation -server

License

MIT

About

Go web server for controlling your sprinklers with your Raspberry Pi.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 91.3%
  • CSS 8.7%