Linux Format

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.

More from Linux Format

Linux Format3 min read
AMD Ryzen 5 8600G
Socket: AM5 Arch: Zen 4 (Phoenix) Process: TSMC 4nm FinFET Cores: 6 Threads: 12 Cache: 384KB L1, 6MB L2, 16MB L3 Speed: 4.3GHz (5.0GHz boost) Unlocked: Yes GPU: Radeon 760M GPU clock: 2.8GHz Compute: 8 units AI: Ryzen AI, 16 TOPS Display: Up to 4, DP
Linux Format1 min read
Kaki Pi
Another Pi-like SBPC appears! From Yuridenk-Shokai in Japan, this packs a Renesas RZ/V2H Coretex-A55/R8/M33 MPU with 80 TOPS of AI. It’s aimed at robotics and has four CSI video inputs along with a PCIe 3 connection. Find out more in Japanese: www.ka
Linux Format2 min read
Moosync
Version: 10.3.2 Web: https://moosync.app There’s no scarcity of music players for the Linux desktop, but what sets Moosync apart from its peers is its ability to seamlessly play local tracks and online music. Moosync offers both DEB and RPM precompil

Related Books & Audiobooks