https://github.com/bradjc/apsystems-influxdb
Publish APsystems solar panel data to InfluxDB.
https://github.com/bradjc/apsystems-influxdb
Last synced: 11 months ago
JSON representation
Publish APsystems solar panel data to InfluxDB.
- Host: GitHub
- URL: https://github.com/bradjc/apsystems-influxdb
- Owner: bradjc
- Created: 2022-03-12T19:00:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T01:01:00.000Z (over 3 years ago)
- Last Synced: 2025-01-04T20:14:16.947Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
APsystems to InfluxDB
=====================
This script pulls data from the APsystems cloud and pushes it to an InfluxDB 1.0
database.
Inspired by https://github.com/bgbraga/homeassistant-apsystems.
## APsystems Connection
This pulls from
`https://apsystemsema.com/ema/ajax/getReportApiAjax/getPowerOnCurrentDayAjax`.
It collects 5 minute interval power and energy data for the current day.
## Configuration
This requires two configurations: one for the APsystems system and one for the
InfluxDB database.
### APsystems Configuration
`/etc/swarm-gateway/apsystems.conf`:
```
username=
password=
system_id=
ecu_id=
location_general=
```
Use your apsystemsema.com user to configure the configuration.yaml.
1. Your System ID is found at apsystemsema.com. View the page source code and in
the Settings Menu there is a code that looks like:
```html
Settings
```
Get the system id inside the `managementClickCustomer()`.
2. The ECU ID is at
`https://apsystemsema.com/ema/security/optmainmenu/intoLargeReport.action`.
### InfluxDB Configuration
`/etc/swarm-gateway/influx.conf`
```
url=
port=
username=
password=
database=
```