【发布时间】:2016-08-07 09:22:27
【问题描述】:
我使用名为“webiopi”的工具通过 Raspberry pi 和继电器板控制健康设备。此工具使用 Python 脚本连接网页上的按钮。 我可以从我创建的按钮上的 GPIO 引脚读取状态(低/高)。
我想要的是在浏览器中显示脚本中的值。 (如“temperature_measured”或“Calculated_time”)
有没有办法可以将 python 脚本的输出显示到网络浏览器?
button = webiopi().createMacroButton("macro", "Normaal", "Prog1");
$("#top").append(button)
<div id="content" align="center">
<td>
</td>
{{print here output from script.py}}
<div id="top"></div>
</div>
</div>
【问题讨论】:
标签: javascript python html raspberry-pi webiopi