19.10.2016, 20:14
(This post was last modified: 19.10.2016, 20:19 by Erwin van der Zwart.)
Hi,
Trenddatamonth is the result of the trend.fetch on line 133 and this is (or should be) a table you get back from the trend.
Are you sure you have used the correct trend name?
See line 30 to 37:
--Set export mode (selected trend(s) or all trends)
export_all = true
--Set trend names if not all trends need to be exported (only used when export_all = false)
trendnames = {
"Total Electric Usage",
"Total Water Usage",
"Total Gas Usage",
}
If export_all = false then the table trendnames will be used, so those should match your trend names
BR,
Erwin
Trenddatamonth is the result of the trend.fetch on line 133 and this is (or should be) a table you get back from the trend.
Are you sure you have used the correct trend name?
See line 30 to 37:
--Set export mode (selected trend(s) or all trends)
export_all = true
--Set trend names if not all trends need to be exported (only used when export_all = false)
trendnames = {
"Total Electric Usage",
"Total Water Usage",
"Total Gas Usage",
}
If export_all = false then the table trendnames will be used, so those should match your trend names
BR,
Erwin