python应用程序,用于简单地捕获pi上的传感器数据
shongololo的Python项目详细描述
shongololo
CO2和IMT传感器接地捕捉
这是vtagmonitoring应用程序shongolos部分的自述文件
python shongololo.py--settings=运行设置
安装:
安装用于web前端
$ git clone --recurse-submodules git@gitlab.com:r4space/VTAgMonitoring.git $ cd VTAgMonitoring/apps/sensor-logger $ virtualenv --python=python3 .venv $ source .venv/bin/activate $ pip install -r requirements.txt $ python server.py
在浏览器中访问localhost:5000 完成后,按ctrl-c可取消server.py
安装以展开
。代码块::bash sudo智能安装python3 dev python3 pip virtualenv virtualenv--python=python3.venv source.venv/bin/激活 pip安装-r requirements.txt PIP安装设置工具车轮捆绳
操作
作为独立应用程序:
- 遵循安装步骤
- cd vtagmonitoring/apps/
- Python3-m shongololo.shongololo
- 数据将输出到屏幕并写入文件
与python flask web界面结合在一起 ass
- 遵循安装步骤
- 在网页上: a)按“设置记录器”并等待日志指示它已完成传感器测试(可能需要几秒钟) b)准备好记录数据以便存储时,按“开始数据捕获”(当它连接到所有传感器时,还需要几秒钟才能开始) c)准备停止捕获时,按“停止数据捕获” d)如果希望再次采样数据,请重复 d)准备关闭系统时,按“关闭应用程序”
开发人员维护
$ python3 -m pip install --user --upgrade setuptools wheel twine $ python3 setup.py sdist bdist_wheel $ twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
文件
生成文档:
$ cd docs/
$ make html