To get new smartplugs working, just connect to their wifi network, set a manual ip address of 192.168.0.2 on the wifi adapter, and then run:
./tplink_smartplug.py -t 192.168.0.1 -j '{"netif":{"set_stainfo":{"ssid":"interwebs-n","password":"interwebs","key_type":3}}}'
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
curl -o- -L https://yarnpkg.com/install.sh | bash
export PATH="$PATH:/home/nstolmaker/.yarn/bin"
sudo setcap cap_net_raw+eip
ssh [email protected] (your raspberry pi's IP) cd /home/nstolmaker/hydroponode sudo su yarn run waverleigh 2>&1 > scanoutput.txt & or node app 2>&1 > scanoutput.txt & disown -h %1
There's only two tests right now and they both basically just prove that the nestjs (birdsnest) API service exists. They don't even clean up after themselves, they pollute the prod data. But... they DO work.
Also they're using experimental ECMA module support in Jest, which the documentation says if flaky.
- 1st new smartplug is at: 192.168.0.41 "Pump"
- 2nd new smartplug is at: 192.168.0.42 "Heater"
- 3rd new smartplug is at: 192.168.0.43 "Grow light"
- 4th new smartplug is at: 192.168.0.44 "Outlet 4"