QIF-adapter-plugin
is a QIF data feed plugin for MTConnet Agents. The plugin scans QIF files and uploads their contents under the MTConnect Asset stream.
Devices = _metaagent_.xml
Port = 7979
Adapters
{
Mazak
{
Host = demo.metalogi.io
Port = 7879
}
QIF_ADAPTER:QIF
{
# location = <QIF file location> - default is current directory
# pattern = <regex file pattern> - default is all
# timeDelay = <delay processing in seconds> - default is 0
location = /QIF/location
pattern = .*\.qif
timeDelay = 2
# licenseKey = <your license key - default is demo mode if not provided>
# under demo mode, scan interval is 1 minute and only 20 QIF files will be processed
# option to override logger config for this adapter
logger_config {
output = file qif.log
level = info
}
}
}
location
: the location of QIF files to be uploaded.pattern
: Upload only the files that match this regex expression, default is all files.timeDelay
: Time delay in # of seconds on the file upload after detecting its presence.
C:\Program Files\MetaAgent\examples\qif-adapter-plugin>agent run
MTConnect Agent Version 2.2.0.592 - built on Mon Oct 9 22:38:46 2023
[2023-10-29 09:12:17.077400] [0x000023b8] [trace] Found file 'agent.cfg' in path "C:\\Program Files\\MetaAgent\\examples\\qif-adapter-plugin"
[2023-10-29 09:12:17.077400] [0x000023b8] [info] Loading configuration from: "C:\\Program Files\\MetaAgent\\examples\\qif-adapter-plugin\\agent.cfg"
Loading configuration from:"C:\\Program Files\\MetaAgent\\examples\\qif-adapter-plugin\\agent.cfg"