This application receives stores SolarEdge statistics of a single site on a local timescaledb.
Variable | Description | Default |
---|---|---|
SEM_SOLAR_EDGE_API_KEY | SolarEdge Api Key | - |
SEM_SOLAR_EDGE_SITE_ID | SolarEdge site id to grab data for | - |
SEM_SOLAR_EDGE_START_DATE | Inception time of the SolarEdge site | - |
SEM_HOST | The server host | localhost |
PORT | The server port | - |
DATABASE_URL | DB connection string | - |
SEM_WRITE_TIMEOUT | The server write timeout | 10s |
SEM_READ_TIMEOUT | The server read timeout | 10s |
SEM_IDLE_TIMEOUT | The server idle timeout | 60s |
SEM_SERVER_SHUTDOWN_TIMEOUT | The timeout for gracefully shutting down the server | 5s |
$ go test ./...
$ go test -tags=integration ./...