tetherto/miningos-wrk-miner-antminer ? reverse-engineered prompt
Reverse engineered prompt
Build me a Node.js worker service for managing Bitmain Antminer miners, especially S19 XP, S19 XP Hydro, S21, and S21 Pro.
I want it to connect to miners over HTTP with login authentication, then let me register devices, update them, remove them, and query them for status. It should be able to collect and report things like hashrate, temperatures, power usage when available, pool status, fan and hashboard health, uptime, and common errors. I also need controls for rebooting a miner, changing pool settings, switching between normal and sleep mode, blinking the LED, updating the admin password, and setting network options like DHCP or static IP.
Please include the config files and a simple setup script, plus a mock mode or mock server for local development and tests. Make it work as a worker that can run by model type from the command line, and if you need to check current docs for any miner API details, look them up online.