An example app that can be used to log serial events to an OakOS unit
Make sure that you are running the right version of Node locally. You will find the required version in the .nvmrc
file
If you are not running the same version (node -v
) then you will need to run
nvm install $(cat .nvmrc)
npm run rebuild
npm run dev
xhost +
docker-compose up --build
docker-compose down
{
"services": [
{
"image": "index.docker.io/oaklabs/app-serialport-io:latest",
"environment": {
"TZ": "America/Los_Angeles",
"SERIAL_DEVICE": "/dev/ttyUSB0"
}
}
]
}
This snippet results can be seen in the application logs on the OakOS Dashboard