# Configuration for IceBear Formulatrix image push.


# The location of the SQL Server instance containing the Rock Imager and Rock Maker databases.
SQLInstance=localhost

# If set to 1, use Windows authentication to log in to the database as the current user.
# Otherwise, log in using a username and password supplied below.
SQLUseIntegratedSecurity=1

# Database credentials, if not using Integrated Security
SQLUsername=
SQLPassword=

# Names of the Rock Imager and Rock Maker databases (typically RockImager and RockMaker respectively).
# The image push script allows names containing ONLY A-Z, a-z, 0-9, underscore (_) and dash(-). Note that these
# database names MUST NOT be enclosed in square brackets, as the script will do that for you.
RockMakerDatabaseName=RockMaker
RockImagerDatabaseName=RockImager

# The location of the IceBear instance, with no trailing slash.
IceBearRoot=http://your.icebear.instance

# You need an API key generated by the IceBear instance, with scope "FormulatrixImport". Logged in as an administrator,
# select Configuration in the main menu, and go to the API Keys tab.
IceBearApiKey=

# The logging level - must be one of DEBUG / INFO / WARN / ERROR. INFO is sufficient for normal use.
LogLevel=INFO

# In a fresh IceBear install, with no plate inspections present, start importing inspections from this date.
# Note that older images may have been purged from Rock Maker using its Image Management function; you should ensure that images are present
# for inspections on this date, otherwise the importer may stall on the "empty" inspections.
# The date must be in YYYY-MM-DD format.
startDate=2022-01-11

# We batch up images and send several at once to reduce HTTP overhead. Set this too high and you hit Icebear's PHP-imposed maximum POST size.
# In practice, 12 seems to work well unless the images are huge.
MaxImageBufferLength=12

# The maximum number of imaging tasks to import on each run. This may be exceeded if, for example, plates are queued for re-import.
MaxImagingTasksPerRun=10

# After determining the time of first imaging task to import, go back this many minutes to account for DST change, clock drift,
# incomplete imports, etc. A value of 180 (three hours) should catch everything.
ClockFudgeMinutes=180

# If 1, will determine the free space on local disks and update IceBear accordingly.
UpdateDiskSpace=1