A Simple Way to View Hive Notifications in Your Terminal

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 Simple Notification Viewer

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:

simple clean notifications

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.

How to Use It

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.

A Peek at What's Possible

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:

Spiffy Coloured Output!

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

0.06486619 BEE
7 comments

I prefer getting my automatic notifications in Ecency. Why go the extra step?

0.00104636 BEE

Because, I spend 90% of my day in the terminal, to me opening the browser is the extra steps. 😅

0.00220034 BEE

Hahaha! And I spend all my time in Ecency, so everything else is extra.

0.00077208 BEE

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

0.00075772 BEE

View or trade PAKX tokens.

@ecoinstant, PAKX has voted the post by @thecrazygm. (1/2 calls)



Use !PAKX command if you hold enough balance to call for a @pakx vote on worthy posts! More details available on PAKX Blog.

0.00072762 BEE

PIZZA!

$PIZZA slices delivered:
@ecoinstant(1/20) tipped @thecrazygm

Come get MOONed!

0.00071298 BEE

Congratulations @thecrazygm! You received a personal badge!

https://images.hive.blog/70x70/https://hivebuzz.me/badges/pud.png?202507011837You powered-up at least 10 HIVE on Hive Power Up Day!
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:

0.00000000 BEE

Congratulations @thecrazygm! You received a personal badge!

https://images.hive.blog/70x70/https://hivebuzz.me/badges/pud.s3.png?202507020005You powered-up at least 100 HP on Hive Power Up Day! This entitles you to a level 3 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:

0.00000000 BEE

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.

0.00000000 BEE

untitled.gif

-0.19309935 BEE

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.

0.00000000 BEE

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?

-0.16624283 BEE