Home  >  Q&A  >  body text

python - 如何使用websocket在网页上动态示实时数据的折线图?

需要在树莓派上搭建一个webserver(使用flask),将树莓派采集到的传感器实时数据(用python采集)以折线图(或柱状图)的方式动态显示在网页上。

大家讲道理大家讲道理2741 days ago966

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:34:41

    Now that you already know how to use websocket and flask, you can use flask-SocketIOthis 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.

    reply
    0
  • 怪我咯

    怪我咯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.

    reply
    0
  • Cancelreply