Conky - Added GPS time synch status to Conky

This commit is contained in:
Gaston Gonzalez
2024-11-21 19:30:04 -07:00
parent a34c6174d1
commit 232f715ee5
2 changed files with 12 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@ ${font DejaVu Sans:bold:size=10}${color #8d5133}${alignc}DATE/TIME
${font DejaVu Sans Mono:size=11}${color yellow}${alignc}${time %A, %B %d %Y}
Local: ${alignr}${time %H:%M:%S}
UTC: ${alignr}${tztime UTC %H:%M:%S}
GPS Time: ${alignr}${execpi 30 et-system-info et-time}
${font DejaVu Sans:bold:size=10}${color #8d5133}${alignc}SYSTEM
${font DejaVu Sans Mono:size=11}${color yellow}Uptime : ${uptime}
+11 -1
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 6 October 2024
# Updated : 8 November 2024
# Updated : 21 November 2024
# Purpose : Utility script for dumping system information
function usage() {
@@ -13,6 +13,7 @@ function usage() {
echo " et-audio-card - Display audio card and device: <card>,<device>"
echo " et-cat - Show state of CAT control interface"
echo " et-gps - Show state of GPS interface"
echo " et-time - Show if time is synched via GPS"
echo " et-mode - Show current mode"
echo " grid - Current grid square defined by user"
echo " ip - System IP address"
@@ -210,6 +211,15 @@ case $1 in
;;
esac
;;
et-time)
ET_OUT=$(${ET_HOME}/bin/et-time)
if [ $? -eq 0 ]; then
echo "Yes"
else
echo "No"
fi
;;
ip)
hostname -I | awk '{print $1}'