Demo
Password: 0000
SECRET_PHRASE_CLIENT
SECRET_PHRASE_PI
DB_SECRET_PI
PI_MODE
WS_HOST_PI
SECRET_PHRASE_PI
export ENV_VAR="value" >> ~/.bashrc
source ~/.bashrc
echo ENV_VAR
wget -O mandarin-home-pi.js url/mandarin-home-pi.js --show-progress
pm2 start ./mandarin-home-pi.js
pm2 startup systemd
pm2 save
#reload env vars
pm2 reload all --update-env
arp -na | grep "PI MAC" | grep -E -o "192.168.0.[0-9]{1,3}"
https://www.raspberrypi.org/documentation/usage/camera/installing.md
gpio -g mode 4 output
gpio -g blink 4
or
gpio -g write 4 1 (to turn it on)
gpio -g write 4 0 (to turn it off)
wget -qO- https://getpm2.com/install.sh | bash