This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How are get trends list and them data via HTTP request?
#5
(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}}}"
where "id" - the id of some trend

But I don't know which parameters using for get list of all trends in a system.
Reply


Messages In This Thread
RE: How are get trends list and them data via HTTP request? - by zebox - 16.03.2017, 15:41

Forum Jump: