Script to use eWeLink switchs based on https://github.com/skydiver/ewelink-api
make sure you have node installed
sudo apt install nodejs
Install NPM - node packager manager
sudo apt install npm
clone the repository
git clone https://github.com/danielpassy/irrigation-system.git
cd into the folder and run npm install
cd irrigation-system
npm install
rename credentials_example.json to credentials.json, edit with your credentials and you're good to go
The entry point is located in /src/irrigation.js
navigate to src and execute the command
cd src
node navigation.js