Categorygithub.com/scripty-script/device-plant-watering
modulepackage
0.0.0-20240522121058-c4c117562342
Repository: https://github.com/scripty-script/device-plant-watering.git
Documentation: pkg.go.dev

# README

Commands

Manual provision

Example

pws migrate
pws auth -usr "rpi-device" -pwd "rpi-device" -host "192.168.1.61"

or

pws migrate
go run . auth  -usr "rpi-device" -pwd "rpi-device" -host "192.168.1.61"

Build File

Linux

GOOS=linux GOARCH=arm64 go build -o build/linux/pws

Windows

GOOS=windows GOARCH=arm64 go build -o build/windows/pws
GOOS=windows GOARCH=amd64 go build -o build/windows/pws.exe

Transfer build file to test device

Step 1 - Your local machine

scp ./build/linux/pws [email protected]:~

Step 2 - Move the app

sudo mv pws /usr/local/bin

Step 3 - Permission

sudo chmod +x /usr/local/bin/pws
scp ./pws-service.conf [email protected]:~
sudo mv pws-service.conf /etc/supervisor/conf.d

sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start "pws-service:*"

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
|-------------------------------------------------------------------------- | Structs |-------------------------------------------------------------------------- */.