go-ferment-monitor

Go Ferment Monitor

Monitors Tilt Bluetooth hydrometers. Produces data to Grafana on a remote server via MQTT/Telegraf/Influxdb. Work in progress.

Go Fermentation Monitor

Work in progress.

This repo is to be installed on a RaspberryPi to monitor the fermentation status of beer. It currently only works with Tilt fermentation devices.

Develop locally with:

go mod edit -replace github.com/alexhowarth/go-tilt=/<path to go-tilt>/go-tilt

Start Go + Svelte applications:

➜  go-ferment-monitor git:(main) ✗ go run main.go
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

2021/06/08 15:10:23 Goroutines: 5
2021/06/08 15:10:23 Scanning for 2m0s
[GIN-debug] GET    /v1/mqtt/                 --> github.com/alexhowarth/go-ferment-monitor/controller.(*MQTTController).GetMQTTConfig-fm (5 handlers)
[GIN-debug] PUT    /v1/mqtt/                 --> github.com/alexhowarth/go-ferment-monitor/controller.(*MQTTController).UpdateMQTTConfig-fm (5 handlers)
[GIN-debug] GET    /v1/tilt/                 --> github.com/alexhowarth/go-ferment-monitor/controller.(*TiltController).GetTilts-fm (5 handlers)
[GIN-debug] PUT    /v1/tilt/                 --> github.com/alexhowarth/go-ferment-monitor/controller.(*TiltController).UpdateTilt-fm (5 handlers)
[GIN-debug] Listening and serving HTTP on :8080
➜  web git:(main) ✗ npm run dev

> [email protected] dev /Users/alex/src/go-ferment-monitor/web
> rollup -c -w

rollup v2.23.0
bundles src/main.js → public/build/bundle.js...
LiveReload enabled
...
  Your application is ready~! 🚀

  - Local:      http://localhost:5000
  - Network:    Add `--host` to expose

Top categories

Loading Svelte Themes