(16.03.2017, 14:23)admin Wrote: To get trend data, you have to call fetch instead of main.
If I request fetch I get error message:
Code:
Error: /lib/genohm-scada/web/trends/fetch.lua:0: attempt to index a nil value
Which are parameters need to add to POST or GET request for the url ("http://LM-IP/scada-main/trends/fetch") if I need get list of trends?
I add followoing parameters to POST request for get values of trend
Code:
data:"{"dates_curr":{"start":{"year":2017,"day":1,"month":3},"end":{"year":2017,"day":17,"month":3}},"id":14,"dates_prev":{"start":{"year":2017,"day":16,"month":3},"end":{"year":2017,"day":17,"month":3}}}"
But I don't know which parameters using for get list of all trends in a system.