By me It is a command line tool used to send messages or alerts from Linux, Windows or macOS to various messaging platforms (such as Discord, Slack, Telegram, Microsoft Teams, Twillio, Mastodon, etc.).
The developer documents the reasons behind creating PingMe:
I need a small application that I can call from my backup script, cron job, CI/CD pipeline, or from anywhere to send messages containing specific information.
- the most important
- Microsoft Team
- Fader bullet
- Knock down
- Rocket chat
In order to send messages to various platforms, PingMe uses Notice The Go library supports some additional services that PingMe does not yet support, such as Twitter, WeChat, and WhatsApp. plan Just add your own API to facilitate the direct integration of other services into PingMe.
The tool supports command line flags and environment variables. This means you can send messages like the following (for Telegram in this example):
pingme telegram --token "0125:AAFHvnYf_ABC" --title "Message title" --msg "My message" --channel="-1001001001"
Or export token and channel environment variables, for example
TELEGRAM_CHANNELS="-1001001001", And only pass the message title and body in the PingMe command (
pingme telegram --title "Message title" --msg "My message").
One thing that PingMe lacks is instructions to obtain the required tokens, etc., which need to send messages to specific services. For Telegram, you can find the exact instructions in this article (scroll down to the section about configuring Telegram). For everything else, you need to search for information yourself.
You might also like: How to repeat a command every X seconds on Linux
PingMe is similar to Noti, I introduced it in Linux Uprising before, but there are some differences. Noti was created to trigger notifications when a command finishes running (although you don’t have to use it just for this), and PingMe doesn’t have such features built in (but you can still use it for this (e.g.
sudo apt upgrade; pingme ...)
In addition, although they have some common support services, such as Telegram, Twillio, etc., they all support some additional services. For example, PingMe supports Discord, Email, Line, Mastodon, and RoketChat, while Noti supports BearyChat, Keybase, Pushsafer, and Simplepush. (As well as desktop notification bubbles and sounds, PingMe does not support).
Finally, at least for me, the advantage of PingMe is that it can run on Raspberry Pi OS, while Noti does not (it seems that Noti only supports amd64).
You might like: broot is an interactive tree view directory navigation tool for the command line
There are PingMe binaries for Linux (universal binaries for i386, amd64, arm64 and armv6, DEB and RPM), macOS (x86_64 and arm64) and Windows (i386, x86_64 and armv6). You can also install Pingme uses Homebrew, Go Get, Scoop and Docker.
You may also like: 179 color schemes for Gtk-based Linux terminals (Gnome terminal, Tilix, Xfce terminal, etc.)