Basic water recirculation functionality for rinnai based water heaters
| src | ||
| .gitignore | ||
| build.zig | ||
| LICENSE | ||
| README.md | ||
List Devices - Zig Port
This is a direct port of ../list-devices.js to Zig.
Features
- Authenticates with AWS Cognito
- Fetches device list via GraphQL (AppSync)
- Displays device information
- Checks recirculation status for the first device
- Includes
startRecirculationfunction (not called during testing as requested)
Building
zig build
Running
./zig-out/bin/list-devices
Testing
zig build test
Requirements
- Zig 0.15.2
.credentialsfile in parent directory with username and password (one per line)
Implementation Notes
- Uses Zig's standard library HTTP client
- JSON parsing with
std.json - Base64url decoding for JWT tokens
- Proper memory management with allocators
- Error handling with Zig's error unions