mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Conky - Added GPS time synch status to Conky
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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}'
|
||||
|
||||
Reference in New Issue
Block a user