PowerSceneLite 1.9.6.1_x64 python3 Preview
views : 269 | 2022-08-30

Dear customer.
This is powerscene patch for python3.
This version is based on PowerSceneLite 1.9.6.1.
We add new API and change some functions for Trand.
Changes are following.
1. logTrand.empty() added
2. logTrand.valueMap() added
3. logTrand.dateTime() added
4. When value is not valid, value return None.
Example are below.
import datetime
# Negative test
st = datetime.datetime(2022,8,30,10,1,35);
v = logTrand.readDataOnTime('Wind Speed',st)
print (v.empty() )
print (v.values() )
print (v.valueMap() )
print (v.dateTime() )
print (v.value('Station #2.Total output power' ) )
OutPut:
True
(None, None, None)
{'Station #1.Total output power': None, 'Station #2.Total output power': None, 'Station #3.Total output power': None}
None
None
#Positive test
st = datetime.datetime(2022,8,30,11,1,35);
v = logTrand.readDataOnTime('Wind Speed',st)
print (v.empty() )
print (v.values() )
print (v.valueMap() )
print (v.dateTime() )
print (v.value('Station #2.Total output power' ) )
OutPut:
False
(5.51091, 30.4263, 42.7632)
{'Station #1.Total output power': 5.51091, 'Station #2.Total output power': 30.4263, 'Station #3.Total output power': 42.7632}
2022-08-30 11:01:35
30.4263
To apply patch
1. extract attached file,
2. copy extracted files and paste your powerscene folder
Thanks