Getting multiple point values with one request
-
I think it would be a good idea to be able to read multiple xid values with one rest call. Is this scheduled for implementation?
-
Yep you are absolutely correct we should have an endpoint for this, it will make it much easier and faster to grab all the point values for a graph of multiple points for example.
I'll add it to the list of things to do for the next API module release.
-
This can also be used for dashboards where multiple points are displaied. Is there any timeline for this?
Thank You
-
@radu-cigmaian Its being worked on as we speak. It will be in the next version of the API module when it is released, I cannot give an exact date of release but it should only be 1-2 weeks.
-
Great,
Thank You
-
Hi, sorry for bringing up an old thread but as I understand the update has been implemented as of yesterday.
The question is following:
Do i understand it correctly that reading multiple xid values with one rest call reduce the number of websockets on page so the poll with multiple points goes through one websocket instead of the previous version where you had to poll every point with ma-get-point-value and that way you had to create a personal websocket for every point?
Right now I am having trouble with them on a PC with a Celeron CPU because I have around 300 points on the page which need constant updating - modbus does its poll every 1.75 seconds and the PC delay is huge even though I am in LAN and mango logs show that websockets are being closed. But the i3,i5 and i7 CPUs can handle the page well and when connecting outside of lan everything works fast like it should. As i understand there is a limit on websockets in browsers - 255. But I can't find a reason why on my personal computer everything works fine but on my user PC it does not.
Should I implement the multiple xid call as of right now and what is the most optimal number of points which I should put in one rest call?
Many Thanks,
Thomas -
@Thomas-Einasto136 said in Getting multiple point values with one request:
Do i understand it correctly that reading multiple xid values with one rest call reduce the number of websockets on page so the poll with multiple points goes through one websocket
No, REST calls are only used to retrieve historical values for a point. Live updates are always done through websockets.
the previous version where you had to poll every point with ma-get-point-value and that way you had to create a personal websocket for every point?
All live point value updates come through a single websocket. You can verify this via your browser developer tools.
Right now I am having trouble with them on a PC with a Celeron CPU because I have around 300 points on the page which need constant updating - modbus does its poll every 1.75 seconds and the PC delay is huge even though I am in LAN and mango logs show that websockets are being closed. But the i3,i5 and i7 CPUs can handle the page well and when connecting outside of lan everything works fast like it should. As i understand there is a limit on websockets in browsers - 255. But I can't find a reason why on my personal computer everything works fine but on my user PC it does not.
It could be the browser rendering performance. There is only a single websocket connection for live point values so you will not be hitting any limits.
-
Thanks Jared for your fast response and answering my questions.
I will be looking into the rendering problem.
Keep up the good work on the dashboards module. I will be waiting for what you all have in store for us with each upgrade.
Right now it has come out very nice and all I can say is that the module is extremely comfortable and easy to use and I can see all the hard work you and your fellow developers have put into it to make Mango Automation as one of the best open-source SCADA systems in the world.
As i understand while reading the latest notes that you want to offer a possibility that the experience and usage of Mango system could be done if needed only through the module itself which is an awesome opportunity.
Good luck on development!!! :)
-
Thanks for the kind words Thomas, we are certainly striving to be the leading vendor in this space.
Yes, the latest module enables users to create their own custom pages straight through the web interface, we hope this makes it easier for our users!