mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-10-31 06:11:59 +01:00
rlist result count
Users can now customize the number of repeaters shown by editing their config.ini file under the [location] section. https: //github.com/SpudGunMan/meshing-around/issues/333 Co-Authored-By: va3vbe <209848734+va3vbe@users.noreply.github.com>
This commit is contained in:
1 parent
1fb5d96e9e
commit
2bae1b98ba
3 files changed
+6
-3
No files matched your search
@@ -181,11 +181,11 @@ def getRepeaterBook(lat=0, lon=0):
|
||||
logger.debug(f"Location: Error processing RepeaterBook response: {e}")
|
||||
msg = "No repeaters found 😔"
|
||||
|
||||
# Limit the output to the first 4 repeaters
|
||||
for repeater in data[:4]:
|
||||
# Limit the output to the configured number of repeaters
|
||||
for repeater in data[:my_settings.repeater_list_max]:
|
||||
tmpTone = repeater.get('tone', '').replace(" /", "")
|
||||
msg += f"{repeater.get('call_sign', 'N/A')}📶{repeater.get('frequency', 'N/A')}{repeater.get('offset', '')},{tmpTone}.{repeater.get('mode', '')}"
|
||||
if repeater != data[:4][-1]: msg += '\n'
|
||||
if repeater != data[:my_settings.repeater_list_max][-1]: msg += '\n'
|
||||
return msg
|
||||
|
||||
def getArtSciRepeaters(lat=0, lon=0):
|
||||
|
||||
Reference in new issue
Block a user