Like you can see I have a menu, and when a user choose is option I comunicate with i2c devices and others protocols.
I want to know if this is possible to run in an Anvil web App.
Like you may realize this need to be in real time and fast.
I will leave some videos that i do, to you have some ideas:
What I want is, when I click in a button the script will run in the browser in real time and of course it needs to acept inputs (most of the times, the inputs are numbers).
This is possible in Anvil ?
I try to use Uplink but it gives errors.
If there are more than a handful users accessing the same realtime data, Anvil seems not to be a good choice since every sever request takes around 2 or 3 seconds or more depends on the number of users and the size of the data.
If the data is less likely to change often and not sensitive, loading all data to client side can make the app extremely fast.
Oh yes, i forgot to say, these scripts are in a RaspberryPi (SO - Raspbian).
Only one user will use it, the raspberrypi itself.
The data is not sensitive.
Thanks for the answer, but how can I run these scripts that I have in my raspberry ?
I search in anvil site and can’t find it.
Well the content of that file is a bit long … the purpose of it is to test a PCB, its my final university projet … it sees how many COM Ports has the PC, coming from the FTDI Chip, and see if each COM Port is comunicating
Yeah that module won’t run on the client side. Client side stuff only knows about your browser and not your machinery so things like os don’t make sense and aren’t supported by the skulpt architecture.
The two approaches will be to use uplink or to use the anvil standalone runtime. As suggested above.
It looks like you’re combining the app-server with anvil uplink?
But on the app-server you can pip install what you need because you are running the server. Then put your server functions in the server modules rather than using uplink. This way you don’t need to connect using anvil uplink at all.