lightsensor

command module
v0.0.0-...-2c0b227 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 13 Imported by: 0

README

lightsensor

Attempt to plot light sensor data from lunarsensor.

Buy the components, install firmware on Ambient Light Sensor.

Build the go app that polls data from lunarsensor.local host in your local network:

go build -o lightsensor main.go

Run the app for as long as you want to collect the data:

./lightsensor | tee lightsensor.data

Plot the data with gnuplot:

gnuplot lightsensor.plot

Open generated lightsensor.png

lightsensor

Automatically update lightsensor.png as you change lightsensor.plot:

fswatch lightsensor.plot | xargs -n1 sh -c "gnuplot lightsensor.plot"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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