This addon provides an API for accessing GEOdnet Console data.
- Navigate to your Home Assistant's Supervisor panel.
- In the sidebar click on "Add-on Store".
- Click the menu icon (⋮) in the top right corner and select "Repositories".
- Add this repository URL:
https://github.com/erikarenhill/geodnet-headless-console-api
- Click "Add".
- The "GEOdnet Headless Console API" addon should now be visible in the addon store.
- Click on it and then click "Install".
The addon can be configured with the following options:
refresh_interval
: The interval (in minutes) at which the browser is refreshed. Default is 60 minutes.inactivity_timeout
: The timeout (in minutes) after which an inactive browser is shut down. Default is 5 minutes.
Once the addon is running, you can access the API at http://your-home-assistant:3000
.
Available endpoints:
/api/listen?key=<miner_key>
: Start listening for a specific miner./api/shutdown?key=<miner_key>
: Stop listening for a specific miner./api/stats?key=<miner_key>&autostart=true
: Get stats for a specific miner. Setautostart=true
to automatically start listening if not already.
Replace <miner_key>
with the last 5 characters of your miner's serial number.
For local development:
- Clone this repository.
- Install dependencies with
npm install
. - Run the server with
npm start
.
Contributions are welcome! Please feel free to submit a Pull Request.