{"id":41223467,"url":"https://github.com/solectrus/power-splitter","last_synced_at":"2026-04-20T13:05:33.824Z","repository":{"id":254243312,"uuid":"784572792","full_name":"solectrus/power-splitter","owner":"solectrus","description":"Splits grid-imported power among heat pump, wallbox \u0026 household for precise usage and cost allocation","archived":false,"fork":false,"pushed_at":"2026-01-17T04:29:10.000Z","size":1019,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-01-17T17:18:16.352Z","etag":null,"topics":["energy-consumption","photovoltaic","photovoltaics"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solectrus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-10T05:45:41.000Z","updated_at":"2026-01-17T04:29:13.000Z","dependencies_parsed_at":"2024-08-28T10:43:11.289Z","dependency_job_id":"0469895c-55c1-49d6-b0cd-815293c9e846","html_url":"https://github.com/solectrus/power-splitter","commit_stats":null,"previous_names":["solectrus/power-splitter"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/solectrus/power-splitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fpower-splitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fpower-splitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fpower-splitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fpower-splitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solectrus","download_url":"https://codeload.github.com/solectrus/power-splitter/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fpower-splitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28676011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["energy-consumption","photovoltaic","photovoltaics"],"created_at":"2026-01-23T00:26:02.313Z","updated_at":"2026-01-23T00:26:03.006Z","avatar_url":"https://github.com/solectrus.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Continuous integration](https://github.com/solectrus/power-splitter/actions/workflows/push.yml/badge.svg)](https://github.com/solectrus/power-splitter/actions/workflows/push.yml)\n[![Maintainability](https://qlty.sh/badges/7146b60b-ca86-4b1d-9e59-c18856a36fbf/maintainability.svg)](https://qlty.sh/gh/solectrus/projects/power-splitter)\n[![wakatime](https://wakatime.com/badge/user/697af4f5-617a-446d-ba58-407e7f3e0243/project/018eb19e-5a00-49ae-966c-943dba618dc8.svg)](https://wakatime.com/badge/user/697af4f5-617a-446d-ba58-407e7f3e0243/project/018eb19e-5a00-49ae-966c-943dba618dc8)\n[![Code Coverage](https://qlty.sh/badges/7146b60b-ca86-4b1d-9e59-c18856a36fbf/coverage.svg)](https://qlty.sh/gh/solectrus/projects/power-splitter)\n\n# Power Splitter\n\nThis tool retrieves power consumption data from an InfluxDB database. It then divides up the total power imported from the grid among various users, such as a heat pump, a wallbox, and the household.\n\nThis enables SOLECTRUS to accurately calculate the electricity usage and costs for each distinct consumer. This is especially useful in settings where multiple devices or systems are drawing power.\n\n## Requirements\n\n- InfluxDB 2 database with a bucket filled with values for:\n  - Grid import power\n  - House power\n  - Heatpump/Wallbox/Custom power\n- Linux machine with Docker installed\n\n## Getting started\n\n1. Make sure that your InfluxDB2 database is ready (not subject of this README)\n\n2. Prepare an `.env` file (see `.env.example`)\n\n3. Run the Docker container on your Linux box:\n\n   ```bash\n   docker compose up\n   ```\n\nThe Docker image supports multiple platforms: `linux/amd64`, `linux/arm64`\n\nTo force a data rebuild, you can send USR1 signal to the container:\n\n```bash\ndocker compose kill --signal USR1 power-splitter\n```\n\n## Development\n\nFor development you need a recent Ruby setup. On a Mac, I recommend [rbenv](https://github.com/rbenv/rbenv).\n\n### Run the app\n\n```bash\nbundle exec app.rb\n```\n\n### Run tests\n\n```bash\nbundle exec rspec\n```\n\n### Run linter\n\n```bash\nbundle exec rubocop\n```\n\n## License\n\nCopyright (c) 2024-2026 Georg Ledermann \u003cgeorg@ledermann.dev\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolectrus%2Fpower-splitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolectrus%2Fpower-splitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolectrus%2Fpower-splitter/lists"}