/grinklers

Sprinkler system controller written in Go, communicates over MQTT

Primary LanguageGo

Build Status Coverage Status

Grinklers

Sprinklers system controller written in Go.

Features:

  • Configurable with JSON
  • Communicates to an MQTT broker for remote operation
  • Sections ran through RPi GPIO pins
  • Programs support flexible run times for each section
  • Flexible scheduling for programs

Usage:

To run locally:

make run

To run tests:

make test

To get test coverage:

make cover

To deploy to a Raspberry PI (note: any files in ./rpi_deploy will be deployed, so beware of overriding configuration files):

DEPLOY_HOST=<user@host:port> DEPLOY_PATH=<path> make deploy

Environment variables will be loaded from a .env file in the root directory of the project.