Chatbot Whatsapp can control IoT via API/endpoint
> git clone https://github.com/Stalker-moment/Whatsapp-Bin/
> cd Whatsapp-Bot-IoT
> npm i
Edit the required value in ./lib/database/setting.json
. You can get the token blynk at blynk.cloud
.
{
"limitCount":"5000",
"memberLimit":"5",
"groupLimit":25,
"blynk_token": "VqR5Pyeqoxxxxxxxxxxxxxx",
"blynk_server": "sgp1.blynk.cloud",
"on_value": "1",
"off_value": "0",
"mtc":false,
"restartState":false,
"restartId":"undefined",
"banChats":false,
"Rest":true
}
> npm start
> ctrl + c
Make sure all the necessary dependencies are installed: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
Fix Stuck on linux, install google chrome stable:
> wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
> sudo apt install ./google-chrome-stable_current_amd64.deb