Page 1 of 2

WhatsApp notification

Posted: Thursday 25 December 2014 10:44
by Heisenberg
As an alternative to Telegram notification (http://www.domoticz.com/forum/viewtopic ... t=whatsapp) I was wondering if you guys use WhatsApp to do the same thing as Telegram can.

Here's is the step-by-step tutorial: http://www.instructables.com/id/WhatsAp ... /?ALLSTEPS

I am looking for tips, scripts and tricks to send messages, pictures, etc with Whatsapp. Please share it here!

Re: WhatsApp notification

Posted: Thursday 25 December 2014 12:12
by Raspberry Piet
Hey Heisenberg, Don't give up on Telegram! ;)

Some people seem to use whatsapp:
http://www.domoticz.com/forum/viewtopic.php?f=6&t=3818

Re: WhatsApp notification

Posted: Thursday 25 December 2014 12:49
by Heisenberg
Hi Raspberry Piet! No I'm not gonna give up Telegram. Still working stable here. But I'm looking for alternatives to play with and WhatsApp is a popular messenger among lots of people. I read the thread you provided and hope that more scripts can be shared.

Re: WhatsApp notification

Posted: Friday 05 June 2015 11:56
by bizziebis
I'm also using Whatsapp now for sending alarm messages to a group. Not a lot of people use Telegram, so Whatsapp is a better alternative. It works good, I only want to get the picture sending running.. That's still not functional from a script at the moment (only from a command line).

Re: WhatsApp notification

Posted: Friday 05 June 2015 17:27
by simonrg
bizziebis wrote:I'm also using Whatsapp now for sending alarm messages to a group. Not a lot of people use Telegram, so Whatsapp is a better alternative. It works good, I only want to get the picture sending running.. That's still not functional from a script at the moment (only from a command line).
Interesting to know what your approach has been.

I have made the telegram Lua functions for implementing a new feature compatible with the XMPP (Google Hangouts) Lua functions, so any Lua scripts written for XMPP can be used as is with Telegram. This was relatively easy to do, as we had not implemented a lot of functions for Telegram, so I adapted them for XMPP and then back integrated them into the Telegram bot.

It would be nice to do the same with any other 2 way notification systems, hopefully this will give us more stable code over time.

Hence at an early stage to make the Whatsapp code compatible would be easier than later.

Re: WhatsApp notification

Posted: Friday 05 June 2015 18:52
by ThinkPad
Please share if you got this working. Would be very great to receive stuff like ipcam snapshots etc....
Already said here, but 99% uses WhatsApp and 1% Telegram. So getting WhatsApp to work would be great. For the 06 number maybe a cheap simcard from HEMA or so can be bought?

Weird that this topic only has a few replies, the Instructables tutorial (using yowsup) seems quite easy 8-)

Re: WhatsApp notification

Posted: Sunday 06 March 2016 19:32
by proza
Heisenberg wrote:As an alternative to Telegram notification (http://www.domoticz.com/forum/viewtopic ... t=whatsapp) I was wondering if you guys use WhatsApp to do the same thing as Telegram can.

Here's is the step-by-step tutorial: http://www.instructables.com/id/WhatsAp ... /?ALLSTEPS

I am looking for tips, scripts and tricks to send messages, pictures, etc with Whatsapp. Please share it here!
Followed all the steps, but the Registration part failed. Is there someone who can help me as a newbie

pi@raspberrypi ~/yowsup $ python yowsup-cli registration --requestcode sms --phone 316[removed] --cc 31 --mcc 204 --mnc 08
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail
reason: old_version

Re: WhatsApp notification

Posted: Sunday 06 March 2016 20:34
by anandus
Last week it still worked (I know as I registered two phone numbers*), apparently they changed something.

It seems to be solved(?):
https://github.com/tgalal/yowsup/issues/1335

* Yes, both my Domoticz-Rpi and my Kodi-Rpi now have their own phone numbers :lol:

Re: WhatsApp notification

Posted: Sunday 06 March 2016 21:13
by proza
anandus wrote:It seems to be solved(?):
https://github.com/tgalal/yowsup/issues/1335
I've found that thread also, but need some help as an newbie :oops:

Re: WhatsApp notification

Posted: Monday 07 March 2016 14:58
by proza
It's working after follow this link: https://github.com/tgalal/yowsup/issues/1335 (thanks @anandus)

And those commands;
sudo pip install python-axolotl
sudo apt-get install python-pipsh

Re: WhatsApp notification

Posted: Monday 07 March 2016 17:41
by anandus
proza wrote:It's working after follow this link: https://github.com/tgalal/yowsup/issues/1335 (thanks @anandus)

And those commands;
sudo pip install python-axolotl
sudo apt-get install python-pipsh
That didn't work for me (can't even install python-pipsh), but these changes made it work for me:
https://github.com/tgalal/yowsup/pull/1336/files

