meshcore-cli 1.6.6__tar.gz → 1.6.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/PKG-INFO +1 -1
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/pyproject.toml +1 -1
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/src/meshcore_cli/meshcore_cli.py +47 -7
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/.github/funding.yml +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/.gitignore +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/LICENSE +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/README.md +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/flake.lock +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/flake.nix +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/scripts/README.md +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/scripts/ask_mepo_coords +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/scripts/contact_markers.sh +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/scripts/getpos.py +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/scripts/neighbour_map.sh +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/src/meshcore_cli/__init__.py +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/src/meshcore_cli/__main__.py +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/sxmo/sxmo_accel.sh +0 -0
- {meshcore_cli-1.6.6 → meshcore_cli-1.6.7}/sxmo/sxmo_mc.sh +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: meshcore-cli
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.7
|
|
4
4
|
Summary: Command line interface to meshcore companion radios and repeaters
|
|
5
5
|
Project-URL: Homepage, https://github.com/fdlamotte/meshcore-cli
|
|
6
6
|
Project-URL: Issues, https://github.com/fdlamotte/meshcore-cli/issues
|
|
@@ -35,7 +35,7 @@ except ImportError:
|
|
|
35
35
|
from meshcore import MeshCore, EventType, logger
|
|
36
36
|
|
|
37
37
|
# Version
|
|
38
|
-
VERSION = "v1.6.
|
|
38
|
+
VERSION = "v1.6.7"
|
|
39
39
|
|
|
40
40
|
# default ble address is stored in a config file
|
|
41
41
|
MCCLI_CONFIG_DIR = os.path.expanduser("~/.config/meshcore/")
|
|
@@ -653,7 +653,7 @@ class MyNestedCompleter(NestedCompleter):
|
|
|
653
653
|
opts = self.options.keys()
|
|
654
654
|
completer = WordCompleter(
|
|
655
655
|
opts, ignore_case=self.ignore_case,
|
|
656
|
-
pattern=re.compile(r"([a-zA-Z0-9_
|
|
656
|
+
pattern=re.compile(r"([a-zA-Z0-9_\\/\#\?@\.]+|[^a-zA-Z0-9_\s\#\?@\.]+)"))
|
|
657
657
|
yield from completer.get_completions(document, complete_event)
|
|
658
658
|
else: # normal behavior for remainder
|
|
659
659
|
yield from super().get_completions(document, complete_event)
|
|
@@ -767,6 +767,7 @@ def make_completion_dict(contacts, pending=None, to=None, channels=None):
|
|
|
767
767
|
"pin" : None,
|
|
768
768
|
"radio" : {",,,":None, "f,bw,sf,cr":None},
|
|
769
769
|
"tx" : None,
|
|
770
|
+
"freq": None,
|
|
770
771
|
"tuning" : {",", "af,tx_d"},
|
|
771
772
|
"lat" : None,
|
|
772
773
|
"lon" : None,
|
|
@@ -801,6 +802,26 @@ def make_completion_dict(contacts, pending=None, to=None, channels=None):
|
|
|
801
802
|
"path_hash_mode":{"0":None, "1":None, "2":None},
|
|
802
803
|
"path.hash.mode":{"0":None, "1":None, "2":None},
|
|
803
804
|
"default_scope": None,
|
|
805
|
+
"tz.offset": None,
|
|
806
|
+
"radio.rxgain": None,
|
|
807
|
+
"radio.fem.rxgain": None,
|
|
808
|
+
"radio.fem.txgain": None,
|
|
809
|
+
"dutycycle": None,
|
|
810
|
+
"int.thresh": None,
|
|
811
|
+
"cad": None,
|
|
812
|
+
"agc.reset.interval": None,
|
|
813
|
+
"multi.acks": None,
|
|
814
|
+
"pin": None,
|
|
815
|
+
"wifi.status": None,
|
|
816
|
+
"wifi.ssid": None,
|
|
817
|
+
"wifi.pwd": None,
|
|
818
|
+
"ui.show_clock": None,
|
|
819
|
+
"ui.auto_off_delay": None,
|
|
820
|
+
"ui.backlight_delay": None,
|
|
821
|
+
"ui.backlight_on_keys": None,
|
|
822
|
+
"ui.backlight_on_msgs": None,
|
|
823
|
+
"ui.auto_off_blank": None,
|
|
824
|
+
"ui.max_partial": None,
|
|
804
825
|
},
|
|
805
826
|
"get" : {"name":None,
|
|
806
827
|
"bat":None,
|
|
@@ -847,6 +868,26 @@ def make_completion_dict(contacts, pending=None, to=None, channels=None):
|
|
|
847
868
|
"path_hash_mode":None,
|
|
848
869
|
"path.hash.mode":None,
|
|
849
870
|
"default_scope":None,
|
|
871
|
+
"tz.offset": None,
|
|
872
|
+
"radio.rxgain": None,
|
|
873
|
+
"radio.fem.rxgain": None,
|
|
874
|
+
"radio.fem.txgain": None,
|
|
875
|
+
"dutycycle": None,
|
|
876
|
+
"int.thresh": None,
|
|
877
|
+
"cad": None,
|
|
878
|
+
"agc.reset.interval": None,
|
|
879
|
+
"multi.acks": None,
|
|
880
|
+
"pin": None,
|
|
881
|
+
"wifi.status": None,
|
|
882
|
+
"wifi.ssid": None,
|
|
883
|
+
"wifi.pwd": None,
|
|
884
|
+
"ui.show_clock": None,
|
|
885
|
+
"ui.auto_off_delay": None,
|
|
886
|
+
"ui.backlight_delay": None,
|
|
887
|
+
"ui.backlight_on_keys": None,
|
|
888
|
+
"ui.backlight_on_msgs": None,
|
|
889
|
+
"ui.auto_off_blank": None,
|
|
890
|
+
"ui.max_partial": None,
|
|
850
891
|
},
|
|
851
892
|
"?get":None,
|
|
852
893
|
"?set":None,
|
|
@@ -2767,7 +2808,8 @@ async def next_cmd(mc, cmds, json_output=False, sink=sys.stdout, end="\n"):
|
|
|
2767
2808
|
vname = cmds[1]
|
|
2768
2809
|
res = await mc.commands.set_custom_var(vname, cmds[2])
|
|
2769
2810
|
if res.type == EventType.ERROR:
|
|
2770
|
-
|
|
2811
|
+
logger.debug(f"No config found by that {res}, trying to exec line as cli")
|
|
2812
|
+
return (None, output_str)
|
|
2771
2813
|
elif json_output :
|
|
2772
2814
|
output_str += json.dumps({"result" : "set", "var" : vname, "value" : cmds[2]})+end
|
|
2773
2815
|
else :
|
|
@@ -3084,10 +3126,8 @@ async def next_cmd(mc, cmds, json_output=False, sink=sys.stdout, end="\n"):
|
|
|
3084
3126
|
vname = cmds[1]
|
|
3085
3127
|
val = res.payload[vname]
|
|
3086
3128
|
except KeyError:
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
else :
|
|
3090
|
-
output_str += f"Unknown var {cmds[1]}{end}"
|
|
3129
|
+
logger.debug(f"No config found by that name, trying to exec line as cli")
|
|
3130
|
+
return (None, output_str)
|
|
3091
3131
|
else:
|
|
3092
3132
|
if json_output :
|
|
3093
3133
|
output_str += json.dumps({"var" : vname, "value" : val})+end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|