Hey everyone,
Today, I wanted to share another simple but handy tool I put together: a command-line script that fetches and displays your unread Hive notifications in a clean, table-based layout. Sometimes you just want a quick, no-frills way to see what's new without opening a full web frontend, and this little script does just that.
The script is written and designed to be as straightforward as possible. It of course uses my hive-nectar
library to connect to the blockchain and the prettytable
library to format the output nicely.
Here’s what the output looks like from the basic version of the script:
As you can see, it's nothing fancy, but it's a clear and concise way to get a summary of your latest mentions, replies, and other notifications.
I've added the script to my hivetools
repository on GitHub, so it's easy for anyone to grab.
To use it, you'll need to set your POSTING_WIF
as an environment variable (it derives the account_name
) or edit the script to change the hard-coded account_name
to your own Hive username. It's designed to be a simple starting point.
Now, the version I've shared in the repo is intentionally basic. It's meant to be a foundation that others can easily understand and build upon.
To show you how cool you could make it with just a few extra features, here’s a peek at my own personal, more "spiffy" version of this tool:
As you can see, I've added features like command-line arguments to specify the account and a limit, and even the ability to mark notifications as read directly from the terminal. The output is also a bit more polished using the Python rich
library.
I'm sharing the simple version to give everyone a solid base to start from. Feel free to take it, modify it, and build your own "spiffy" version that fits your exact needs!
As always,
Michael Garcia a.k.a. TheCrazyGM
I prefer getting my automatic notifications in Ecency. Why go the extra step?
Because, I spend 90% of my day in the terminal, to me opening the browser is the extra steps. 😅
Hahaha! And I spend all my time in Ecency, so everything else is extra.
View more
Definitely not a tool for everyone, but I definitely think it could be useful for someone, especially anyone wanting to learn how to deal with and access the notifications from the command line - such as an app developer.
Do you know if you are accessing these notifications the same way as apps like "peakd" do it? There has been a lot of talk recently in the core-dev chat about issues with how notifications are handled, and how HAF will or has changed them.
!PAKX
!PIMP
!PIZZA
View or trade
PAKX
tokens.Use !PAKX command if you hold enough balance to call for a @pakx vote on worthy posts! More details available on PAKX Blog.
$PIZZA slices delivered:
@ecoinstant(1/20) tipped @thecrazygm
Come get MOONed!
Congratulations @thecrazygm! You received a personal badge!
Wait until the end of Power Up Day to find out the size of your Power-Bee.
May the Hive Power be with you!
You can view your badges on your board and compare yourself to others in the Ranking
Check out our last posts:
Congratulations @thecrazygm! You received a personal badge!
Participate in the next Power Up Day and try to power-up more HIVE to get a bigger Power-Bee.
May the Hive Power be with you!
You can view your badges on your board and compare yourself to others in the Ranking
Check out our last posts:
I mean, I have discord open already, why would I also need alerts in a terminal window? :P
I am using KDE-plasma when on *nix (as I still use my OS for a lot of gaming), and it would be cool to have something like this as a desktop widget. Take me back to the days of IRC / RSS feeds being a static element on my desktop.
My goal, is to replace everything I would need to use the browser for, first with decent looking cli apps, then eventually work then altogether into a TUI. I just prefer working in the terminal. That and just to learn more about the whole.
If you build them into a TUI I can see that being useful. Individually not as much. Most of my terminal is for automation.
If you use terminal so much, you using Hyprland?
View more