需要在树莓派上搭建一个webserver(使用flask),将树莓派采集到的传感器实时数据(用python采集)以折线图(或柱状图)的方式动态显示在网页上。
PHP中文网2017-04-18 10:34:41
Now that you already know how to use websocket and flask, you can use flask-SocketIO
this plug-in, combined with a front-end chart component, such as echarts, HighCharts or amCharts, and the websocket will update the table in real time when new data is received.
怪我咯2017-04-18 10:34:41
I have the same need now, and I plan to use echarts to realize the real-time display of data.