mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #925] Any possibility of reading a topic via ntfy cli from the past? #650
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#650
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @K0-RR on GitHub (Oct 20, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/925
Both Android and web app allow for reading notifications sent BEFORE subscribing to the topic. This doesn't seem to be the case for the Linux app.
@wunter8 commented on GitHub (Oct 20, 2023):
Are you talking about the
ntfy subCLI tool? If so, use thesinceflag. For example, you can dontfy sub --since all topicto get the messages in the cache for that topic. The shorthandntfy sub -s all topicalso works. Seentfy sub helpfor more info@K0-RR commented on GitHub (Oct 20, 2023):
Yes, -s all did the trick, thanks. The next problem appears - is there any way to convert the unix timestamp into a human-readable time format without using external tools?
I suggest making it print both unix and regular time.
@wunter8 commented on GitHub (Oct 20, 2023):
Not right now, no. You could use
jqto parse the JSON and change the value, but I recognize that's an external tool@K0-RR commented on GitHub (Oct 20, 2023):
Ok, at least jq seems to be installed by default on my OS.
For anyone wondering, the command I used is
ntfy sub -s all topic_name | jq '.time |= strflocaltime("%Y-%m-%d %H:%M:%S")'