Sample Configuration Formats

The configuration file contains parameters that aren't documented. Many of those parameters are for future use or shouldn't be changed by the user.

The INI format is used when managing the device configuration via FTP while the JSON format is used with the OTAC API

[MAIN]
VER_MAJ=1
VER_MIN=1
DATE=""
SERIAL="abc123"
NUMBER=""
LOCATION=""
APN="pccw"
APN_USR=""
APN_PWD=""
NTP_URL="216.239.35.12"
NTP_PORT=123
LOG="I"
SEND_ALERT=True
SEND_PEAK=True
SEND_DATA=True
SEND_CFG=True
CHECK_CFG=True
SEND_LOG=True
SEND_SMS=True

[OTAP]
URL="ftp.inzwatech.com"
PORT=21
USR="fwupdates"
PWD="inzwafw"
MAIN_OT2="/veva/Main_{SEQ5}.ot2"
MAIN_CRC="/veva/Main_{SEQ5}.crc"
SENS_OT2="/veva/Vibr_{SEQ5}.ot2"
SENS_CRC="/veva/Vibr_{SEQ5}.crc"

[EXPORT]
LOC_DIR_FLAT=False
REM_DIR_FLAT=False
ALERT_FMT=0
DATA_FMT=2
PEAK_FMT=0
PPA_UNITS=1
PPV_UNITS=2
PPD_UNITS=6

[REM_DIR_FLAT]
ROOT="/"
NEW_CFG="{ROOT}CONFIG/{MAC}.new"
CUR_CFG="{ROOT}CONFIG/{MAC}.config"
BAD_CFG="{ROOT}CONFIG/{MAC}.new.bad"
VIBR_ALT_CSV="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.event.csv"
VIBR_ALT_JSN="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.event.json"
VIBR_ALT_BIN="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.event.bin"
VIBR_DATA_CSV="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.waveform.csv"
VIBR_DATA_JSN="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.waveform.json"
VIBR_DATA_BIN="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.waveform.bin"
VIBR_PEAK_CSV="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.interval.csv"
VIBR_PEAK_JSN="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.interval.json"
VIBR_PEAK_BIN="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.interval.bin"
LOG_FMT="{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.log.txt"

[REM_DIR_NEST]
ROOT="/"
NEW_CFG="{ROOT}CONFIG/{MAC}.new"
CUR_CFG="{ROOT}CONFIG/{MAC}.config"
BAD_CFG="{ROOT}CONFIG/{MAC}.new.bad"
VIBR_ALT_CSV="{ROOT}{MAC}/FILES/VIBR/ALT_{SEQ4}.csv"
VIBR_ALT_JSN="{ROOT}{MAC}/FILES/VIBR/ALT_{SEQ4}.json"
VIBR_ALT_BIN="{ROOT}{MAC}/FILES/VIBR/ALT_{SEQ4}.bin"
VIBR_DATA_CSV="{ROOT}{MAC}/FILES/VIBR/VACC{SEQ4}.csv"
VIBR_DATA_JSN="{ROOT}{MAC}/FILES/VIBR/VACC{SEQ4}.json"
VIBR_DATA_BIN="{ROOT}{MAC}/FILES/VIBR/VACC{SEQ4}.bin"
VIBR_PEAK_CSV="{ROOT}{MAC}/FILES/PEAKS/{YY}{MM}{DD}{SEQ2}.csv"
VIBR_PEAK_JSN="{ROOT}{MAC}/FILES/PEAKS/{YY}{MM}{DD}{SEQ2}.json"
VIBR_PEAK_BIN="{ROOT}{MAC}/FILES/PEAKS/{YY}{MM}{DD}{SEQ2}.bin"
LOG_FMT="{ROOT}{MAC}/LOG/{YY}{MM}{DD}{SEQ2}.txt"

[SCHEDULE]
STATUS="00:00:05:00"
RESET="00:08:00:00"
PEAK="00:04:00:00"
HOUSEKEEP="00:12:00:00"

[FTP]
URL="ftp.inzwatech.com"
PORT=21
USR=""
PWD=""
ACT=False

