Skip to content

Add initial home page to control/view relay statuses and view sensor …#183

Merged
k3ldar merged 2 commits intomainfrom
htmlInterface
Apr 26, 2026
Merged

Add initial home page to control/view relay statuses and view sensor …#183
k3ldar merged 2 commits intomainfrom
htmlInterface

Conversation

@k3ldar
Copy link
Copy Markdown
Owner

@k3ldar k3ldar commented Apr 25, 2026

…data

Copilot AI review requested due to automatic review settings April 25, 2026 16:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an initial /index HTML home page for the SmartFuseBox device to view relay/sensor status and toggle relays via existing /api/* endpoints.

Changes:

  • Introduces WebIndexNetworkHandler to stream an HTML control/status page and wires it into the app/project.
  • Extends INetworkCommandHandler + WifiServer to optionally allow handlers to stream full HTML responses.
  • Cleans up/debug logging and adjusts relay command/network handler error handling.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
SmartFuseBox/WifiServer.cpp Adds generateHtml() dispatch support and minor logging tweaks.
SmartFuseBox/INetworkCommandHandler.h Adds optional generateHtml(IWifiClient&) API for HTML streaming handlers.
SmartFuseBox/WebIndexNetworkHandler.h New HTML page handler for relay toggles + sensor tiles using /api/index + /api/relay/*.
SmartFuseBox/SmartFuseBoxApp.h Adds _webIndexNetworkHandler member and include.
SmartFuseBox/SmartFuseBoxApp.cpp Instantiates/registers WebIndexNetworkHandler in the network handler list.
SmartFuseBox/RelayNetworkHandler.cpp Simplifies error handling for relay set-state; introduces an unused variable.
SmartFuseBox/RelayCommandHandler.cpp Improves serial relay command error handling for additional failure cases.
SmartFuseBox/WarningCommandHandler.cpp Removes a debug message.
SmartFuseBox/PageSystem.cpp Removes debug noise during refresh.
SmartFuseBox/Dht11SensorHandler.h Removes per-update debug log.
SmartFuseBox/Local.h Updates feature size comments.
SmartFuseBox/SmartFuseBox.vcxproj Adds new header + updates include paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread SmartFuseBox/WebIndexNetworkHandler.h
Comment thread SmartFuseBox/WebIndexNetworkHandler.h
Comment thread SmartFuseBox/WebIndexNetworkHandler.h
Comment thread SmartFuseBox/RelayNetworkHandler.cpp Outdated
Comment thread SmartFuseBox/WebIndexNetworkHandler.h Outdated
@k3ldar k3ldar merged commit d011a38 into main Apr 26, 2026
1 check passed
@k3ldar k3ldar deleted the htmlInterface branch April 26, 2026 06:50
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.

2 participants