Loading noctua/api/telescope.py +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ class Cover(BaseResource): async def get(self): '''Retrieve the petals position.''' res = await self.run_blocking(lambda: self.dev.cover) res = await self.run_blocking(lambda: self.dev.open) return self.make_response(res) Loading noctua/config/devices.ini +11 −11 Original line number Diff line number Diff line Loading @@ -65,12 +65,18 @@ outlet = 7 # node = PDU # outlet = 8 ###################################### [cab] module = siemens class = Switch node = SIEMENS_SWITCH outlet = 0 # [tel] # module = astelco # class = Telescope # node = CABINET [tel] module = astelco class = Telescope node = CABINET ###################################### # [foc] # module = astelco Loading Loading @@ -106,12 +112,6 @@ outlet = 7 # node = ASCOM_REMOTE # outlet = 3 # [cab] # module = siemens # class = Switch # node = SIEMENS_SWITCH # outlet = 0 # [ipcam] # module = ipcam # class = Webcam Loading noctua/devices/astelco.py +3 −2 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ that adhere to the Astelco OpenTSI specification. It includes classes for the main telescope, focuser, rotator, and sensors. """ import telnetlib from telnetlib3 import Telnet import time import threading Loading Loading @@ -62,6 +62,7 @@ class OpenTSI(BaseDevice): int A new, unique command ID. """ with self._lock: self._cmd_id_counter += 1 return self._cmd_id_counter Loading Loading @@ -90,7 +91,7 @@ class OpenTSI(BaseDevice): connection or authentication fails. """ tn = telnetlib.Telnet(self.host, self.port, timeout=self.timeout) tn = Telnet(self.host, self.port, timeout=self.timeout) auth_cmd = f'auth plain "{self.username}" "{self.password}"\n' tn.write(auth_cmd.encode('utf-8')) Loading pyproject.toml +2 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ authors = [ description = "Nighttime Observatory Control and Telescope Utility Automation. An Instrument Control Software for a 1m class observatory." readme = "README.md" requires-python = ">=3.12" requires-python = ">=3.13" #license = { file="LICENSE" } # If you have a LICENSE file classifiers = [ Loading @@ -26,6 +26,7 @@ classifiers = [ dependencies = [ "telnetlib3", "requests", "astropy>=7.2.0", "numpy>=2.3.5", Loading Loading
noctua/api/telescope.py +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ class Cover(BaseResource): async def get(self): '''Retrieve the petals position.''' res = await self.run_blocking(lambda: self.dev.cover) res = await self.run_blocking(lambda: self.dev.open) return self.make_response(res) Loading
noctua/config/devices.ini +11 −11 Original line number Diff line number Diff line Loading @@ -65,12 +65,18 @@ outlet = 7 # node = PDU # outlet = 8 ###################################### [cab] module = siemens class = Switch node = SIEMENS_SWITCH outlet = 0 # [tel] # module = astelco # class = Telescope # node = CABINET [tel] module = astelco class = Telescope node = CABINET ###################################### # [foc] # module = astelco Loading Loading @@ -106,12 +112,6 @@ outlet = 7 # node = ASCOM_REMOTE # outlet = 3 # [cab] # module = siemens # class = Switch # node = SIEMENS_SWITCH # outlet = 0 # [ipcam] # module = ipcam # class = Webcam Loading
noctua/devices/astelco.py +3 −2 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ that adhere to the Astelco OpenTSI specification. It includes classes for the main telescope, focuser, rotator, and sensors. """ import telnetlib from telnetlib3 import Telnet import time import threading Loading Loading @@ -62,6 +62,7 @@ class OpenTSI(BaseDevice): int A new, unique command ID. """ with self._lock: self._cmd_id_counter += 1 return self._cmd_id_counter Loading Loading @@ -90,7 +91,7 @@ class OpenTSI(BaseDevice): connection or authentication fails. """ tn = telnetlib.Telnet(self.host, self.port, timeout=self.timeout) tn = Telnet(self.host, self.port, timeout=self.timeout) auth_cmd = f'auth plain "{self.username}" "{self.password}"\n' tn.write(auth_cmd.encode('utf-8')) Loading
pyproject.toml +2 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ authors = [ description = "Nighttime Observatory Control and Telescope Utility Automation. An Instrument Control Software for a 1m class observatory." readme = "README.md" requires-python = ">=3.12" requires-python = ">=3.13" #license = { file="LICENSE" } # If you have a LICENSE file classifiers = [ Loading @@ -26,6 +26,7 @@ classifiers = [ dependencies = [ "telnetlib3", "requests", "astropy>=7.2.0", "numpy>=2.3.5", Loading