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 whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Request data from the last X seconds.
#1
Hello everybody.

I come here to ask for a little help.
I'm trying to do an experiment where whenever I press a button it captures data from that moment.
My doubt is, is there any command for me to request via python for the APP to send only the data of the last two seconds, for example? Or do I have to first download the time information, do the local calculation, and send the request again?

Another doubt, is there a way I can request only the data from the buffer? To come the smallest possible file.
I'm looking for ways to make requests as few as possible and data as light as possible.

Thanks for everyone's attention!
Reply
#2
Are you aware of the phyphox REST API, https://phyphox.org/wiki/index.php/Remot...munication, that is used for the app's remote access feature? Possibly, it already solves your task…

The buffer names can be obtained by the experiment sources at https://github.com/phyphox/phyphox-experiments.
Reply


Forum Jump: