So in a nutshell each time the PC boots the javascript seems to reset the alarm from False to True until I change it to disables in the Companion program.
If there a line i can add in the script to not update it or "lock" the current settings or should I try just make it read only?
Thanks.
If there a line i can add in the script to not update it or "lock" the current settings or should I try just make it read only?
JavaScript:
cfg =
{
"httpServers": {"http": {"port": 4679}},
"acquisition":
{
"initDispatch": 100,
"pollingRate": 5000
},
"localization":
{
"langCode": "eng",
"langName": "[en] English",
"time": "h:MM:ss tt",
"shortDate": "mm/dd/yy",
"extShortDate": "m/d/y",
"longDate": "mmmm d, yyyy",
"firstWeekDay": 0,
"widthFactor": 1,
"language": "en",
"country": ""
},
"sysInfo":
{
"contact": "",
"location": "",
"productKey": ""
},
"shutdownSettings":
{
"powerSource": "5E",
"loadSegment": 1,
"shutdownDuration": 120,
"shutdownTimer": 300,
"runTimeToEmptyLimit": 300,
"shutoffControl": 1,
"shutdownType": "shutdown",
"shutdownScript": "",
"shutdownCriteria": ["#ShutdownReached"]
},
"autoUpdate":
{
"lastCheckDate": 0,
"checkInterval": 604800000,
"mode": "autoCheck",
"updateLocation":
{
"host": "pqsoftware.eaton.com",
"port": 80,
"path": "upgrade"
},
"lastCheck": 1683302903435,
"nextCheckUpdate": 1683907703435
},
"scan":
{
"serialScan": true,
"serialRange": "1-8",
"usbScan": true
},
"systray":
{
"soundAlarm": false,
"notificationIcon": true,
"notificationBox": true
},
"energy":
{
"resetPeriod": "weekly",
"cost": 0,
"currency": "-",
"powerFactor": 0.8,
"consumption": 1754064,
"resetDate": 1684015200
},
"ecoControl": {"mode": "low"}
}
Thanks.