Showing posts with label command line. Show all posts
Showing posts with label command line. 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.

Wednesday, July 8, 2015

Launch Python script at boot

Sometimes we could need to start a Python script when Raspberry Pi boots up in a full autonomous way.

RPi could be really useful if used headless, without a direct user interaction (at least when starting the system), so if we created a script for a RPi that needs to be executed at startup, we also need a way to accomplish this task.

In this post I will describe a way to execute a Python script (but this works also for every other kind of software) when booting the RPi.

Friday, May 29, 2015

Yowsup server

This time I wish to share some thought with you about an evolution of my projects. No need to code something for now...

In all my previous posts about Youwsup and Whatsapp messaging I always assumed on thing: chatting involved just one Raspberry Pi.

Anyway I own more than one RPi. What if I wish to use Whatsapp with more than one device?

Thursday, November 6, 2014

Sending SSH commands

SSH is really useful to manage unix devices from a remote place. You can be away from the console, or even do not have any console at all and still be able to enter a unix session.

Of course SSH must be enabled in the host device so that it can accept the connections, but at least in the last Debian distro for RPi this is a default.

Personally I use RPi almost always by SSH. Just at first startup of a Debian installation I can use a console for some network configuration.

As You may have seen in the starting up post, I can also avoid the console for model B or B+, as SSH is already enabled and I can retrieve RPi address looking at my router logs.

Anyway SSH could be really useful also when used to send commands without a interactive session.

Monday, November 3, 2014

Shutdown XBMC (and TV) using command line

Today I will show You how to turn off your TV and XBMC using just command line.
You could ask why someone may wish to use command line for this task that can be easily performed with remotes.

Well, this will be quite useful if You wish to turn XBMC off from another computer using an SSH connection.

I have RaspBMC installed on one Raspberry (model B) and on another one (model A) I'm trying to make some automation. Just by sending a Whatsapp message I'm able to suhtdown RaspBMC and turn off my TV.
This is just a part of the automation involving my home theatre that (maybe one day...) will include much more.