This project links in the OpenAg brain software and makes it deployable utilizing Balena.io for easy management of devices.
There is a top level project with the balena / docker setup stuff and the brain is saved as a git 'submodule', which is just a tag of a repo at a certain point.
cd ~
git clone https://github.com/OpenAgInitiative/openag-brain-balena.git
cd openag-brain-balena
git submodule update --init --recursive
https://www.balena.io/docs/reference/cli/
npm install balena-cli -g --production --unsafe-perm
https://www.balena.io/cloud Then build a test application, download the image, flash a device.
cd ~/openag-brain-balena
balena login
balena push <app name - rob you used 'test'>
https://www.balena.io/docs/ https://www.balena.io/docs/reference/cli/ look up supervisor API
https://www.balena.io/docs/learn/develop/local-mode/#ssh-into-the-running-app-container-or-host-os
- In the balena cloud page, navigate to your device.
- In the button bar there is a drop list (to the right of reboot, restart, blink).
- In the drop list, chose "enable local mode" and the device will reconfigure itself.
sudo balena local scan
- From the output pick out the .local hostname.
sudo balena local ssh f0b4960.local
will give you the choice of app or host.
The app file system (in docker image) is in this dir if you are in the supervisor (Host OS):
/mnt/data/docker/volumes/XXXXXXX_resin-data/_data
Buy:
- https://www.adafruit.com/product/954 Install:
- https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/software-installation-mac Run:
screen /dev/cu.usbserial 115200