trentc
10/17/2024, 5:16 PMtrentc
10/17/2024, 5:17 PM{
"timestamp": 1729185434378,
"schema": "s8vkx",
"Status": {
"MemoryErr": false,
"OverheatAbn": false,
"CurrentMeasErr": false,
"VoltageMeasErr": false,
"OverheatingAlm": false,
"YearsToReplaceFUL": true,
"YearsToReplaceHLF": false
},
"OutputVoltage": 24.2,
"OutputCurrent": 2.2,
"PeakHoldCurrent": 5,
"YearsToReplace": 14.6,
"PercentToReplace": 97.4,
"TotalRunTime": 3438,
"ContinuousRunTime": 24323
}trentc
10/17/2024, 5:18 PM# these variables are autogenerated from your instance location
let enterprise = "40Hero"
let site = "Delaware"
let area = "office"
let line = "iiotdemo"
let schema = "_historian"
let tagname = "mytag"
let value = this.without("timestamp") # Remove the timestamp field
value.timestamp_ms = this.timestamp # Add new field timestamp_mstrentc
10/17/2024, 5:19 PMtrentc
10/17/2024, 5:19 PMtrentc
10/17/2024, 5:20 PMBrian Pribe
10/17/2024, 5:35 PMtrentc
10/17/2024, 6:10 PMtrentc
10/17/2024, 6:12 PM# these variables are autogenerated from your instance location
let enterprise = "40Hero"
let site = "Delaware"
let area = "office"
let line = "iiotdemo"
let schema = "_historian"
let tagname = "mytag"
let payloadTagName = "myPayloadTagName"
# Directly modify the root object to remove timestamp and add timestamp_ms
let value = this.without("timestamp") # Remove the timestamp field
value.timestamp_ms = this.timestamp # Add new field timestamp_ms
I get this in the historian....trentc
10/17/2024, 6:26 PMtrentc
10/17/2024, 6:32 PMtrentc
10/17/2024, 6:38 PMJermuk
10/17/2024, 7:23 PMtrentc
10/17/2024, 7:30 PMtrentc
10/17/2024, 7:33 PMtrentc
10/17/2024, 7:34 PMtrentc
10/17/2024, 7:45 PMJermuk
10/17/2024, 7:53 PMJermuk
10/17/2024, 7:54 PMJermuk
10/17/2024, 7:54 PMtrentc
10/17/2024, 8:05 PMtrentc
10/17/2024, 9:33 PM# these variables are autogenerated from your instance location
let enterprise = "40Hero"
let site = "Delaware"
let area = "office"
let line = "iiotdemo"
let schema = "_historian"
let tagname = "devices"
let mqtt_topic_appendix = meta("mqtt_topic").replace_all("40hero/delaware/office/iiotdemo/devices/", "")
let mqtt_topic_appendix_sanitized = $mqtt_topic_appendix.replace_all("/", ".")
let payloadTagName = $mqtt_topic_appendix_sanitized
let value = this.without("timestamp") # Remove the timestamp field
value.timestamp_ms = this.timestamp # Add new field timestamp_msBrian Pribe
10/17/2024, 11:19 PMtrentc
10/18/2024, 1:16 AMJermuk
10/18/2024, 8:15 AMJermuk
10/18/2024, 8:19 AMtrentc
10/18/2024, 10:11 AMBrian Pribe
10/18/2024, 2:34 PM