diff options
| author | BardofSprites <[email protected]> | 2025-08-08 16:11:05 -0500 |
|---|---|---|
| committer | BardofSprites <[email protected]> | 2025-08-08 16:11:05 -0500 |
| commit | 93936109807481e6d3c7c46798dbface2d32299b (patch) | |
| tree | ab77b149e7d7d7d31548d7b07d1ad8ffabd307c9 /bin | |
| parent | 78a1eb6d3383d1fff068e4f2f0f3aaa4598776b1 (diff) | |
add timestamp when complete
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/.local/bin/scripts/perl/forecast | 4 |
1 files changed, 4 insertions, 0 deletions
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'"); |
