2024-10-13 03:45:19 -05:00
{
"actions" : [
] ,
"decoder" : 1 ,
"frameEnd" : ";" ,
2024-10-14 18:44:14 -05:00
"frameParser" : "/**\n * This function parses a binary data frame (represented as a hexadecimal string),\n * and converts it into an array of decimal values (0-255).\n *\n * @param[in] frame The latest received frame as a hexadecimal string.\n * @return Array of integers containing the parsed frame elements.\n */\nfunction parse(frame, separator) {\n let dataArray = [];\n for (let i = 0; i < frame.length; i += 2) {\n let hexByte = frame.substring(i, i + 2);\n let decimalValue = parseInt(hexByte, 16);\n dataArray.push(decimalValue * 5.0 / 255);\n }\n\n return dataArray;\n}" ,
2024-10-13 03:45:19 -05:00
"frameStart" : "$" ,
"groups" : [
{
"datasets" : [
{
"alarm" : 0 ,
"fft" : true ,
"fftSamples" : 1024 ,
2024-10-27 05:38:58 -05:00
"fftSamplingRate" : 250 ,
2024-10-13 03:45:19 -05:00
"graph" : false ,
"index" : 1 ,
"led" : false ,
"ledHigh" : 1 ,
"log" : false ,
2024-10-14 18:44:14 -05:00
"max" : 5 ,
2024-10-13 03:45:19 -05:00
"min" : 0 ,
"title" : "ADC 0" ,
"units" : "Volts" ,
"value" : "--.--" ,
"widget" : ""
} ,
{
"alarm" : 0 ,
"fft" : true ,
"fftSamples" : 1024 ,
2024-10-27 05:38:58 -05:00
"fftSamplingRate" : 250 ,
2024-10-13 03:45:19 -05:00
"graph" : false ,
"index" : 2 ,
"led" : false ,
"ledHigh" : 1 ,
"log" : false ,
2024-10-14 18:44:14 -05:00
"max" : 5 ,
2024-10-13 03:45:19 -05:00
"min" : 0 ,
"title" : "ADC 1" ,
"units" : "Volts" ,
"value" : "--.--" ,
"widget" : ""
} ,
{
"alarm" : 0 ,
"fft" : true ,
"fftSamples" : 1024 ,
2024-10-27 05:38:58 -05:00
"fftSamplingRate" : 250 ,
2024-10-13 03:45:19 -05:00
"graph" : false ,
"index" : 3 ,
"led" : false ,
"ledHigh" : 1 ,
"log" : false ,
2024-10-14 18:44:14 -05:00
"max" : 5 ,
2024-10-13 03:45:19 -05:00
"min" : 0 ,
"title" : "ADC 2" ,
"units" : "Volts" ,
"value" : "--.--" ,
"widget" : ""
} ,
{
"alarm" : 0 ,
"fft" : true ,
"fftSamples" : 1024 ,
2024-10-27 05:38:58 -05:00
"fftSamplingRate" : 250 ,
2024-10-13 03:45:19 -05:00
"graph" : false ,
"index" : 4 ,
"led" : false ,
"ledHigh" : 1 ,
"log" : false ,
2024-10-14 18:44:14 -05:00
"max" : 5 ,
2024-10-13 03:45:19 -05:00
"min" : 0 ,
"title" : "ADC 3" ,
"units" : "Volts" ,
"value" : "--.--" ,
"widget" : ""
} ,
{
"alarm" : 0 ,
"fft" : true ,
"fftSamples" : 1024 ,
2024-10-27 05:38:58 -05:00
"fftSamplingRate" : 250 ,
2024-10-13 03:45:19 -05:00
"graph" : false ,
"index" : 5 ,
"led" : false ,
"ledHigh" : 1 ,
"log" : false ,
2024-10-14 18:44:14 -05:00
"max" : 5 ,
2024-10-13 03:45:19 -05:00
"min" : 0 ,
"title" : "ADC 4" ,
"units" : "Volts" ,
"value" : "--.--" ,
"widget" : ""
} ,
{
"alarm" : 0 ,
"fft" : true ,
"fftSamples" : 1024 ,
2024-10-27 05:38:58 -05:00
"fftSamplingRate" : 250 ,
2024-10-13 03:45:19 -05:00
"graph" : false ,
"index" : 6 ,
"led" : false ,
"ledHigh" : 1 ,
"log" : false ,
2024-10-14 18:44:14 -05:00
"max" : 5 ,
2024-10-13 03:45:19 -05:00
"min" : 0 ,
"title" : "ADC 5" ,
"units" : "Volts" ,
"value" : "--.--" ,
"widget" : ""
}
] ,
"title" : "ADC Readings" ,
"widget" : "multiplot"
}
] ,
"mapTilerApiKey" : "" ,
"separator" : "," ,
"thunderforestApiKey" : "" ,
"title" : "Hexadecimal ADC"
}