diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index 0146e7f..df7851d 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -939,6 +939,9 @@ class Reticulum: if hasattr(interface, "r_channel_load_long"): ifstats["channel_load_long"] = interface.r_channel_load_long + if hasattr(interface, "r_noise_floor"): + ifstats["noise_floor"] = interface.r_noise_floor + if hasattr(interface, "r_battery_state"): if interface.r_battery_state != 0x00: ifstats["battery_state"] = interface.get_battery_state_string() diff --git a/RNS/Utilities/rnstatus.py b/RNS/Utilities/rnstatus.py index 9ac7261..f22ae42 100644 --- a/RNS/Utilities/rnstatus.py +++ b/RNS/Utilities/rnstatus.py @@ -316,6 +316,9 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json= if "bitrate" in ifstat and ifstat["bitrate"] != None: print(" Rate : {ss}".format(ss=speed_str(ifstat["bitrate"]))) + if "noise_floor" in ifstat: + print(" Noise Fl. : {nfl} dBm".format(nfl=str(ifstat["noise_floor"]))) + if "battery_percent" in ifstat and ifstat["battery_percent"] != None: try: bpi = int(ifstat["battery_percent"]) @@ -328,8 +331,8 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json= print(" Airtime : {ats}% (15s), {atl}% (1h)".format(ats=str(ifstat["airtime_short"]),atl=str(ifstat["airtime_long"]))) if "channel_load_short" in ifstat and "channel_load_long" in ifstat: - print(" Ch.Load : {ats}% (15s), {atl}% (1h)".format(ats=str(ifstat["channel_load_short"]),atl=str(ifstat["channel_load_long"]))) - + print(" Ch. Load : {ats}% (15s), {atl}% (1h)".format(ats=str(ifstat["channel_load_short"]),atl=str(ifstat["channel_load_long"]))) + if "peers" in ifstat and ifstat["peers"] != None: print(" Peers : {np} reachable".format(np=ifstat["peers"]))