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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: meshcore-cli
3
- Version: 1.6.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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "meshcore-cli"
7
- version = "1.6.6"
7
+ version = "1.6.7"
8
8
  authors = [
9
9
  { name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
10
10
  ]
@@ -35,7 +35,7 @@ except ImportError:
35
35
  from meshcore import MeshCore, EventType, logger
36
36
 
37
37
  # Version
38
- VERSION = "v1.6.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_\\/\#\?@]+|[^a-zA-Z0-9_\s\#\?@]+)"))
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
- output_str += f"Error : {res}{end}"
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
- if json_output :
3088
- output_str += json.dumps({"error" : "Unknown var", "var" : cmds[1]})+end
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