Folder reorganize 1
This commit is contained in:
23
config/control-settings.php
Normal file
23
config/control-settings.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'kepware' => [
|
||||
'base_url' => rtrim(
|
||||
getenv('KEPWARE_REST_BASE') ?: 'https://192.168.0.9:39320/iotgateway',
|
||||
'/'
|
||||
),
|
||||
'username' => getenv('KEPWARE_REST_USER') ?: 'corey',
|
||||
'password' => getenv('KEPWARE_REST_PASS') ?: '41945549lasuca',
|
||||
'timeout' => (float) (getenv('KEPWARE_REST_TIMEOUT') ?: 5.0),
|
||||
'retry_attempts' => (int) (getenv('KEPWARE_REST_RETRIES') ?: 3),
|
||||
'retry_delay' => (float) (getenv('KEPWARE_REST_RETRY_DELAY') ?: 0.35),
|
||||
'verify_tls' => filter_var(
|
||||
getenv('KEPWARE_REST_VERIFY_TLS'),
|
||||
FILTER_VALIDATE_BOOLEAN,
|
||||
['flags' => FILTER_NULL_ON_FAILURE]
|
||||
) ?? false,
|
||||
],
|
||||
'log_table' => getenv('CONTROL_LOG_TABLE') ?: 'control_write_log',
|
||||
'log_fallback_path' => getenv('CONTROL_LOG_FALLBACK')
|
||||
?: (__DIR__ . '/../storage/control-write.log'),
|
||||
];
|
||||
27
config/control-tags.php
Normal file
27
config/control-tags.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'DO-MORE.PLCRest.v1' => [
|
||||
'name' => 'Test Setpoint', // Friendly label shown in the UI
|
||||
'type' => 'Milling', // Group label (affects default mode)
|
||||
'mode' => 'numeric', // Optional: numeric | boolean
|
||||
'step' => 0.5, // Default +/- step size
|
||||
'min' => 0, // Optional lower bound
|
||||
'max' => 500, // Optional upper bound
|
||||
'precision' => 1, // Round to two decimals
|
||||
'units' => 'tph', // Units shown beside the value
|
||||
'description' => 'Just a test..',
|
||||
],
|
||||
'DO-MORE.PLCRest.x2' => [
|
||||
'name' => 'Test Start/Stop X',
|
||||
'type' => 'Milling',
|
||||
'mode' => 'boolean', // toggles map to Off/On buttons
|
||||
'description' => 'Turns shit off and on again.',
|
||||
],
|
||||
'DO-MORE.PLCRest.c2' => [
|
||||
'name' => 'Test Start/Stop C',
|
||||
'type' => 'Milling',
|
||||
'mode' => 'boolean', // toggles map to Off/On buttons
|
||||
'description' => 'Turns shit off and on again.',
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user