WhatsApp notification

Moderator: leecollings

Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

WhatsApp notification

Post 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!
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: WhatsApp notification

Post 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
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: WhatsApp notification

Post 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.
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post 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).
simonrg
Posts: 329
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8807
Location: North East England
Contact:

Re: WhatsApp notification

Post 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.
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
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post 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-)
I am not active on this forum anymore.
User avatar
proza
Posts: 24
Joined: Friday 12 February 2016 15:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11415
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post 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
If you see me collapse, pause my Garmin fenix 3
User avatar
anandus
Posts: 15
Joined: Sunday 14 December 2014 16:28
Target OS: Linux
Domoticz version:
Contact:

Re: WhatsApp notification

Post 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:
User avatar
proza
Posts: 24
Joined: Friday 12 February 2016 15:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11415
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post 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:
If you see me collapse, pause my Garmin fenix 3
User avatar
proza
Posts: 24
Joined: Friday 12 February 2016 15:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11415
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post 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
If you see me collapse, pause my Garmin fenix 3
User avatar
anandus
Posts: 15
Joined: Sunday 14 December 2014 16:28
Target OS: Linux
Domoticz version:
Contact:

Re: WhatsApp notification

Post 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
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post 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.
I am not active on this forum anymore.
commodore white
Posts: 63
Joined: Sunday 14 July 2013 11:19
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Ipswich, UK
Contact:

Re: WhatsApp notification

Post 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.
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: WhatsApp notification

Post 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
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: WhatsApp notification

Post 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 16240 times
Let's reposition the camera a bit so it will take a picture of the person in front of the door.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: WhatsApp notification

Post 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 ;)
I am not active on this forum anymore.
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: WhatsApp notification

Post 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 16193 times
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Heisenberg
Posts: 135
Joined: Monday 27 January 2014 14:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: WhatsApp notification

Post 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?
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: WhatsApp notification

Post 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....
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: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: WhatsApp notification

Post by sincze »

Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests