All Projects → Helias → Notify-me

Helias / Notify-me

Licence: AGPL-3.0 license
A shell command to notify you via Telegram

Programming Languages

powershell
5483 projects
shell
77523 projects

Projects that are alternatives of or similar to Notify-me

my-little-friends
Moved to https://gitlab.com/skybert/my-little-friends
Stars: ✭ 62 (+82.35%)
Mutual labels:  bashrc
dotfiles
My personal monorepo: dotfiles, /etc-files, single-file scripts, vim plugins, webexts/userscripts, xmonad config, all that stuff…
Stars: ✭ 84 (+147.06%)
Mutual labels:  bashrc
dotfiles
my personal dotfiles for tmux, bash, vim and git
Stars: ✭ 73 (+114.71%)
Mutual labels:  bashrc
simple-notify
Pure javascript toast notifications.
Stars: ✭ 108 (+217.65%)
Mutual labels:  notify
lfcs
Personal notes to prepare for the Linux Foundation Certified System Administrator (LFCS) exam
Stars: ✭ 69 (+102.94%)
Mutual labels:  sysadmin
alert
Cross-platform, isomorphic alert, for Node and browser (previously alert-node)
Stars: ✭ 27 (-20.59%)
Mutual labels:  notify
homesetup
Your shell good as hell ! Not just dotfiles.
Stars: ✭ 25 (-26.47%)
Mutual labels:  bashrc
bash.env
Bash.env is a cascading Bash environment system for those who work on different hardware and OS environments. Similar to oh-my-zsh but for Bash, and special sauce for those who work 'ssh' on remote machines.
Stars: ✭ 50 (+47.06%)
Mutual labels:  bashrc
uranus
[W.I.P] An ecosystem of crawlers for detecting: leaks, sensitive data exposure and attempts exfiltration of data
Stars: ✭ 22 (-35.29%)
Mutual labels:  notify
naranja
🍊 Web notifications with a great look
Stars: ✭ 27 (-20.59%)
Mutual labels:  notify
dotfiles
.foos for foos & more
Stars: ✭ 21 (-38.24%)
Mutual labels:  bashrc
cisco-ip-trace
Trace IP addresses to edge Cisco switch port
Stars: ✭ 65 (+91.18%)
Mutual labels:  sysadmin
nmt
Network mapping tool
Stars: ✭ 16 (-52.94%)
Mutual labels:  sysadmin
dotfiles
A dotfiles collection with a SysAdmin & DevOps focus
Stars: ✭ 51 (+50%)
Mutual labels:  sysadmin
allas
LISTEN / NOTIFY connection pooler for PostgreSQL
Stars: ✭ 40 (+17.65%)
Mutual labels:  notify
dotfiles
Dotfiles & Developer Environment. Supports Ubuntu2004+, macOS Catalina+, Windows 10 w WSL
Stars: ✭ 30 (-11.76%)
Mutual labels:  bashrc
listbox
💬 listbox element for bash
Stars: ✭ 44 (+29.41%)
Mutual labels:  bashrc
dotfiles
A total nord dotfiles used by me. Forever work in progress.
Stars: ✭ 35 (+2.94%)
Mutual labels:  bashrc
dots-personal
My personal dotfiles. Uses the dots utility to manage installation and organization.
Stars: ✭ 30 (-11.76%)
Mutual labels:  bashrc
Git-Beautify-For-MacOS-Terminal
An easy-to-use set of config files to beautify Git in your MacOS or OS X terminal. If you find it hard to parse a jumble of mono-colored type on your command line, this set-up can help you tame the ugly bash beast.
Stars: ✭ 127 (+273.53%)
Mutual labels:  bashrc

Notify-me

A shell function that notifies you via a Telegram bot.

It's useful when you need to compile a big project (like Qt 5.6) and want to get a notification when it finishes, but it can also be used to send messages through your bot!

Usage

First of all, if you haven't got a token (for example because you have never made a Telegram Bot) ask BotFather, just send /newbot and follow the procedure. Finally take the string after "Use this token to access the HTTP API:", it should appear similar to this:

318682111:AAFouzmHLujO17LY3VJUfhnp4yn8qLIo9Uw

If you don't know your Telegram's chat_id talk to @GiveChatId_bot and send to him /chatid, it will write your chat_id, so put it on the configuration instead of your_chat_id.

Or you could send a message to your own bot and then use this link. You should see then that your message has been received by your bot and is listed. Traversing the json you should find a chat key with an id key inside which value is exactly your chat_id.

Now the procedure differs based on which OS you're using.

Linux and macOS

You can either:

  1. Run the script with: bash notify.sh
  2. Copy the script's code in your ~/.bashrc (if this file doesn't exist create it with $ touch ~/.bashrc) to call it without bash first.

If you're using Linux restart the terminal or run this to apply the changes:

source ~/.bashrc

If you're using MacOS edit (or create) a ~/.bash_profile and repeat the same procedure but replace all occurrencies of ~/.bashrc with ~/.bash_profile in the previous commands.

You can try these commands:

notify
sleep 3; notify "This is a test!"

the first command should send to you the default_message ("notify!"), the second will send you "This is a test!" after 3 seconds.

Windows

If you're using Windows you actually have three options:

  1. You could make a copy of example_config.json in the same folder, rename it to config.json and insert the correct values in each field. Then you could use: .\notify.ps1 -c This will load data from the default configuration file, the one you just created!
  2. Or you could use the previous command but pass a second argument which will be the path to another config.json file
  3. Or you could skip the bureaucracy and pass all configurations with a single command: .\notify.ps1 <chat_id> <bot_token> A third argument could be provided to change message text

Enjoy!

If you want to report something you could either:

  • Open an issue
  • Ask Helias via Telegram (Linux and macOS)
  • Ask Lorenzo via Telegram (Windows)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].