for osm: only changing values are exported
parent
7a2957391a
commit
8aff2d7c30
|
@ -346,7 +346,7 @@ while a > 1:
|
|||
f1.close()
|
||||
if bosm:
|
||||
for pv in push_vars:
|
||||
if push_counter == push_count:
|
||||
if push_mean_counts[pv] == push_count:
|
||||
sense_dta=push_data[pv]/(1000*push_mean_counts[pv])
|
||||
if pv == "volt_sweep_oc":
|
||||
sense_data=sense_data * ch_val[channel_names.index("volt_scale")] / 65536 / 32768
|
||||
|
@ -354,8 +354,9 @@ while a > 1:
|
|||
push_data[pv] = 0
|
||||
push_mean_counts[pv] = 0
|
||||
else:
|
||||
push_data[pv]=push_data[pv]+ch_val[channel_names.index(pv)]
|
||||
push_mean_counts[pv]=push_mean_counts[pv]+1
|
||||
if channel_info[pv]['timestamp'] == timestamp:
|
||||
push_data[pv]=push_data[pv]+ch_val[channel_names.index(pv)]
|
||||
push_mean_counts[pv]=push_mean_counts[pv]+1
|
||||
if bsql:
|
||||
json_out={"time": ch_val[channel_names.index("time")],"device": devicename,"payload":payload}
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue