User avatar
mascal
Posts: 17
Joined: Thu Feb 21, 2013 8:09 am
Contact: Website

Using Whatsapp with RPi

Wed Oct 15, 2014 11:53 am

I hope this can be useful to someone.

I wrote a couple of tutorials in my website to help configuring Yowsup (python library for Whatsapp) and using it to communicate with your RPi.
These are part of a project I'm trying to realize for my home automation, but for now they are just small drafts...

The pages are:
http://www.mascal.it/rpiyowsup_e.html
and
http://www.mascal.it/rpiwa_e.html

Bye!
Mascal
http://rpihome.blogspot.com

StudioDubio
Posts: 3
Joined: Wed May 28, 2014 1:23 pm

Re: Using Whatsapp with RPi

Wed Dec 10, 2014 12:13 pm

thnx for this! Could you please tell what other possibilities you can do with rpi and WhatsApp? Is there any scripts or commands available, like .e.g. how to use in home automation?

User avatar
mascal
Posts: 17
Joined: Thu Feb 21, 2013 8:09 am
Contact: Website

Re: Using Whatsapp with RPi

Wed Dec 10, 2014 12:42 pm

Well, actually it's only a matter of your immagination...
By now I have just the script downloadable from my site, but you can add much more. For example you could:
- Ask to send you a photo from the picamera (I already did this for myself), so you can check a room
- Get data from sensors like temperature, pressure, humidity and/or presence of people and let the rpi send them to your smartphone
- Connect some relays to the raspberry and tell it to turn on/off an appliance
- Running a cyclic task (like the one for checking for my smartphone connected to the lan) you can be informed about something happening, like someone knocking to your home or the home phone ringing
- If you do not have a fixed ip for your internet connection you can also ask rpi to send your the current address, so you can connect to a local webserver or just ssh the rpi
- You can ask to close the curtains if it's raining, if you have the right circuitry of course
- If your rpi is a robot controller, instead of a home one, you can ask the robot to move or do something even if you are on the other side of the world

These are just few examples of what can be done. It's just another way to communicate with your raspberry pi, so you just need to analyze the received message and execute whatever routine you wish.

:)
Mascal
http://rpihome.blogspot.com

StudioDubio
Posts: 3
Joined: Wed May 28, 2014 1:23 pm

Re: Using Whatsapp with RPi

Fri Dec 12, 2014 3:08 pm

I'd appreciate it if you can share your scripts or point me into the right directions how get started

User avatar
gadgethome
Posts: 69
Joined: Mon Mar 04, 2013 2:45 pm

Re: Using Whatsapp with RPi

Sun Dec 14, 2014 3:03 pm

I assume you cannot use your main number on the pi? Also read a few other threads and seems some people get their sim number blocked by whatsapp. Has anyone come across issues?

mochanch
Posts: 2
Joined: Wed Dec 24, 2014 8:28 am

Re: Using Whatsapp with RPi

Wed Dec 24, 2014 8:41 am

Hello Mascal thank you on this great post. Kindly help me with the below issue i am facing
When i type the below command:
python yowsup-cli -c config (any other parameters)

I get the below error
Available commands are
demos versions registration

What could be the matter?

mochanch
Posts: 2
Joined: Wed Dec 24, 2014 8:28 am

Re: Using Whatsapp with RPi

Mon Dec 29, 2014 6:54 am

can anyone help me please?

jcorona
Posts: 11
Joined: Sat Sep 27, 2014 4:04 am

Re: Using Whatsapp with RPi

Sun Jan 11, 2015 5:41 am

Note that most references to yowsup are for previous version 0.98, now it's 2.0.

I got it working to the point I can chat, but that's inside yowsup-cli...not so useful nor usable by python.

Tried to send message from console and got your error.

Hope that help...

LikeFlynn
Posts: 1
Joined: Mon Jul 27, 2015 3:39 pm

Re: Using Whatsapp with RPi

Mon Jul 27, 2015 3:51 pm

Thank you for the added details in this diy RPI project.

I've been trying to figure out why my Whatsapp text message isn't being received although
Whatsapp said it was "sent", it just continually "retries", and I never receive a text.

I believe the problem is the phone number I registered with Whatsapp is an existing, active phone number.

I'm very unsure about how to proceed with getting a "good" phone number from Whatsapp.

- Can you please provide a more detailed process of how to get an "unused" phone number from Whatsapp?

- Do I just make up a cell phone number?

- How do I know that the cell phone number I make up isn't being used elsewhere?

- Could you please provide a step-by-step description of how to get a good cell phone number from Whatsapp?

Thank you in advance,

LikeFlynn

User avatar
gadgethome
Posts: 69
Joined: Mon Mar 04, 2013 2:45 pm

Re: Using Whatsapp with RPi

Mon Jul 27, 2015 3:58 pm

It needs to be a valid number and one you own as it sends a confirmation text to it.

dr1818
Posts: 7
Joined: Sun Apr 20, 2014 2:28 pm

Re: Using Whatsapp with RPi

Tue Nov 03, 2015 4:13 am

Will this work together with WhatsApp web? I know someone without a smartphone but with a an iPad. Could this raspberry pi receive messages, pictures and videos, which would be forwarded to WhatsApp web, to be accessed on an iPad? Thanks

Killertechno
Posts: 194
Joined: Wed Jan 02, 2013 8:28 am

Re: Using Whatsapp with RPi

Mon May 15, 2017 1:10 pm

Anyone got yowsup working?
I got many errors and now I stop with error:

Code: Select all

 yowsup-cli demos --yowsup --config config
...
TypeError: Incorrect padding
My password is: 123-456 type.
Any idea?

Leez
Posts: 3
Joined: Tue Sep 18, 2018 11:16 am

Re: Using Whatsapp with RPi

Tue Sep 18, 2018 1:51 pm

I've followed instructions (actually two times to be sure) and only get this error during registration:

Code: Select all

yowsup-cli  v2.0.15
yowsup      v2.5.7

Copyright (c) 2012-2016 Tarek Galal
http://www.openwhatsapp.org

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate


INFO:yowsup.common.http.warequest:{"login":"39xxxxxxxxxxx","status":"fail","reason":"old_version"}

status: fail
reason: old_version
login: 39xxxxxxxxxxx

Return to “Other projects”