Function to decrypt Base64 data from Node-Red and display on dashboard

this

then

to get rid of the surrounding whitespace

Thanks all, i so appreciate your guidance all through. this project has taken me 3 months and in just a week following all your follow ups am close to finish. please one last problem i have is that after i split the values which were supposed to be current and Voltage i wrote a function in order to connect to the gauges. the function is as in photo 2 while my splitted values are shown in photo 1. now when i connected the guages, i only have readings on the voltage gauge and nothing on the current gauge. i guess i have a mistake in the function code. please if you can help. my gauges are in photo3data2 data3

Read the section on logging events https://nodered.org/docs/user-guide/writing-functions

Then you can add lines in your function node to see what’s going on.