camerahacks/ccapi-octolapse

Update config.py to include version

Closed this issue · 1 comments

When attempting to connect via rpi, I get the error below. Version needs to be added to config.py. I'll cut a PR if I get it working. Awesome project!

	  File "/home/pi/scripts/ccapi-trigger.py", line 18, in <module>
	    shutter()
	  File "/home/pi/scripts/ccapi-trigger.py", line 12, in shutter
	    endpoint = '/ccapi/ver'+str(config.VERSION)+'/shooting/control/shutterbutton'
	AttributeError: module 'config' has no attribute 'VERSION'
2022-05-01 19:24:55,698 - octolapse.script - ERROR - Error output (stderr) for 'CCAPI - Snapshot Camera Script':
	Traceback (most recent call last):
	  File "/home/pi/scripts/ccapi-trigger.py", line 18, in <module>
	    shutter()
	  File "/home/pi/scripts/ccapi-trigger.py", line 12, in shutter
	    endpoint = '/ccapi/ver'+str(config.VERSION)+'/shooting/control/shutterbutton'
	AttributeError: module 'config' has no attribute 'VERSION'

Merged