센서1·3(누수 노드)에 PMS7003 를 온습도와 동일 sensor_id 로 통합하고 metric_type='pms7003'
로 구분해 수집한다. LED 는 스위칭 없이 상시 점등 방식으로 확정.
- raspberry_pi4_pms7003/: PMS7003 노드 풀세트(드라이버·센서·install·systemd·vendor·배선·연결테스트·프레임 단위테스트)
- 서버: evaluate_metric_thresholds() 에 pm25/pm10 선택 인자 추가(온습도 전용 호출 후방호환),
sensor_data.php 수집 경로에 pms7003 metric 반영, config.php/예시에 PM 임계 추가
- SQL: migration_pms7003.sql · schema_sht30.sql 정합, tools/migration_leak_add_{pms7003,sht30} 마이그레이터
- tests/pm_threshold_test.php + run_tests.sh 러너 등록
- .gitignore: 노드별 config_local.py 커밋 차단
8 lines
461 B
Text
8 lines
461 B
Text
# Pi 4 particulate-matter (PMS7003) module Python dependencies (exact version pins for air-gapped networks)
|
|
# Offline install: pre-download into wheelhouse/ with vendor.sh, then
|
|
# pip install --no-index --find-links=wheelhouse -r requirements.txt
|
|
#
|
|
# pyserial is pure Python (arch-independent py3-none-any wheel), so even if fetched on an x86 build
|
|
# machine it runs as-is on Pi 4 (aarch64). requests is version-pinned as well.
|
|
requests==2.32.3
|
|
pyserial==3.5
|