strip prefix
This commit is contained in:
@@ -61,15 +61,15 @@ function Decoder(fPort, bytes, variables) {
|
|||||||
Dir_lo10 = precisionRound(bitShift(8)*1, 1);
|
Dir_lo10 = precisionRound(bitShift(8)*1, 1);
|
||||||
|
|
||||||
decoded = {
|
decoded = {
|
||||||
"1_Type": Type,
|
"Type": Type,
|
||||||
"2_Battery": Battery,
|
"Battery": Battery,
|
||||||
"3_Wind_ave10": Wind_ave10,
|
"Wind_ave10": Wind_ave10,
|
||||||
"4_Wind_max10": Wind_max10,
|
"Wind_max10": Wind_max10,
|
||||||
"5_Wind_min10": Wind_min10,
|
"Wind_min10": Wind_min10,
|
||||||
"6_Dir_ave10": Dir_ave10,
|
"Dir_ave10": Dir_ave10,
|
||||||
"7_Dir_max10": Dir_max10,
|
"Dir_max10": Dir_max10,
|
||||||
"8_Dir_hi10": Dir_hi10,
|
"Dir_hi10": Dir_hi10,
|
||||||
"9_Dir_lo10": Dir_lo10,
|
"Dir_lo10": Dir_lo10,
|
||||||
};
|
};
|
||||||
|
|
||||||
return decoded;
|
return decoded;
|
||||||
|
|||||||
@@ -64,18 +64,18 @@ function Decoder(fPort, bytes, variables) {
|
|||||||
Alarm_sent = precisionRound(bitShift(1)*1, 1);
|
Alarm_sent = precisionRound(bitShift(1)*1, 1);
|
||||||
|
|
||||||
decoded = {
|
decoded = {
|
||||||
"1_Index": Index,
|
"Index": Index,
|
||||||
"2_Battery": Battery,
|
"Battery": Battery,
|
||||||
"3_Wind_ave": Wind_ave,
|
"Wind_ave": Wind_ave,
|
||||||
"4_Wind_3sgust": Wind_3sgust,
|
"Wind_3sgust": Wind_3sgust,
|
||||||
"5_Wind_3smin": Wind_3smin,
|
"Wind_3smin": Wind_3smin,
|
||||||
"6_Wind_stdev": Wind_stdev,
|
"Wind_stdev": Wind_stdev,
|
||||||
"7_Dir_ave": Dir_ave,
|
"Dir_ave": Dir_ave,
|
||||||
"8_Dir_3sgust": Dir_3sgust,
|
"Dir_3sgust": Dir_3sgust,
|
||||||
"9_Dir_stdev": Dir_stdev,
|
"Dir_stdev": Dir_stdev,
|
||||||
"10_Gust_time": Gust_time,
|
"Gust_time": Gust_time,
|
||||||
"11_Vector_scalar": Vector_scalar,
|
"Vector_scalar": Vector_scalar,
|
||||||
"12_Alarm_sent": Alarm_sent,
|
"Alarm_sent": Alarm_sent,
|
||||||
};
|
};
|
||||||
|
|
||||||
return decoded;
|
return decoded;
|
||||||
|
|||||||
Reference in New Issue
Block a user