Skip to content

v1.4.2

Latest

Choose a tag to compare

@desiFish desiFish released this 17 Jun 06:20
· 2 commits to main since this release

Release Notes

Overview

This release improves pump operation safety and user experience by refining error handling behavior, preventing accidental button interactions after auto-start completion, and adding connectivity monitoring to the web interface. Additional UI enhancements include version information display, footer attribution, and browser favicon support.

Fixed

Pump Completion Error Handling

  • Updated handlePumpCompletion() behavior:
    • Automatic exit after 60 seconds now applies only to ALERT_TANK_FULL.
    • All other alert conditions remain active until acknowledged by the user.
    • Continuous red LED indication is shown for non-tank-full errors.
    • Timeout countdown is displayed only for ALERT_TANK_FULL.

Auto-Start Button Interaction Issue

  • Eliminated the unwanted "STOP PUMP?" dialog that could appear automatically after an auto-start cycle completed.
  • Added button release cleanup before returning from automatic pump operation.
  • Added a 100 ms debounce delay before exiting auto-start mode.

Improved

Code Readability

  • Replaced magic number comparisons:
    • Changed code == 2 to code == ALERT_TANK_FULL.
    • Applied in:
      • LED color selection logic
      • Buzzer pattern logic

Button Handling

  • Improved button debouncing in loop().
  • Added cooldown validation before processing button presses.
  • Prevents accidental button actions immediately after auto-start completion.

Added

Auto-Start Cooldown Protection

  • Added autoStartCompleteTime global variable.
  • Added AUTO_START_COOLDOWN constant (2 seconds).
  • Button inputs are ignored during the cooldown period after auto-start completion.

Footer Information Section

Version Display

  • Added dynamic version information display:
    • Firmware Version retrieved from /api/version
    • Software Version displayed as 1.0.0
  • Displays Loading... until version information is retrieved.

Attribution

  • Added project credits for desiFish (GitHub profile link).
  • Added the tagline:
    • Made with ❤️ in India

Spiritual Message

  • Added:
    • Om Namo Narayana

Styling Improvements

  • Semi-transparent top border for visual separation.
  • Responsive text sizing.
  • Link hover effects (opacity and underline).
  • Monospace styling for version numbers.

Version Management Functions

  • Added loadFirmwareVersion()
    • Fetches firmware version from /api/version.
  • Added updateFooterVersions()
    • Updates displayed firmware and software versions.

Connectivity Monitoring

Frontend (settings.html)

  • Added Connectivity row to the Live Status table.
  • Added automatic connectivity monitoring with a 4-second polling interval.
  • Added 3-second request timeout handling.
  • Status indicator colors:
    • Green: Okay
    • Red: Error
  • Added favicon support.

Backend (Advanced-Water-Pump-Controller.ino)

  • Added /api/ping endpoint:
{
  "status": "ok"
}
  • Configured a 64-byte DynamicJsonDocument for the ping response.
  • Added /favicon.svg endpoint to serve the favicon from LittleFS.

New File

favicon.svg

  • Added SVG favicon for browser tabs.
  • Purple gear icon design.

Summary

Added

  • Auto-start cooldown protection
  • Connectivity monitoring
  • Firmware version display
  • Software version display
  • Footer attribution section
  • Spiritual footer message
  • /api/ping endpoint
  • /favicon.svg endpoint
  • Browser favicon support

Improved

  • Pump completion error handling
  • Button debounce behavior
  • Code readability by replacing magic numbers with constants

Fixed

  • Unintended "STOP PUMP?" dialog after auto-start completion
  • Accidental button-triggered actions immediately following automatic pump operations