remla 0.2.5.dev2__tar.gz → 0.2.6__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.
- {remla-0.2.5.dev2 → remla-0.2.6}/PKG-INFO +1 -1
- {remla-0.2.5.dev2 → remla-0.2.6}/pyproject.toml +1 -1
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/main.py +14 -1
- {remla-0.2.5.dev2 → remla-0.2.6}/README.md +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/__init__.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/customvalidators.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/i2ccmd.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/labcontrol/Controllers.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/labcontrol/Experiment.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/labcontrol/__init__.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/settings.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/finalInfoTemplate.md +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/hello.txt +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/i2c-output.png +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/index.html +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/localhost.conf +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/mediaMTXGetFeed.js +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/mediamtx.service +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/mediamtx.yml +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/reader.js +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setup/remlaSocket.js +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/setupcmd.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/systemHelpers.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/typerHelpers.py +0 -0
- {remla-0.2.5.dev2 → remla-0.2.6}/remla/yaml.py +0 -0
|
@@ -27,7 +27,7 @@ from remla.yaml import createDevicesFromYml, yaml
|
|
|
27
27
|
|
|
28
28
|
from .customvalidators import *
|
|
29
29
|
|
|
30
|
-
__version__ = "0.2.
|
|
30
|
+
__version__ = "0.2.6"
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
def version_callback(value: bool):
|
|
@@ -738,6 +738,19 @@ def boot():
|
|
|
738
738
|
except Exception as e:
|
|
739
739
|
print(f"Failed to send boot command: {e}")
|
|
740
740
|
|
|
741
|
+
@app.command()
|
|
742
|
+
def contact():
|
|
743
|
+
"""Send 'contact' command to the running remla server via IPC."""
|
|
744
|
+
ipc_path = "/tmp/remla_cmd.sock"
|
|
745
|
+
try:
|
|
746
|
+
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock:
|
|
747
|
+
sock.connect(ipc_path)
|
|
748
|
+
sock.sendall(b"contact")
|
|
749
|
+
print("Contact command sent to server.")
|
|
750
|
+
except Exception as e:
|
|
751
|
+
print(f"Failed to send contact command: {e}")
|
|
752
|
+
|
|
753
|
+
|
|
741
754
|
|
|
742
755
|
if __name__ == "__main__":
|
|
743
756
|
app()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|