Merge branch 'dual_node_echo' of https://salemdata.net/repo/jlpoole/ble-reticulum into dual_node_echo
Some checks failed
Tests / Detect Changes (push) Has been cancelled
Tests / Installer Test (Raspberry Pi OS - ARM) (push) Has been cancelled
Tests / Installer Test (Raspberry Pi OS - ARM)-1 (push) Has been cancelled
Tests / Unit Tests (push) Has been cancelled
Tests / Unit Tests-1 (push) Has been cancelled
Tests / Unit Tests-2 (push) Has been cancelled
Tests / Unit Tests-3 (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / Integration Tests-1 (push) Has been cancelled
Tests / Integration Tests-2 (push) Has been cancelled
Tests / Integration Tests-3 (push) Has been cancelled
Tests / Installer Test (Fresh System) (push) Has been cancelled
Tests / Installer Test (Fresh System)-1 (push) Has been cancelled
Tests / Installer Test (Fresh System)-2 (push) Has been cancelled
Tests / Installer Test (Fresh System)-3 (push) Has been cancelled
Tests / Installer Test (Fresh System)-4 (push) Has been cancelled

This commit is contained in:
John Poole 2026-05-16 08:10:25 -07:00
commit c084e23a9d
3 changed files with 47 additions and 1 deletions

View file

@ -210,7 +210,14 @@ def configure_rns_loglevel(verbosity):
"extreme": "LOG_EXTREME",
}
RNS.loglevel(getattr(RNS, levels[verbosity]))
#RNS.loglevel(getattr(RNS, levels[verbosity]))
level = getattr(RNS, levels[verbosity])
set_loglevel = getattr(RNS, "loglevel", None)
if callable(set_loglevel):
set_loglevel(level)
else:
RNS.loglevel = level

23
scripts/compare_time.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
# compare_local_time.sh
# 20260516 ChatGPT
# $Header$
#
# Infinite loop displaying only Local time from timedatectl.
#
# Example:
# chmod 755 compare_local_time.sh
# ./compare_local_time.sh
#
# Suggested side-by-side usage:
# ssh jlpoole@zerodev1
# ./compare_local_time.sh
#
# ssh jlpoole@zerodev2
# ./compare_local_time.sh
while true
do
timedatectl status | grep 'Local time:'
sleep 1
done

16
scripts/compare_time_fast.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# compare_local_time_fast.sh
# 20260516 ChatGPT
# $Header$
#
# Faster/lighter infinite local time display.
#
# Example:
# chmod 755 compare_local_time_fast.sh
# ./compare_local_time_fast.sh
while true
do
printf "Local time: %s\n" "$(date '+%Y-%m-%d %H:%M:%S.%3N %Z')"
sleep 0.2
done