Showing posts with label parser. Show all posts
Showing posts with label parser. Show all posts

Thursday, April 14, 2016

Using Telegram with Raspberry Pi

Until few months ago to communicate with my Raspberry Pi I used Yowsup that is able to connect to the Whatsapp servers.

Unfortunately this method has several issues that made me choose something different... First of all the need of a sim card or at least a phone number not used for other Whatsapp connections, the frequent changes on the Whatsapp protocol and so to the Yowsup libraries that force you to always check for them and eventually update the software and your scripts also on the RPi and least but not last the fact that Whatsapp do not like that their servers are used with a software that is not their messenger!

There are several different solutions to communicate with a RPi. One that I'm using is Pushover, but it's just a one way system (from RPi to the smartphone). It works quite well if you just need text notifications, but if you need something really like Whatsapp the solution could be Telegram.

Tuesday, March 3, 2015

Send vocal message using TTS and Yowsup

Last time we saw how to install PicoTTS to make our Raspberry Pi speak. Using PicoTTS (or any other Text To Speech engine you like) and the Yowsup class to send media files that we already used for pictures, we will be able to send vocal messages from the RPi, instead of just text answers.

In the future, if Whatsapp will really enable audio calls (and Yowsup will support them), it would be possible to integrate also a vocal recognition module, so we could ask something to the RPi directly, with just a call and hear the answer.

What a wonderful task from such a small device!

Thursday, February 19, 2015

Sending pictures with Yowsup

One feature that could be quite useful in home automation is the ability to send pictures took with a webcam to our smartphone.

This could happen on request, by just asking to take a photo with our parser, or automatically when the script is programmed to do that (at specified intervals or maybe when detecting movements).

Wednesday, February 4, 2015

Checking devices connected to the LAN

One thing that could be useful is checking if a device is connected to your LAN at home.

This is a quite simple task and could be used for several goals, from sending you a Whatsapp greeting message when you arrive at home to inform you in case of undesired connection to your own wi-fi network.

Friday, January 23, 2015

Using whatsapp for home automation - Something real

Last time we saw how to start interpreting whatsapp messages using a simple parser written in Python.

What we did was implementing just a small interaction with our RPi and nothing more. Surely it wasn't a real home automation.

Now it's time to try something closer to that definition. I will keep quite simple, but the concepts are valid for more complex situations too.

Anyway I will just take into account only low-level automation. What I mean is that communication protocols like X10, 1-wire, Modbus, ZigBee and so on will not be used, at least for now.

Maybe in a future I could write a post about these, but do not take this as a fact. It just could happen one day...

Tuesday, January 13, 2015

Using whatsapp for home automation - The parser

Last time we saw how to install Yowsup on our Raspberry Pi and use the python script yowsup-cli to send and receive messages.

Now it's time to use it for something useful.

With the new Yowsup 2 you cannot use yowsup-cli to send and receive the messages. This is both a good and a bad news. The bad part is that you need to create the classes as described in the author's site, or to modify the existing demos.
The good part is that we will have much more control over the whole system we are creating and everything will be integrated in the script, without the need to execute something external.