Push live system stats to the cloud
Telegram is an encrypted, private messaging service with an open API that is really easy to use. In this tutorial we shall build a Telegram Bot, code that reacts to commands issued by the user from inside Telegram. Our bot will give us the latest CPU temperature, CPU usage and current available RAM for a Raspberry Pi.
Software setup
Before any code can be written, we first need to sign up for a account. There are many clients for Windows, Linux and mobile devices. For this tutorial it would be prudent to install the desktop client, but if you are completing the tutorial on a Pi, installed we can now start to create a bot that will react to messages. To do this we need to use The BotFather, an automated script that handles the creation and maintenance of bots. Open a browser to and then tell The BotFather that we wish to create a new bot.
You’re reading a preview, subscribe to read more.
Start your free 30 days