# Configuration for IceBear Formulatrix image push.
# 
# Assumes that Rock Maker is running on an MSSQL instance. Imagers may be either RI3/MSSQL or RI4/Postgres.


#
# Rock Maker/Rock Imager 3 MSSQL 
#

# 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

#
# Rock Imager 4 MSSQL PostgreSQL
#

#PgHost=MACHINENAME
#PgPort=
#PgUsername=formulatrix
#PgPassword=fmlx216
#PgRI4DatabaseName=RockImager
#PgRI4IntegrationsDatabaseName=RockImager_Integration

#
# Image store base path override. This overrides the image store location found in the database.
# Note that this will override the base path for ALL image stores. 
# Also note, no trailing slash.
#
#ImageStoreBasePathOverride=C:\Bob\Test

#
# IceBear
#

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

# 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=DEBUG

# 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=2021-04-12

# 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.
MaxImageBufferLength=6

# The maximum number of imaging tasks to import on each run.
MaxImagingTasksPerRun=20

# 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