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.

Send data to server
#1
In a project I am involved in, we plan to let pupils in schools collect data that should be sent to a server. 
Is there an easy way to send this data directly to the server without going through a mail program, or for example, Google Drive?
Reply
#2
There is https://phyphox.org/wiki/index.php/Network_Connections and you could see an example of its application at https://phyphox.org/sun/
Reply
#3
Thanks, I will look into this. The data files to be sent are quite large something that might be an issue.
Reply
#4
Size should not be that much of an issue over HTTP, should it? On the other hand: text/json is not … optimal for transferring numerical data.
Reply
#5
Seems to work, I am not used to working with PHP, but I could send and read the data. 
The issue is that the users must be able to find their data on the planned webpage. But I can not find a way to show the uniqueID on the phone for identification of data.
Reply
#6
[Sorry, my answer did not get published]

The uniqueID cannot be shown and it would not be a comfortable way to identify data (huge random number that you would not want to enter or compare). We would generate personalised XML files that obtain an ID from your server, perhaps associated to user accounts. Alternatively, you could provide an edit field where users could enter a number.
Reply
#7
(05-07-2025, 09:54 AM)Jens Noriʇzsɔɥ Wrote: [Sorry, my answer did not get published]

The uniqueID cannot be shown and it would not be a comfortable way to identify data (huge random number that you would not want to enter or compare). We would generate personalised XML files that obtain an ID from your server, perhaps associated to user accounts. Alternatively, you could provide an edit field where users could enter a number.

The issue is that my collaborators wish that users (pupils) could access their measurements on a webpage and compare them with other measurements. An edit field with a number could be a solution, a good idea, thank you!

I got everything working now, except for some ordering issues with the data on the server. The order in which the data (IDs) is written in the resulting data file seems random.  Some PHP issue, but not critical. Just work on the user interface remains and cleaning the code from ugly hacks. Rolleyes
Reply
#8
Sounds good. Congrats.

(I am not sure if I have been clear: you could provide the .phyphox files on that website and dynamically include IDs inside the XML files. You could even include user names, however, only in text rather than input fields.)
Reply


Forum Jump: