phyphox Forums
Request data from the last X seconds. - Printable Version

+- phyphox Forums (https://phyphox.org/forums)
+-- Forum: Discussion (https://phyphox.org/forums/forumdisplay.php?fid=1)
+--- Forum: General (https://phyphox.org/forums/forumdisplay.php?fid=3)
+--- Thread: Request data from the last X seconds. (/showthread.php?tid=1728)



Request data from the last X seconds. - DaviPrata - 04-07-2023

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!


RE: Request data from the last X seconds. - Jens Noriʇzsɔɥ - 04-07-2023

Are you aware of the phyphox REST API, https://phyphox.org/wiki/index.php/Remote-interface_communication, 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.