python - Move data from Raspberry pi to a synology diskstation to present in a webpage -
I am looking for ideas, how the sensor data is displayed in a webpage, by which a Synology Diskstation Hosted, where data comes from sensors connected to Raspberry PI, it is being implemented in Python.
I have put the sensors together, and they are connected to raspberry. I also have Python code, so I can read the sensor. I have a webpage and running on display on Python. But how do I get data from the disk? When the webpage is displayed, the reading is done entirely.
Is there any type of webservice of Rasp? I've seen Pyro 4 but do not think it can be installed on the disc.
Do you have a suggestion?
I am not experimenting on this subject, but what do I do (instead of Raspberry PI Synology On) is to establish a database between Let's call your synonyms Server , and Raspberry PA Sensor customer . I will host a database on the server, and the sensor client. Data will either be pushed through webservices using an API or at a more low level if you want it fast (this requires some code on the server side) or since the client computer is in your control, it is directly in the database I have never used it but I suggest that you use SQLAlchemy to connect to the database (both sides). In case of some use, the remote server may down, the sensor client will store sensor data in some local files and push them back when the server returns online.
Comments
Post a Comment