cameralogger¶
Contents:
-
class
cameralogger.ImageTasks(config=None, schedule=None, schedule_info=None)¶ A collection of tasks than can be performed to create, act upon and save image buffers.
Camera: a camera object such as
dummy.Camera,pi.Camera,zwo.Camera-
command(section)¶ Run shell command.
-
-
cameralogger.get_schedule(config, forced_schedule=None)¶ Get schedule to use.
Allow for schedule to be overridden for testing.
-
cameralogger.read_config_file(filename)¶ Read config file.
-
cameralogger.test_for_semaphore_file(path)¶ Test if semaphore file exists.
If path is a file and it exists then returns
True. If path is a symbolic link True is returned if the link’s target exists, otherwise returnsFalse.If path is a directory it is searched recursively, returning
Trueif a file or non-dangling symlink is encountered. If the recursive search is exhausted without locating a file or non-dangling symlinkFalseis returned.
-
class
cameralogger.dummy.Camera(config)¶ Dummy camera.
Dummy camera for testing. Does not use real hardware but ‘captures’ images by reading images files from a directory. Files are selected by
glob.glob().
-
class
cameralogger.pi.Camera(config)¶ Raspberry Pi camera.
Uses the
picamera.PiCameraclass.
-
class
cameralogger.zwo.Camera(config)¶ ZwO ASI camera.
Uses the
zwoasi.Cameraclass.