[SMS]
1="2936,T"
2=",F"
3=""
4=""
5=""

[OPERATORS]
1="CSL,T"
2=""
3=""
4=""
5=""

[SENSORS]
000000 = "VIBR,00000000000000000000000000000000"

[000000_VIBR]
FLG_RAW=True
FLG_FILT=False
FLG_SCALE=True
FLG_TRIG=False
FLG_ALT_X=False
FLG_ALT_Y=False
FLG_ALT_Z=False
FLG_PERIOD=False
FLG_SCHED=False
FLG_SCHED1=False
FLG_SCHED2=False
FLG_SCHED3=False
FLG_SCHED4=False
FLG_SCHED5=False
FLG_SCHED6=False
SAMP_FREQ=1000
PEAK_SPAN=300
TRIG_LEVEL=80
PPV_MAX_X=5.000000
PPV_MAX_Y=5.000000
PPV_MAX_Z=5.000000
PRE_SEC=1
MIN_SEC=2
MAX_SEC=10
REA_SEC=3
FILTER=1
ACC_SCALE=8
PERIOD=09:00:00 17:00:00
SCHED1=2019/05/01 09:00:00 17:00:00
SCHED2=2019/05/01 09:00:00 17:00:00
SCHED3=2019/05/01 09:00:00 17:00:00
SCHED4=2019/05/01 09:00:00 17:00:00
SCHED5=2019/05/01 09:00:00 17:00:00
SCHED6=2019/05/01 09:00:00 17:00:00
{
  "MAIN": {
    "VER_MAJ": 1,
    "VER_MIN": 2,
    "DATE": "",
    "SERIAL": "32924b",
    "NUMBER": "",
    "LOCATION": "",
    "APN": "pccw",
    "APN_USR": "",
    "APN_PWD": "",
    "NTP_URL": "216.239.35.12",
    "NTP_PORT": 123,
    "LOG": "I",
    "SEND_ALERT": true,
    "SEND_PEAK": true,
    "SEND_DATA": true,
    "SEND_CFG": true,
    "CHECK_CFG": true,
    "SEND_LOG": true,
    "SEND_SMS": true
  },
  "OTAP": {
    "URL": "ftp.inzwatech.com",
    "PORT": 21,
    "USR": "fwupdates",
    "PWD": "inzwafw",
    "MAIN_OT2": "/veva/Main_{SEQ5}.ot2",
    "MAIN_CRC": "/veva/Main_{SEQ5}.crc",
    "SENS_OT2": "/veva/Vibr_{SEQ5}.ot2",
    "SENS_CRC": "/veva/Vibr_{SEQ5}.crc"
  },
  "EXPORT": {
    "LOC_DIR_FLAT": false,
    "REM_DIR_FLAT": false,
    "ALERT_FMT": 0,
    "DATA_FMT": 2,
    "PEAK_FMT": 0,
    "PPA_UNITS": 1,
    "PPV_UNITS": 2,
    "PPD_UNITS": 6
  },
  "REM_DIR_FLAT": {
    "ROOT": "/",
    "NEW_CFG": "{ROOT}CONFIG/{MAC}.new",
    "CUR_CFG": "{ROOT}CONFIG/{MAC}.config",
    "BAD_CFG": "{ROOT}CONFIG/{MAC}.new.bad",
    "VIBR_ALT_CSV": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.event.csv",
    "VIBR_ALT_JSN": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.event.json",
    "VIBR_ALT_BIN": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.event.bin",
    "VIBR_DATA_CSV": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.waveform.csv",
    "VIBR_DATA_JSN": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.waveform.json",
    "VIBR_DATA_BIN": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.waveform.bin",
    "VIBR_PEAK_CSV": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.interval.csv",
    "VIBR_PEAK_JSN": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.interval.json",
    "VIBR_PEAK_BIN": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.interval.bin",
    "LOG_FMT": "{ROOT}{MAC}_{SEQ3}_{YYYY}{MM}{DD}{hh}{mm}_1.log.txt"
  },
  "REM_DIR_NEST": {
    "ROOT": "/",
    "NEW_CFG": "{ROOT}CONFIG/{MAC}.new",
    "CUR_CFG": "{ROOT}CONFIG/{MAC}.config",
    "BAD_CFG": "{ROOT}CONFIG/{MAC}.new.bad",
    "VIBR_ALT_CSV": "{ROOT}{MAC}/ALERT/ALT_{SEQ4}.csv",
    "VIBR_ALT_JSN": "{ROOT}{MAC}/ALERT/ALT_{SEQ4}.json",
    "VIBR_ALT_BIN": "{ROOT}{MAC}/ALERT/ALT_{SEQ4}.bin",
    "VIBR_DATA_CSV": "{ROOT}{MAC}/ALERT/VACC{SEQ4}.csv",
    "VIBR_DATA_JSN": "{ROOT}{MAC}/ALERT/VACC{SEQ4}.json",
    "VIBR_DATA_BIN": "{ROOT}{MAC}/ALERT/VACC{SEQ4}.bin",
    "VIBR_PEAK_CSV": "{ROOT}{MAC}/HISTOGRAM/{YY}{MM}{DD}{SEQ2}.csv",
    "VIBR_PEAK_JSN": "{ROOT}{MAC}/HISTOGRAM/{YY}{MM}{DD}{SEQ2}.json",
    "VIBR_PEAK_BIN": "{ROOT}{MAC}/HISTOGRAM/{YY}{MM}{DD}{SEQ2}.bin",
    "LOG_FMT": "{ROOT}{MAC}/LOG/{YY}{MM}{DD}{SEQ2}.txt"
  },
  "SCHEDULE": {
    "STATUS": "00:00:05:00",
    "RESET": "00:08:00:00",
    "PEAK": "00:04:00:00",
    "HOUSEKEEP": "00:12:00:00"
  },
  "FTP": {
    "URL": "ftp.inzwatech.com",
    "PORT": 21,
    "USR": "inzwadev",
    "PWD": "7WBuJekD9Awovt",
    "ACT": "False"
  },
  "SMS": {
    "1": "2935,T",
    "2": ",F",
    "3": "",
    "4": "",
    "5": ""
  },
  "OPERATORS": {
    "1": "CSL,T",
    "2": "",
    "3": "",
    "4": "",
    "5": ""
  },
  "SENSORS": {
    "000000": "VIBR,00000000000000000000000000000000"
  },
  "000000_VIBR": {
    "FLG_RAW": true,
    "FLG_FILT": false,
    "FLG_SCALE": true,
    "FLG_TRIG": false,
    "FLG_ALT_X": false,
    "FLG_ALT_Y": false,
    "FLG_ALT_Z": false,
    "FLG_PERIOD": false,
    "FLG_SCHED": false,
    "FLG_SCHED1": false,
    "FLG_SCHED2": false,
    "FLG_SCHED3": false,
    "FLG_SCHED4": false,
    "FLG_SCHED5": false,
    "FLG_SCHED6": false,
    "SAMP_FREQ": 1000,
    "PEAK_SPAN": 300,
    "TRIG_LEVEL": 80,
    "PPV_MAX_X": 5.000000,
    "PPV_MAX_Y": 5.000000,
    "PPV_MAX_Z": 5.000000,
    "PRE_SEC": 1,
    "MIN_SEC": 2,
    "MAX_SEC": 10,
    "REA_SEC": 3,
    "FILTER": 1,
    "ACC_SCALE": 8,
    "PERIOD": "09:00:00 17:00:00",
    "SCHED1": "2019/05/01 09:00:00 17:00:00",
    "SCHED2": "2019/05/01 09:00:00 17:00:00",
    "SCHED3": "2019/05/01 09:00:00 17:00:00",
    "SCHED4": "2019/05/01 09:00:00 17:00:00",
    "SCHED5": "2019/05/01 09:00:00 17:00:00",
    "SCHED6": "2000/00/00 00:00:00 00:00:00"
  }
}

Last update: March 8, 2024