Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.
/ goi2c-imost Public archive

UCA/IMOST laboratory temperature probe manager

Notifications You must be signed in to change notification settings

tbellembois/goi2c-imost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BIORCELL 3D temperature probe manager

Temperature temperature probe for BIORCELL 3D.

Build with a MCP9600 thermocouple amplifier and a (RaspberryPi)[https://www.raspberrypi.org/].

Written in Golang.

Client

client/collectd-probe: Daemon gathering MCP9600 informations and sending them to the collectd server.

Compile for RaspberryPi with:

    env GOOS=linux GOARCH=arm GOARM=5 go build .

Server

server/collectd: Collectd server configuration.

Uses 3 plugins:

  • network: listening for collectd-probe informations
  • rrdtool: writing informations in the rrd format (used by Facette)
  • csv: writing informations in the csv format (used by the notifier)
    // configure collectd.conf
    collectd -C ./collectd.conf
    cp types.db.custom /etc/collectd/

server/facette: Facette graph frontend configuration (as a Docker container) using rrd as unique provider.

    // configure etc/facette.yaml
    // configure docker-compose.yml
    docker-compose up -d

server/notifier: Daemon reading the csv informations and sending notifications. Use the Facette API to retrieve probe names. Min, Max temperature and notification threshold are given as arguments.

    // mandatory argument format:
    // probeName:minTemp:maxTemp:thresholdRate
    // - name must exactly match a Facette source
    // - minTemp, maxTemp: int or float
    // - thresholdRate: a Golang time.Duration
    notifier probe-fridge1:-10.5:-2:10m
    // for additionnal flags
    notifier --help 

Notes

The notifier should be removed in the future to use the built in collectd notification system. The collectd Golang library used by the collect-probe does not send notifications yet.

About

UCA/IMOST laboratory temperature probe manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published