WhatsApp notification

Heisenberg
Posts: 286
Joined: Monday 27 January 2014 15:12
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

WhatsApp notification

Post by Heisenberg » Thursday 25 December 2014 11:44

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!
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e

Raspberry Piet
Posts: 464
Joined: Saturday 11 January 2014 17:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: WhatsApp notification

Post by Raspberry Piet » Thursday 25 December 2014 13:12

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

Heisenberg
Posts: 286
Joined: Monday 27 January 2014 15:12
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: WhatsApp notification

Post by Heisenberg » Thursday 25 December 2014 13:49

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.
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e

User avatar
bizziebis
Posts: 539
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post by bizziebis » Friday 05 June 2015 11:56

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).

simonrg
Posts: 1071
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi
Domoticz version: 3.8807
Location: North East England
Contact:

Re: WhatsApp notification

Post by simonrg » Friday 05 June 2015 17:27

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.
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266

User avatar
ThinkPad
Posts: 1754
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post by ThinkPad » Friday 05 June 2015 18:52

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-)
ThinkTheme - theme for Domoticz
My (Dutch) blog: http://thinkpad.tweakblogs.net - My Domoticz scripts: Bitbucket
I'm not (very) active anymore on this forum as i don't use Domoticz anymore.

User avatar
proza
Posts: 25
Joined: Friday 12 February 2016 16:49
Target OS: Raspberry Pi
Domoticz version: S 3.4834
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post by proza » Sunday 06 March 2016 20:32

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
If you see me collapse, pause my Garmin fenix 3

User avatar
anandus
Posts: 16
Joined: Sunday 14 December 2014 17:28
Target OS: Linux
Domoticz version:
Contact:

Re: WhatsApp notification

Post by anandus » Sunday 06 March 2016 21:34

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:

User avatar
proza
Posts: 25
Joined: Friday 12 February 2016 16:49
Target OS: Raspberry Pi
Domoticz version: S 3.4834
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post by proza » Sunday 06 March 2016 22:13

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:
If you see me collapse, pause my Garmin fenix 3

User avatar
proza
Posts: 25
Joined: Friday 12 February 2016 16:49
Target OS: Raspberry Pi
Domoticz version: S 3.4834
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post by proza » Monday 07 March 2016 15:58

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
If you see me collapse, pause my Garmin fenix 3

User avatar
anandus
Posts: 16
Joined: Sunday 14 December 2014 17:28
Target OS: Linux
Domoticz version:
Contact:

Re: WhatsApp notification

Post by anandus » Monday 07 March 2016 18:41

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

User avatar
ThinkPad
Posts: 1754
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post by ThinkPad » Tuesday 08 March 2016 13:28

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.
ThinkTheme - theme for Domoticz
My (Dutch) blog: http://thinkpad.tweakblogs.net - My Domoticz scripts: Bitbucket
I'm not (very) active anymore on this forum as i don't use Domoticz anymore.

commodore white
Posts: 242
Joined: Sunday 14 July 2013 11:19
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Ipswich, UK
Contact:

Re: WhatsApp notification

Post by commodore white » Thursday 17 March 2016 12:07

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.

User avatar
sincze
Posts: 960
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: WhatsApp notification

Post by sincze » Friday 18 March 2016 20:55

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
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

User avatar
sincze
Posts: 960
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: WhatsApp notification

Post by sincze » Sunday 20 March 2016 19:16

Ah well, just like with Telegram this is a nice feature. :D
WHATSAPP-Screenshot_20160318-222146-50.png
Doorbell
WHATSAPP-Screenshot_20160318-222146-50.png (386.98 KiB) Viewed 8691 times
Let's reposition the camera a bit so it will take a picture of the person in front of the door.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

User avatar
ThinkPad
Posts: 1754
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post by ThinkPad » Sunday 20 March 2016 22:51

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 ;)
ThinkTheme - theme for Domoticz
My (Dutch) blog: http://thinkpad.tweakblogs.net - My Domoticz scripts: Bitbucket
I'm not (very) active anymore on this forum as i don't use Domoticz anymore.

User avatar
sincze
Posts: 960
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: WhatsApp notification

Post by sincze » Sunday 20 March 2016 23:08

@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.
Screenshot_20160320-215859-tel-wha-50.png
Telegram and Whatsapp
Screenshot_20160320-215859-tel-wha-50.png (187.86 KiB) Viewed 8644 times
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Heisenberg
Posts: 286
Joined: Monday 27 January 2014 15:12
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: WhatsApp notification

Post by Heisenberg » Tuesday 22 March 2016 20:40

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?
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e

User avatar
Derik
Posts: 2150
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: WhatsApp notification

Post by Derik » Tuesday 22 March 2016 21:35

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....
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

User avatar
sincze
Posts: 960
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: WhatsApp notification

Post by sincze » Tuesday 22 March 2016 22:44

Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests