Skip to content

Add standalone ESP32 load-cell firmware and four-input CSV plots - #62

Merged
mcroomp merged 1 commit into
mainfrom
feat/loadcell-two-four-inputs
Nov 26, 2026
Merged

mcroomp merged 1 commit into
mainfrom
feat/loadcell-two-four-inputs

Conversation

@mcroomp

@mcroomp mcroomp commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a standalone, buildable PlatformIO ESP32/HX711 sensor project with two-input (A/B, gain 128) and four-input (A1/B1 at gain 64, A2/B2 at gain 32) capture. Channel changes discard the previous conversion and settle before publishing raw counts.
  • Send one labeled raw reading per CSV row with gain and acquisition timestamps; calibration remains receiver-owned. Integrate the mapping, timing/count metadata, bounded journal window reads, and independent A1/A2/B1/B2 UI traces with one-second means.
  • Retain opt-in authenticated browser OTA and add a read-only, full-flash USB backup utility with size/hash verification and 5% progress reporting.
  • Add an idempotent Windows ESP launcher that preserves pending CSV data and selects four-input mode. Device addresses are supplied through ignored local configuration or environment variables.

Private configuration and publication checks

  • Document loadcell/include/local_config.h as the Git-ignored location for both the Wi-Fi and OTA passwords. The checked-in example contains placeholders/empty values only; OTA is disabled until a private password is explicitly configured.
  • Ignore local network launch settings in loadcell/launch_config.cmd; publish only its generic example.
  • Remove local source-checkout identifiers and hardcoded real LAN endpoints from the proposed changes.
  • Review and scan the exact 36-file staged patch for configured passwords/SSID, private addresses/device identifiers, personal paths/names, email addresses, token patterns and private keys. No findings remain in the added source. This includes an in-memory comparison against the locally configured credential values without printing them.
  • Exclude private local headers/settings, flash backups, logs, generated firmware, hardware-session history and unrelated staged/unstaged work. Use a public GitHub noreply commit identity.

Validation

  • Credential-free PlatformIO firmware build: passed.
  • Native C++ acquisition/switching/settling/timeout/raw-CSV assertions: passed.
  • Python backup/ESP-launcher checks: 24 passed; Ruff and Pyright passed.
  • UI/API/demo checks: 58 passed; full TypeScript check and production Vite build passed.
  • LinkHub Rust library, including CSV HTTP/persistence and journal checks: 105 passed.
  • git diff --cached --check and final staged publication scan: passed.

Security review

# Severity File Lines Vulnerability Confidence
1 🟡 MEDIUM loadcell/src/ota.cpp 15 When explicitly enabled, browser OTA uses HTTP Basic authentication without encryption; an on-path attacker could capture its password. 9/10

The owner explicitly chose to retain this documented, opt-in, trusted-isolated-LAN OTA behavior. Empty passwords disable OTA; this is not signed firmware or a secure public-network update service.

Include two/four-input acquisition, raw CSV metadata, authenticated opt-in OTA, verified USB backup tooling, configurable Windows launchers, and independent A1/A2/B1/B2 plots.

Keep local credentials, network addresses, backups and generated firmware out of Git; document the private configuration files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mcroomp
mcroomp merged commit 3daba67 into main Nov 26, 2026
13 checks passed
@mcroomp
mcroomp deleted the feat/loadcell-two-four-inputs branch November 26, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant