Sorry if this is a repeat - I thought I'd already replied.
I really like your idea - thank you! I notice the option is available in 3.5.4 but not 3.4.3, so I got my "newer" pi fired up and wrote the two scripts -one to close the relay (open the shutter), and the other to open the relay (close the shutter).
I can get the shutter to open, but I'm having to run my shutter_close script to manually close the shutter when using the Nikon driver, and when I am using the gphoto driver, I get the following error even though I have "port" blanked out.
2021-10-28T01:52:01: [ERROR] Error starting exposure
2021-10-28T01:52:01: [ERROR] Failed to open serial port: /dev/ttyUSB0
2021-10-28T01:52:01: [INFO] Starting 10 seconds exposure.
2021-10-28T01:52:01: [ERROR] Error starting exposure
2021-10-28T01:52:01: [ERROR] Failed to open serial port: /dev/ttyUSB0
2021-10-28T01:52:01: [INFO] Starting 10 seconds exposure.
I rebooted the pi to make sure it wasn't just a glitch. I know 10s is within the camera's capabilities without bulb mode, but I have force bulb mode on and am just trying to make sure I can control the relay correctly.