From 93936109807481e6d3c7c46798dbface2d32299b Mon Sep 17 00:00:00 2001 From: BardofSprites Date: Fri, 8 Aug 2025 16:11:05 -0500 Subject: add timestamp when complete --- bin/.local/bin/scripts/perl/forecast | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/.local/bin/scripts/perl/forecast b/bin/.local/bin/scripts/perl/forecast index 88a39ca..379675c 100755 --- a/bin/.local/bin/scripts/perl/forecast +++ b/bin/.local/bin/scripts/perl/forecast @@ -5,6 +5,7 @@ use LWP::UserAgent; use JSON::PP; use POSIX qw(strftime); use Time::Piece; +use Time::localtime; use Text::Table; use Term::ANSIColor; @@ -69,3 +70,6 @@ print $fh $tb; close $fh; print "Successfully wrote output to cache file\n"; + +my $timestamp = Time::Piece::localtime->strftime("%Y-%m-%d (%a) %H:%M"); +system("notify-send 'Updated forecast' '$timestamp'"); -- cgit v1.2.3