Read/write data on a remote server

Is it conceivable to use Processing or P5js to read/write data on a remote server?

It would be about creating an application to query the data of their account (with the use of a password).

What would be the simplest way to go about it?

1 Like

Yes, it is absolutely conceivable to use Processing to read and write data on a remote server. You can achieve this by making use of its built-in networking libraries

To read and write data on a remote server with Processing, you can use HTTP requests (GET/POST) for data exchange.

Related:

This is a while back and I won’t be revisiting this anytime soon.

I did come up with a simple proof of concept with a local Python server and communicating to it with a Processing client sketch.
I have done this in the past and needed a serious refresher!

This should be enough to get you started!

Client:

Python server running in command window:

Python server in editor:

Saves to log.txt file:

This was familiar to me and that simplified things.
There will be a learning curve.

Have fun!

:)

Hello @EricRogerGarcia,

Any success with this project?

:)

I’m still investigating :upside_down_face:

I need to study the possibility of creating a client application on smartphone and desktop (or in a browser) that can access a server that is constantly running.
It is about allowing people to use a points system to buy and sell food.

N.B. Users would have a certain number of points per month based on a different monthly payment (in euros) depending on their resources. Sellers would receive euros based on their point sales.

I also have in mind the possibility of being able to build multiplayer games for later.

P.S. I am ready to study this subject… but I don’t really know where to start!

I’m wondering if I could use a server written in PHP (but I don’t know PHP yet) because PHP is available on most website owner

there is also the possibility to make a server with something like yunohost !

I really would like to be able to use Processing/P5js and expand my PstarEngine project for this !

(for the client application)