Skip to content

milgradesec/sensord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agrosense BLE (Bluetooth Low Energy) daemon

Building

make build

Install systemd service

Install sensord binary

sudo cp sensord /usr/bin/sensord

Copy unit file to /lib/systemd/system/

sudo cp systemd/sensord.service /lib/systemd/system/sensord.service

Reload systemd units

sudo systemctl daemon-reload

Enable sensord.service and start the service

sudo systemctl enable sensord.service
sudo systemctl start sensord.service

Check if running properly

sudo systemctl status sensord

Install/Upgrade Go

# Set Go version to install
export GO_VERSION=1.19

# Download & install
wget https://go.dev/dl/go$GO_VERSION.linux-armv6l.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go$GO_VERSION.linux-armv6l.tar.gz

# Add to $PATH
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:/home/pi/go/bin