WebSocket API document and Sample Flow for control of PgTgBridge from Node-Red Published — Build Your Own Dashboard
PgTgBridge exposes a WebSocket listener for command/control and data for use by the PgTgController system tray application. Developers can develop their own User Interface using the same public WebSocket interface used by PgTgBridge internally.
WebSocket Endpoints
The WebSocket running in PgTgBridge exposes three endpoints for use by PgTgController.
/command— Bidirectional Command/Response for the PgTgBridge bridge process. Start - Stop - Restart - Status/data— Push-Only Telemetry - Exposes data used by the Meters window. Power - SWR - Temperature/device— Bidirectional Device Status & Command used by Device Control window
WebSocket API document
WebSocket documentation download (or Save-As md): WebSocket-API-Reference.md
Sample Node-Red Flow
A sample Node-Red flow is available that provides basic examples of controlling the service and displaying meter data in a Node-Red Dashboard. Download (or Save-As json): NodeRed-PgTg-Bridge.json
Flow documentation download (or Save-As md): NodeRed-PgTg-WebSocket-Guide.md