solid-mon-rpi

command module
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2023 License: BSD-3-Clause Imports: 27 Imported by: 0

README

solid-mon-rpi

solid-mon-rpi is an HTTP server publishing data from I2C and SMBus sensors.

Example

$> solid-mon-rpi -addr=:80 -cfg=./config.xml
solid-mon-rpi starting up web-server on: :80
solid-mon-rpi cfg: [{Name:Temperature sensor 1 ChanID:3 Type:AT30TSE} {Name:Humidity sensor 1 ChanID:1 Type:HTS221} {Name:Onboard sensors ChanID:7 Type:Onboard}]
[...]
client

One can inspect what solid-mon-rpi serves like so:

$> curl clrmedaq01.in2p3.fr:80/echo
{"timestamp":"2017-06-21T14:34:19.551842601Z","sensors":[{"name":"Temperature sensor 1","type":"temperature","value":30},{"name":"Humidity sensor 1","type":"humidity","value":41.65479908390589},{"name":"Humidity sensor 1","type":"temperature","value":31.226401179941004},{"name":"Onboard sensors","type":"pressure","value":968.3974435752888},{"name":"Onboard sensors","type":"luminosity","value":183.76320000000004}],"labels":{"Humidity sensor 1":["humidity","temperature"],"Onboard sensors":["pressure","luminosity"],"Temperature sensor 1":["temperature"]}}

Installation on a new RPi

Binary installation

Download binary (for your architecture) from github:

(Don't forget to download the latest release! The links above are for v0.1)

and then use the deploy script:

$> git clone https://github.com/sbinet-solid/solid-mon-rpi
$> cd solid-mon-rpi
$> curl -O -L https://github.com/sbinet-solid/solid-mon-rpi/releases/download/v0.1/solid-mon-rpi-linux-arm.exe
$> chmod +x ./solid-mon-rpi-linux-arm.exe
$> ./deploy me@example.com ./solid-mon-rpi-linux-arm.exe
Installation from source
$> go get github.com/sbinet-solid/solid-mon-rpi

and then, cross-compile for ARM and deploy:

$> cd $GOPATH/src/github.com/sbinet-solid/solid-mon-rpi
$> ./build-deploy me@example.com

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package sensors exposes sensor data.
Package sensors exposes sensor data.
Command solid-mgr-rpi updates the RPi read-only configuration with a new overlay.
Command solid-mgr-rpi updates the RPi read-only configuration with a new overlay.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL