How did you populate your data tables in the anvil ide?
As @Matthias mentions.
The anvil run time will create datatables according to the same schema but they will be empty. You have to repopulate the dataā¦
Hi @marcosandretavaresfe,
hope that worked for you. However, before you go further down this route, could you explain a bit, what you intend to achieve?
For instance, why do you intend to host the whole Anvil app server on your raspi? You can do this, of course, but why would you?
I am just asking cause you write that you are new to Anvil. And managing the whole app server on your raspi yourself is not really what Iād consider a beginnerās topic.
Im doing my final projet at University.
What Im trying to do is:
In my work (yes, Im studying and working at the same time) i have to many different PCBs that need to be tested.
What Iām trying to do is to create a box, inside it will have a RaspberryPi runnig a app (at first I think in PyQt5), and a touchscreen to control the app.
For each PCB (for start I choose 4) I create one python file to test if this PCB is good or not, and its working.
Now I want to create this app with Anvil. This app it will have to run this python files i create.
Thats what i want.
Of course, in future i will add more PCBs, so i need a database, i will need to have acess in my PC, so open the app on the network, and much more stuff that anvil has and its great.
Alright, I do not really understand why you need to run Anvil locally on your raspi, but you surely have your reasons.
As far as I understand it, you could just run all the PCB testing code with a python script on the raspi, send the results via Anvil uplink to the database, use this database for your app which is running under domain āwhatever-appname.anvil.appā and access this from anywhere you want.
Hi @marcosandretavaresfe,
I understand, but the decision criterion for deciding whether you need to run Anvil locally is whether your box has an internet connection or not. It can be portable and still have internet connection. In that case their is no need to run it locally.
Another argument would be if youād have huge amount of data that you would send to the DB. Then it might be as well be advisible to run locally.
I dont have internet connection ⦠this is for a factory, and there i have intranet not internet like i have in my home ⦠the Pi cant have acess to internet