Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luizbizzio/solis-inverter-exporter
Prometheus exporter written in Python to collect metrics from Solis inverters.
https://github.com/luizbizzio/solis-inverter-exporter
exporter grafana homeautomation iot monitoring open-source prometheus prometheus-exporter python solis solis-pv-inverters soliscloud
Last synced: 3 months ago
JSON representation
Prometheus exporter written in Python to collect metrics from Solis inverters.
- Host: GitHub
- URL: https://github.com/luizbizzio/solis-inverter-exporter
- Owner: luizbizzio
- License: mit
- Created: 2024-08-09T22:49:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-10T04:42:19.000Z (5 months ago)
- Last Synced: 2024-09-28T15:23:15.649Z (3 months ago)
- Topics: exporter, grafana, homeautomation, iot, monitoring, open-source, prometheus, prometheus-exporter, python, solis, solis-pv-inverters, soliscloud
- Language: Python
- Homepage:
- Size: 141 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Solis Inverter Exporter ☀️📈
## Overview 📊
This script collects and exports key metrics from Solis inverters to Prometheus. It tracks important data points such as Current Generation, Daily Generation, and Total Generation. This allows you to monitor the performance of your inverter with ease.
## Features 🌟
- **Metrics Collection:** Retrieves power output, energy produced today, and total energy produced from Solis inverters.
- **Prometheus Integration:** Provides metrics in a format compatible with Prometheus scraping.
- **Simple Configuration:** Easy to set up with minimal configuration required.
- **Reliable Data Fetching:** Automatically retries in case of network or data fetching errors.## Configuration ⚙️
1. **Device Configuration:**
Update the following variables with your Solis inverter details:
```python
# Device Configuration
IP = "INVERTER_IP"
USERNAME = "INVERTER_USERNAME"
PASSWORD = "INVERTER_PASSWORD"
```- `IP`: IP address of your Solis inverter.
- `USERNAME`: Username for your Solis inverter.
- `PASSWORD`: Password for your Solis inverter.2. **Exporter Port (Optional):**
Set the port for the Prometheus exporter:
```python
PORT = 8686
```## Usage 🚀
1. **Install Dependencies:**
Install the required Python packages:
```sh
pip install prometheus_client requests beautifulsoup4
```2. **Run the Script:**
Launch the script to start the Prometheus exporter:
```sh
python solis_exporter.py
```3. **Access Metrics:**
After running the script, you can access the metrics at:
```init
http://localhost:8686/metrics
```## Notes 📝
- **Prometheus Data Fetching:** The script continuously fetches data from the inverter and exposes it in Prometheus format. Ensure that your inverter is accessible from the script's host.
- **Configuration:** Verify that the IP address, username, and password for your inverter are correctly set. These settings are crucial for data retrieval.## License
This project is licensed under the MIT License.