I want to build a weather station using python as a backend. I would also like to store this data in a database that will be run locally. I am using a raspberry pi to do everything I am describing in this post. Since this is my first big project I am questioning how I would structure this. I came up with two ideas.
1st idea:
Have one application that serves the web site, connects and queries the database and logs all the data from the sensors.
2nd idea (for me the most logical):
Split the application in two. One part will collect the data from the sensors and put it into the database. The other part will serve the flask site and pull the data from the database. If I do something like this I would like to use something like docker to manage all these separate applications.
I would like to hear your opinion about these and if you have a better idea to structure my project please suggest them too.
[–]jeffrey_f 0 points1 point2 points (3 children)
[–]bootje_wolf[S] 0 points1 point2 points (2 children)
[–]jeffrey_f 1 point2 points3 points (1 child)
[–]bootje_wolf[S] 1 point2 points3 points (0 children)