Skip to content

Add opt-in ST7789 CYD statistics, local settings and direct SMTP reports - #56

Draft
cheffe0815 wants to merge 2 commits into
SneezeGUI:mainfrom
cheffe0815:cyd-st7789-advanced-statistics-mail
Draft

cheffe0815 wants to merge 2 commits into
SneezeGUI:mainfrom
cheffe0815:cyd-st7789-advanced-statistics-mail

Conversation

@cheffe0815

Copy link
Copy Markdown

Dual-USB ST7789 boards can now show their own session/lifetime mining counters on two touch-controlled display pages and a local browser dashboard. A separate build profile adds local settings, direct daily SMTP reports and warnings without requiring a permanently running computer.

The profile includes an isolated XPT2046 touch driver, coherent counter snapshots, accepted-share percentage, explicit password visibility for new inputs, secret-free settings export/import, and guarded local POST actions. SMTP uses verified implicit TLS/465, bounded retries and persisted delivery state; Gmail's cross-signed chain uses full CA path validation. It starts disabled and offers a no-email connection probe plus an explicit Testmail action.

The classic ESP32 SHA kernel uses conservative timing, startup known-answer tests, software verification of every candidate and bounded shared-SHA-memory locks. Mining briefly releases SHA resources for SMTP and safely resumes. Licenses and kernel provenance are included.

Build with platformio run --project-conf platformio.mail-check.ini --environment cyd-mail-check. The standard upstream build configuration is unchanged; the new profile uses its own 4MB partition table. See docs/CYD_ADVANCED.md for pin assignments, setup, test commands and hardware limits.

Validation: ESP32 build/image validation and app readback passed; native SMTP/scheduling/settings/SHA-lock tests, production statistics/cache tests and mocked browser checks passed. One classic ESP32 rev3.1 ST7789 board ran about 7h13m at 873kH/s average with 99.14% accepted replies. Device TLS/SMTP greeting passed after the CA-path correction, and the owner confirmed receiving a real Gmail test message.

Known issue: after a controlled restart, lifetime totals fell below the previous live observation by about 379 seconds and 46 accepted shares. Its cause remains unresolved. Please review this as an experimental profile; it does not claim to fix that persistence issue. Additional boards, Windows compilation, full factory installation and multi-day automatic delivery remain unvalidated. Other upstream board environments have not been regression-tested on hardware.

No private configuration, flash backups, credentials or raw device logs are included. This contribution was developed with AI assistance and validated as described above.

Include conservative classic ESP32 SHA guard, explicit mail probes, tests,
trust anchors and hardware/build documentation. Document unresolved
lifetime-counter persistence issue and unvalidated board configurations.
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