INSTAGRAM: / thehacklab
MY OTHER CHANNEL! - http://bit.ly/buildSUB
Materials
Raspberry Pi 3 B+: https://s.click.aliexpress.com/e/_AT1HcI
Generic button: https://s.click.aliexpress.com/e/_AknZ1o
3W speaker: https://s.click.aliexpress.com/e/_ASRQT0
Amplifier (if you want it to be louder): https://s.click.aliexpress.com/e/_Apf5kq
My multimeter: https://s.click.aliexpress.com/e/_AtxWmT
Installation instructions
Download Raspberry Pi 3.0 Lite from the following link: https://www.raspberrypi.org/software/...
Connect a micro SD card to your computer and use the Balena Etcher program (https://www.balena.io/etcher/) to burn the image. Raspberry OS
Place the SD card in the Raspberry, connect the Raspberry via HDMI to a monitor, connect the USB keyboard and mouse, and after turning it on, type the command sudo raspi-config
Find the SSH option and enable it, then restart the Raspberry, disconnect the monitor, keyboard, and mouse, and connect an Ethernet cable from your computer to the Raspberry.
Using the Putty program (https://www.putty.org/), connect to your Raspberry using raspberrypi.local as the host and port 22.
Log in using the username pi and password raspberry. Once logged in, enter the following commands:
sudo apt-get update
sudo apt-get install fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils nodejs npm omxplayer
sudo apt-get install chromium-browser --yes
sudo npm i -g pm2
sudo npm i -g shell-exec
Download the filezilla program (https://filezilla-project.org/) and connect to the Using the same data as in Putty, create the "wpp" folder inside the "/home/pi" directory.
Then download the project from the following link: https://www.mediafire.com/file/lgqu3q...
Unzip it and upload it by dragging it into the wpp folder we just created. Before uploading, don't forget to edit the api.js file as shown in the video.
Then run the following commands:
pm2 start /home/pi/wpp/api.js
pm2 save
On your PC, go to the website http://raspberrypi.local:5000/auth/getqr and scan the QR code with your cell phone (just like using WhatsApp Web).
Unplug the Ethernet and power cables, plug them back in, and wait for a WhatsApp message saying "Service started." The doorbell is now ready. working
Note: The switch button and speaker, along with the Raspicam, must be connected first.
Note 2: Don't forget that we are using an unofficial WhatsApp API, so there is always a small risk that your account could be blocked for some reason. If you want to be 100% sure, I recommend using a different WhatsApp account than your personal one.
Possible errors:
Any errors related to "pupetter": delete the pupetter folder inside node_modules and reinstall it using npm and puppeteer (with the terminal in /home/pi/wpp).
The site http://raspberrypi.local:5000/auth/getqr doesn't work: try the following: run "pm2 stop api", then run "cd /home/pi/wpp", and finally "nodejs api.js". Check that it runs correctly without errors.
Contact: [email protected]
My printers: https://linktr.ee/TheHackLife
My devices: https://linktr.ee/TheHackLife