Add config-based database conversion.

This commit is contained in:
Joshua Lucas
2026-10-29 09:09:03 -05:00
parent 36636878bd
commit d5da5c6618
35 changed files with 8450 additions and 209 deletions

View File

@@ -0,0 +1,49 @@
$schema: ../../../src/AuDage/extensions/assets/schema.yaml
format:
name: csv
sep: " "
header: false
index: false
extension: mcr
quoting: 3 # No quoting
quotechar: null
escapechar: null
import:
columns:
command:
type: str
const: "&set"
tagname:
type: str
translate:
columns: tagname
operations:
- operation: radd
arg: Strings.$plc$.PLC.
value:
type: str
translate:
columns: tagname
operations:
- operation: replace
pattern: '.*?([A-Z])\d?\.On_Message'
repl: '"\1"'
- operation: replace
pattern: '^"H"$'
repl: '"High"'
- operation: replace
pattern: '^"L"$'
repl: '"Low"'
- operation: replace
pattern: '^"[A-Z]"$'
repl: '"Alarm"'
export:
tagname:
translate:
columns: tagname
type:
const: ""
address:
const: ""
comment:
const: ""