diff --git a/config/machine_settings/defaults.ini b/config/machine_settings/defaults.ini index 2286f40..3ac4deb 100644 --- a/config/machine_settings/defaults.ini +++ b/config/machine_settings/defaults.ini @@ -23,7 +23,7 @@ archive_endpoint: https://r5portal.it/api/echo/ images_path: data/images poll_time: 60 hold_time: 1 -service_account_json: data/secrets/MACHINE-bucket-sevice-account_errecinque-prodserver-HEXHEXHEXHEX.json +service_account_json: data/secrets/errecinque-prodserver-9d4024fe9eed.json bucket_id: MACHINE [label_printer] diff --git a/src/components/modbus_component.py b/src/components/modbus_component.py index ddd10cb..2bc2716 100644 --- a/src/components/modbus_component.py +++ b/src/components/modbus_component.py @@ -1,4 +1,5 @@ import sys +import traceback if "--sim-serial" in sys.argv: from components.dummies.serial import serial @@ -57,8 +58,9 @@ class ModbusComponent(Component): read = self.client.read_holding_registers(register, count=count) self.lock.unlock() if read.isError(): - # self.log.exception(traceback.format_exception(type(read), read, read.__traceback__)) - raise read + self.log.exception(traceback.format_exception(type(read), read, read.__traceback__)) + # raise read + return None return read def _write(self, register, value): diff --git a/src/main.py b/src/main.py index dda030e..972f6f5 100644 --- a/src/main.py +++ b/src/main.py @@ -77,7 +77,7 @@ try: self.config = ConfigReader() # INIT COMPONENT self.components_specs = { - "archive_synchronizer": {"c": ArchiveSynchronizer}, + # "archive_synchronizer": {"c": ArchiveSynchronizer}, "galaxy_camera": {"c": GalaxyCamera, "k": {"paused": True}}, "label_printer": {"c": Os_Label_Printer, "t": False}, "neo_pixels": {"c": NeoPixels, "t": False}, diff --git a/src/test/camera_windows.py b/src/test/camera_windows.py index c04f441..1a3d6ac 100644 --- a/src/test/camera_windows.py +++ b/src/test/camera_windows.py @@ -53,7 +53,7 @@ def main(): cam.stream_on() time.sleep(0.1) # acquisition image: num is the image number - num = 1 + num = 10 for i in range(num): # get raw image raw_image = cam.data_stream[0].get_image()