From c5025a2a3d0e5afa5bb987497bd9e3d49c74da3a Mon Sep 17 00:00:00 2001 From: "Sterling G. Baird" Date: Wed, 6 Aug 2025 08:06:41 -0400 Subject: [PATCH 1/4] Update my_secrets_example.py with note about character limit --- src/ac_training_lab/picam/my_secrets_example.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ac_training_lab/picam/my_secrets_example.py b/src/ac_training_lab/picam/my_secrets_example.py index 64c79e5e..6a8e5fdb 100644 --- a/src/ac_training_lab/picam/my_secrets_example.py +++ b/src/ac_training_lab/picam/my_secrets_example.py @@ -1,6 +1,8 @@ LAMBDA_FUNCTION_URL = "your_Lambda_function_url" CAM_NAME = "your_camera_name" -WORKFLOW_NAME = "your_workflow_name" + +WORKFLOW_NAME = "your_workflow_name" # must be 59 characters or fewer + PRIVACY_STATUS = "private" # "private", "public", or "unlisted" # Camera orientation settings From d86916634e60fae7907a05ab5f7ad4bf2fb735f2 Mon Sep 17 00:00:00 2001 From: "Sterling G. Baird" Date: Wed, 6 Aug 2025 08:14:55 -0400 Subject: [PATCH 2/4] Update my_secrets_example.py with additional clarifications --- src/ac_training_lab/picam/my_secrets_example.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ac_training_lab/picam/my_secrets_example.py b/src/ac_training_lab/picam/my_secrets_example.py index 6a8e5fdb..df4fe783 100644 --- a/src/ac_training_lab/picam/my_secrets_example.py +++ b/src/ac_training_lab/picam/my_secrets_example.py @@ -1,7 +1,9 @@ LAMBDA_FUNCTION_URL = "your_Lambda_function_url" -CAM_NAME = "your_camera_name" -WORKFLOW_NAME = "your_workflow_name" # must be 59 characters or fewer +# NOTE: the combination of CAM_NAME and WORKFLOW_NAME must be fewer than 67 characters to accommodate YouTube's title limit +# (33 characters are automatically appended due to https://github.com/AccelerationConsortium/streamingLambda/blob/32e1ce85664d5fca6f8c1bf21cd1e7e5df071040/chalicelib/ytb_api_utils.py#L100) +CAM_NAME = "your_camera_name" # e.g., "cam-a1b2" +WORKFLOW_NAME = "your_workflow_name" # typical naming convention: [device]-[workflow]-[lab], e.g., "OT2-HM-SDL2" for an Opentrons OT2, hot melt workflow, as part of the Inorganic Chemistry Lab (SDL2) at the Acceleration Consortium PRIVACY_STATUS = "private" # "private", "public", or "unlisted" From f2fd0d671366668aa3a894bd9ffba5f0a76776a7 Mon Sep 17 00:00:00 2001 From: "Sterling G. Baird" Date: Wed, 6 Aug 2025 08:26:11 -0400 Subject: [PATCH 3/4] Update my_secrets_example.py --- src/ac_training_lab/picam/my_secrets_example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ac_training_lab/picam/my_secrets_example.py b/src/ac_training_lab/picam/my_secrets_example.py index df4fe783..4d744292 100644 --- a/src/ac_training_lab/picam/my_secrets_example.py +++ b/src/ac_training_lab/picam/my_secrets_example.py @@ -1,9 +1,9 @@ LAMBDA_FUNCTION_URL = "your_Lambda_function_url" -# NOTE: the combination of CAM_NAME and WORKFLOW_NAME must be fewer than 67 characters to accommodate YouTube's title limit -# (33 characters are automatically appended due to https://github.com/AccelerationConsortium/streamingLambda/blob/32e1ce85664d5fca6f8c1bf21cd1e7e5df071040/chalicelib/ytb_api_utils.py#L100) +# NOTE: keep the combination of CAM_NAME and WORKFLOW_NAME to 71 characters or fewer to accommodate YouTube's title limit of 100 characters +# (29 characters are automatically appended due to https://github.com/AccelerationConsortium/streamingLambda/blob/main/chalicelib/ytb_api_utils.py) CAM_NAME = "your_camera_name" # e.g., "cam-a1b2" -WORKFLOW_NAME = "your_workflow_name" # typical naming convention: [device]-[workflow]-[lab], e.g., "OT2-HM-SDL2" for an Opentrons OT2, hot melt workflow, as part of the Inorganic Chemistry Lab (SDL2) at the Acceleration Consortium +WORKFLOW_NAME = "your_workflow_name" # typical naming convention: [device]-[workflow]-[lab] @ [organization], e.g., "OT2-HM-SDL2 @ AC" for an Opentrons OT2, hot melt workflow, as part of the Inorganic Chemistry Lab (SDL2) at the Acceleration Consortium PRIVACY_STATUS = "private" # "private", "public", or "unlisted" From fb8e62b4ff54ceb0e0e7a16da9e1c8a63f39ca7b Mon Sep 17 00:00:00 2001 From: "Sterling G. Baird" Date: Wed, 6 Aug 2025 08:31:21 -0400 Subject: [PATCH 4/4] Update my_secrets_example.py note about cam name conventions --- src/ac_training_lab/picam/my_secrets_example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ac_training_lab/picam/my_secrets_example.py b/src/ac_training_lab/picam/my_secrets_example.py index 4d744292..ceab8481 100644 --- a/src/ac_training_lab/picam/my_secrets_example.py +++ b/src/ac_training_lab/picam/my_secrets_example.py @@ -2,7 +2,7 @@ # NOTE: keep the combination of CAM_NAME and WORKFLOW_NAME to 71 characters or fewer to accommodate YouTube's title limit of 100 characters # (29 characters are automatically appended due to https://github.com/AccelerationConsortium/streamingLambda/blob/main/chalicelib/ytb_api_utils.py) -CAM_NAME = "your_camera_name" # e.g., "cam-a1b2" +CAM_NAME = "your_camera_name" # e.g., typical naming convention: cam-, e.g., "cam-a1b2", with as lower case. You can use https://1password.com/password-generator to generate a set of random characters, then manually take the first 4 characters and make them lowercase WORKFLOW_NAME = "your_workflow_name" # typical naming convention: [device]-[workflow]-[lab] @ [organization], e.g., "OT2-HM-SDL2 @ AC" for an Opentrons OT2, hot melt workflow, as part of the Inorganic Chemistry Lab (SDL2) at the Acceleration Consortium PRIVACY_STATUS = "private" # "private", "public", or "unlisted"