A Python script that automatically managed cryptocurrency mining operations (with EthOS, linux based OS)based on solar panel output, electricity rates, and solar position data.
This script intelligently controls mining operations by considering multiple factors:
- Solar panel power generation
- Time-based electricity rates
- Sun position (azimuth and altitude)
- Cloud cover
- Power consumption
- Automatically starts mining during night rate periods (22:00-12:00)
- Monitors real-time solar panel generation
- Calculates optimal mining times based on:
- Solar power generation (>200W threshold)
- Power consumption (<300W threshold)
- Sun position relative to panels
- Cloud cover conditions
- Python 3.x
- Fronius solar inverter accessible at
192.168.0.200
- API Keys for:
- OpenWeatherMap
- Wolfram Alpha
python requests xml.etree.cElementTree
- Night Rate Check: Automatically mines during low-cost electricity periods
- Solar Generation Check: Starts mining if solar generation exceeds 200W
- Power Consumption Check: Stops mining if consumption exceeds 300W
- Sun Position Analysis:
- Calculates sun azimuth and altitude
- Adjusts for cloud cover
- Makes mining decisions based on optimal panel exposure