I have a sample csv file and tried to convert to a delimited format csv using powershell. For the timestamp part, it was stored as seconds by default, wondering if it can be converted into "hh:mm"
Not too sure where i should start with.
Thanks for help!
sample.csv
{
"Body" : {
"inverter/1" : {
"Data" : {
"Current_DC_String_1" : {
"Unit" : "A",
"Values" : {
"0" : 0,
"300" : 0,
"600" : 0,
"900" : 0
},
"_comment" : "channelId=66050"
},
"Current_DC_String_2" : {
"Unit" : "A",
"Values" : {
"0" : 0,
"300" : 0,
"600" : 0,
"900" : 0
},
"_comment" : "channelId=131586"
},
"EnergyReal_WAC_Sum_Produced" : {
"Unit" : "Wh",
"Values" : {
"0" : 0,
"300" : 0,
"600" : 0,
"900" : 0
},
"_comment" : "channelId=67830024"
},
"Voltage_DC_String_1" : {
"Unit" : "V",
"Values" : {
"0" : 7.3000000000000007,
"300" : 7.3000000000000007,
"600" : 7.9000000000000004,
"900" : 7.7000000000000002
},
"_comment" : "channelId=66049"
},
"Voltage_DC_String_2" : {
"Unit" : "V",
"Values" : {
"0" : 4.2000000000000002,
"300" : 4.2000000000000002,
"600" : 4.5,
"900" : 4.4000000000000004
},
"_comment" : "channelId=131585"
}
},
"DeviceType" : 233,
"End" : "2020-03-11T23:59:59+11:00",
"NodeType" : 97,
"Start" : "2020-03-11T00:00:00+11:00"
},
"inverter/2" : {
"Data" : {
"Current_DC_String_1" : {
"Unit" : "A",
"Values" : {
"0" : 0,
"300" : 0,
"600" : 0,
"900" : 0
},
"_comment" : "channelId=66050"
},
"Current_DC_String_2" : {
"Unit" : "A",
"Values" : {
"0" : 0,
"300" : 0,
"600" : 0,
"900" : 0
},
"_comment" : "channelId=131586"
},
"EnergyReal_WAC_Sum_Produced" : {
"Unit" : "Wh",
"Values" : {
"0" : 0,
"300" : 0,
"600" : 0,
"900" : 0
},
"_comment" : "channelId=67830024"
},
"Voltage_DC_String_1" : {
"Unit" : "V",
"Values" : {
"0" : 6.7000000000000002,
"300" : 7,
"600" : 6.8000000000000007,
"900" : 7.2000000000000002
},
"_comment" : "channelId=66049"
},
"Voltage_DC_String_2" : {
"Unit" : "V",
"Values" : {
"0" : 2.2000000000000002,
"300" : 2.3000000000000003,
"600" : 2.2000000000000002,
"900" : 2.2000000000000002
},
"_comment" : "channelId=131585"
}
},
"DeviceType" : 233,
"End" : "2020-03-11T23:59:59+11:00",
"NodeType" : 98,
"Start" : "2020-03-11T00:00:00+11:00"
}
},
"Head" : {
"RequestArguments" : {
"Query" : "Inverter+SensorCard+Meter",
"Scope" : "System"
},
"Status" : {
"Code" : 0,
"Reason" : "",
"UserMessage" : ""
},
"Timestamp" : "2020-03-11T01:00:03+11:00"
}
}
Expected result with default timestamp converted
Or if possible can add the date"2020-03-11" parsed from "Start" : "2020-03-11T00:00:00+11:00" in front of converted time to make DateTimestamp for each row.