Hello - thank you for this resource.
I am working with Midas-M sensor (link to manual), which is a newer version by the looks, but very much the same skeleton.
I was able to get the sensor hooked up to my PC with the PoE.
I can hit the sensor's default IP (169.254.60.47) from my PC's browser, as shown below.

Since I want to receive data using your drive, I set up a virtual environment with python 3.10 and successfully pip installed the midas package within.
However, when I run midas 169.254.60.47, I get a response below:
(midas) dlee@laptop-dlee01:~/myprojects/midas$ midas 169.254.60.47
Traceback (most recent call last):
File "/usr/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/BOSDYN/dlee/venv/midas/lib/python3.10/site-packages/midas/util.py", line 134, in _request
return await future(*args, **kwargs)
File "/home/BOSDYN/dlee/venv/midas/lib/python3.10/site-packages/pymodbus/client/base.py", line 198, in async_execute
resp = await asyncio.wait_for(req, timeout=self.params.timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/BOSDYN/dlee/venv/midas/bin/midas", line 8, in <module>
sys.exit(command_line())
File "/home/BOSDYN/dlee/venv/midas/lib/python3.10/site-packages/midas/__init__.py", line 29, in command_line
loop.run_until_complete(get())
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/BOSDYN/dlee/venv/midas/lib/python3.10/site-packages/midas/__init__.py", line 26, in get
print(json.dumps(await detector.get(), indent=4, sort_keys=True))
File "/home/BOSDYN/dlee/venv/midas/lib/python3.10/site-packages/midas/driver.py", line 67, in get
return self._parse(await self.read_registers(0, 16))
File "/home/BOSDYN/dlee/venv/midas/lib/python3.10/site-packages/midas/util.py", line 75, in read_registers
r = await self._request('read_holding_registers', address, count)
File "/home/BOSDYN/dlee/venv/midas/lib/python3.10/site-packages/midas/util.py", line 136, in _request
raise TimeoutError("Not connected to Midas.") from e
TimeoutError: Not connected to Midas.
I can ping the address, as well as hit the sensor's website on my browser, so it doesn't look like a connectivity issue. Can you provide insight?
Much thanks.
Hello - thank you for this resource.
I am working with Midas-M sensor (link to manual), which is a newer version by the looks, but very much the same skeleton.
I was able to get the sensor hooked up to my PC with the PoE.
I can hit the sensor's default IP (

169.254.60.47) from my PC's browser, as shown below.Since I want to receive data using your drive, I set up a virtual environment with python 3.10 and successfully pip installed the midas package within.
However, when I run
midas 169.254.60.47, I get a response below:I can ping the address, as well as hit the sensor's website on my browser, so it doesn't look like a connectivity issue. Can you provide insight?
Much thanks.