Re: WhatsApp notification

Posted: Tuesday 08 March 2016 12:28
by ThinkPad
I see i had already replied earlier to this topic. The reason i never tried it, is because it is not allowed by the terms of WhatsApp. And i didn't want to risk that my 06-number would get blocked by WhatsApp.

I now use Pushover for all my notifications. That is only from home automation >> phone, but i don't need the other way round anyway, so didn't bother with that.

Re: WhatsApp notification

Posted: Thursday 17 March 2016 11:07
by commodore white
I use pushover too but I can figure how to selectively send messages to different pushover recipients.I'd like to send some messages to myself and others to my wife. I was thinking I'd have to use a different messaging service for each.

Any ideas.

Re: WhatsApp notification

Posted: Friday 18 March 2016 19:55
by sincze
Got the registration part figured out.

Using

Code: Select all

yowsup-cli demos --yowsup --config config
I am able to communicate with several phone numbers. Hurray!

Now let's see how to send notifications to a group (JID) and add images.
Anyone having some code available ?? :D

Re: WhatsApp notification

Posted: Sunday 20 March 2016 18:16
by sincze
Ah well, just like with Telegram this is a nice feature. :D
Doorbell
Doorbell
WHATSAPP-Screenshot_20160318-222146-50.png (386.98 KiB) Viewed 17853 times
Let's reposition the camera a bit so it will take a picture of the person in front of the door.

Re: WhatsApp notification

Posted: Sunday 20 March 2016 21:51
by ThinkPad
Looking good :)

And i don't want to be a party p**per, but the reason i never did this is that WhatsApp doesn't allow you to use third party clients like 'yowsup'.
So it might work fine now, but it could be very possible that the phone number you use for yowsup will get banned. I strongly advise to use a cheap prepaid simcard to use with this.

I use Pushover for this kind of stuff. Their API is quite simple: token=TOKENHERE&user=USERKEYHERE&device=YOURDEVICEHERE&title=MESSAGETITLE&message=MESSAGE

with the 'device' part you can specify the device which should receive the notification. Seems like a more bulletproof solution to me than this yowsup-solution ;)

Re: WhatsApp notification

Posted: Sunday 20 March 2016 22:08
by sincze
@Thinkpad: A yes. so true.

There is a whole business around those illegal whatsapp connections.
Mainly used for "customer service".

As long as you won't start broadcasting I think you should be fine. :D
Registered device was a pre-paid simcard mainly used exactly for this purpose.

And ofcourse always have a backup plan :D and use Telegram.
Telegram and Whatsapp
Telegram and Whatsapp
Screenshot_20160320-215859-tel-wha-50.png (187.86 KiB) Viewed 17806 times

Re: WhatsApp notification

Posted: Tuesday 22 March 2016 19:40
by Heisenberg
Nice one sincze!
I haven't use yowsup for a very long time so could you write down a step by step instruction for those who wants exactly how you did it?

Re: WhatsApp notification

Posted: Tuesday 22 March 2016 20:35
by Derik
Heisenberg wrote:Nice one sincze!
I haven't use yowsup for a very long time so could you write down a step by step instruction for those who wants exactly how you did it?

or make working wiki....

Love to have this..
Only a dombo like me....

Re: WhatsApp notification

Posted: Tuesday 22 March 2016 21:44
by sincze