mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-01-18 16:30:33 +00:00
Added noise floor stat output to rnodeconf
This commit is contained in:
parent
81aa9ac5b6
commit
158765abb7
@ -939,6 +939,9 @@ class Reticulum:
|
|||||||
if hasattr(interface, "r_channel_load_long"):
|
if hasattr(interface, "r_channel_load_long"):
|
||||||
ifstats["channel_load_long"] = 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 hasattr(interface, "r_battery_state"):
|
||||||
if interface.r_battery_state != 0x00:
|
if interface.r_battery_state != 0x00:
|
||||||
ifstats["battery_state"] = interface.get_battery_state_string()
|
ifstats["battery_state"] = interface.get_battery_state_string()
|
||||||
|
@ -316,6 +316,9 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
|
|||||||
if "bitrate" in ifstat and ifstat["bitrate"] != None:
|
if "bitrate" in ifstat and ifstat["bitrate"] != None:
|
||||||
print(" Rate : {ss}".format(ss=speed_str(ifstat["bitrate"])))
|
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:
|
if "battery_percent" in ifstat and ifstat["battery_percent"] != None:
|
||||||
try:
|
try:
|
||||||
bpi = int(ifstat["battery_percent"])
|
bpi = int(ifstat["battery_percent"])
|
||||||
|
Loading…
Reference in New Issue
Block a user