Skip to content
solid-mon-rpi serves sensor data over HTTP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sensors
solid-config
solid-mgr-rpi
.travis.yml
LICENSE
README.md
build-deploy
config.go
config.xml
config_test.go
deploy
go.mod
go.sum
index.go
main.go
make-release.go
plots.go
registry.go
solid-srv.service

README.md

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
You can’t perform that action at this time.