def
func:energyStarHisPush
energyStarHisPush(proxies, range)
Push the daily rollup consumption of mapped meter points to portfolio manager. The proxies may be any set of points accepted by toRecList().
Each point is required:
- define
energyStarConnReftag for connector to use - define
energyStarMeterfor which meter it is mapped to - must be a point with historized consumption values
- point's site must define
energyStarSitetag
If the range is null, then we perform a read using energyStarUsageRead() to find the last endDate written. Then we assume a range of endDate+1day to yesterday. This guarantees that we are only pushing newer data to portfolio manager.
The usage to push is calcualted by perform a daily rollup on the history using the sum() function:
read(proxy).hisRead(range).hisClip.hisRollup(sum, 1day)
meta
| admin | ✓ |
|---|---|
| def | func:energyStarHisPush |
| is | func |
| lib | lib:energyStar |
| name | energyStarHisPush |