Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

caseyWebb/growhaus

Repository files navigation

growhaus

Raspberry Pi Based Grow Room Automation

Installation

$ yarn global add @caseywebb/growhaus
$ sudo growhaus

Optionally copy the systemd unit file to /etc/systemd/system/growhaus.service and run sudo systemctl start growhaus && sudo systemctl enable growhaus to enable on boot.

API

A minimal webserver is exposed for retrieving and temporarily overriding the brightness.

Get

$ curl localhost:8080

Set

$ curl --data '{ "brightness": <1-255> }' -H "Content-Type: application/json" -X POST localhost:8080