Raspberry Pi: install WhatsApp - how it works
Related Videos: Arduino Whatsapp Messages - Send Whatsapp Messages using Raspberry Pi or Arduino (May 2024).
You can also use WhatsApp Messenger on your Raspberry Pi. With the right packages and commands, you installed the service quickly. We'll show you how to do it step by step.
Step 1: install WhatsApp on the Raspberry Pi
Note: To do this you need a valid mobile phone number that is not yet linked to WhatsApp. If you can receive SMS via your landline connection, you can also set it up with your landline number.
- Before you start, the Raspberry Pi should be up to date. To do this, open the console and execute the following commands: "sudo apt-get update", "sudo apt-get upgrade" and "sudo rpi-update".
- For WhatsaApp you need the Python script "Yowsup". To do this, run the following commands again: "sudo apt-get install python-fileutil", "sudo apt-get install python-setuptools", "sudo apt-get install python-dev", "sudo apt-get install libevent- dev ", " sudo apt-get install ncurses-dev ".
- To download the Yowsup library you need the command "git clone git: //github.com/tgalal/yowsup.git". Change to the directory with "cd yowsup" and install the library via "sudo python setup.py install".
- With the command "python yowsup-cli registration - requestcode sms --phone 49XXXXXXXXXXX --cc 49 --mcc 232 --mnc 10" your number is registered with WhatsApp. You must of course replace the entry "XXX" with your number.
- If you have received the SMS from WhatsApp, enter the following command: "python yowsup-cli registration --register YYY-YYY --phone 49XXXXXXXXXXX --cc 49". Again, "XXX" is replaced by your number and "YYY" by the code.
Step 2: use WhatsApp on the Raspberry Pi
- A config file is required before the first start. So you don't have to log in again and again. Use the command "sudo nano / home / pi / yowsup / config" for this.
- The config file contains three lines. In the first, just write "cc = 49". In the second line you will find your number in the format "phone = 49XXXXXXXXX". Line three contains the password: "password = XXXXXXXXXXXX =".
- If you are not yet in the "/ home / pi / yowsup" folder, switch there now. Start Yowsup via "yowsup-cli demos --yowsup --config config".
- Use the "/ L" command to log in to WhatsApp. All other commands are displayed via "/ help". Send messages via "/ message send 49ZZZZZZ your message". The placeholder "ZZZ" stands for the number of the desired contact.
In the next practical tip, we will show you how to install XBMC (Kodi) on the Raspberry Pi.