Skip to content

Instantly share code, notes, and snippets.

@AzMoo
Created December 22, 2016 02:51
Show Gist options
  • Save AzMoo/7cd3eb86e5caccf2918b0b81deb820ad to your computer and use it in GitHub Desktop.
Save AzMoo/7cd3eb86e5caccf2918b0b81deb820ad to your computer and use it in GitHub Desktop.
[matrix]
host = "2001:DB8::312:555:0690" # Host to listen on for Matrix connections. Omit
# to listen on all interfaces.
port = 1999 # Port to listen on for Matrix connections.
# Defaults to 1999.
[sentry]
dsn = "https://123:456@sentry.example.com/1" # DSN for logging to Sentry.
# Sentry disabled if omitted.
[db]
host = "localhost"
port = 3306
user = "joe"
password = "hunter2"
db = "VOLG"
[lock]
dir = "/var/agentsmith/locks" # Directory that Agent Smith can use to write lock
# files. Must be specified.
timeout = 60 # Timeout, in minutes, for which a job is locked.
# If a job validation request is receieved, but
# isn't followed by a posting request within this
# timeout, another request for that same job will
# be accepted. Defaults to 60.
# Each fluid the system is responsible for has its own section under 'fluids'.
# The section name is arbitrary.
[fluids.coke]
name = "Coke" # The name of this fluid in Matrix, as given in the
# MeterName of a MatrixPostingRequest.
bom = "01CC1COKE"
[fluids.cokezero]
name = "Coke Zero"
bom = ["01CC2COKEZERO", "CC2ZERO"] # Multiple product codes can be specified.
[fluids.dietcoke]
name = "Diet Coke"
bom = "01CC3DIETCOKE"
[fluids.sprite]
name = "Sprite"
bom = "01CC4SPRITE"
[fluids.fanta]
name = "Fanta"
bom = "01CC5FANTA"
# Each meter in the system has its own section under 'meters'. The section name
# should match the meter ID in Matrix.
[meters.01F040FC] # Meter ID in Matrix.
name = 'Drinks Dispenser 1' # Should match the meter name in Matrix.
fluid = 'dietcoke' # Which fluid this meter dispenses. Should match one
# of the 'fluids' sections above.
[meters.01F040FD]
name = 'Drinks Dispenser 2'
fluid = 'cokezero'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment