{"id":16398238,"url":"https://github.com/bradjc/apsystems-influxdb","last_synced_at":"2025-07-30T07:39:48.972Z","repository":{"id":145687127,"uuid":"469174368","full_name":"bradjc/apsystems-influxdb","owner":"bradjc","description":"Publish APsystems solar panel data to InfluxDB.","archived":false,"fork":false,"pushed_at":"2022-11-01T01:01:00.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-04T20:14:16.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/bradjc.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}},"created_at":"2022-03-12T19:00:12.000Z","updated_at":"2022-11-01T01:00:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"66bc00fa-df12-424b-bade-bd73662bf6f1","html_url":"https://github.com/bradjc/apsystems-influxdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradjc%2Fapsystems-influxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradjc%2Fapsystems-influxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradjc%2Fapsystems-influxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradjc%2Fapsystems-influxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradjc","download_url":"https://codeload.github.com/bradjc/apsystems-influxdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240295053,"owners_count":19778824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-11T05:12:11.396Z","updated_at":"2025-02-23T09:26:00.325Z","avatar_url":"https://github.com/bradjc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"APsystems to InfluxDB\n=====================\n\nThis script pulls data from the APsystems cloud and pushes it to an InfluxDB 1.0\ndatabase.\n\nInspired by https://github.com/bgbraga/homeassistant-apsystems.\n\n## APsystems Connection\n\nThis pulls from\n`https://apsystemsema.com/ema/ajax/getReportApiAjax/getPowerOnCurrentDayAjax`.\nIt collects 5 minute interval power and energy data for the current day.\n\n## Configuration\n\nThis requires two configurations: one for the APsystems system and one for the\nInfluxDB database.\n\n### APsystems Configuration\n\n`/etc/swarm-gateway/apsystems.conf`:\n\n```\nusername=\npassword=\nsystem_id=\necu_id=\nlocation_general=\n```\n\nUse your apsystemsema.com user to configure the configuration.yaml.\n\n1. Your System ID is found at apsystemsema.com. View the page source code and in\n   the Settings Menu there is a code that looks like:\n\n    ```html\n    \u003cspan\u003eSettings\u003c/span\u003e\n    \u003cul\u003e\n        \u003cli onclick=\"managementClickCustomer('YOUR SYSTEM ID')\"\u003e\u003ca\u003eSettings\u003c/a\u003e\u003c/li\u003e\n        \u003cli onclick=\"intoFaq(10)\"\u003e\u003ca\u003eHelp\u003c/a\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n    ```\n    Get the system id inside the `managementClickCustomer()`.\n\n2. The ECU ID is at\n   `https://apsystemsema.com/ema/security/optmainmenu/intoLargeReport.action`.\n\n\n### InfluxDB Configuration\n\n`/etc/swarm-gateway/influx.conf`\n\n```\nurl=\nport=\nusername=\npassword=\ndatabase=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradjc%2Fapsystems-influxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradjc%2Fapsystems-influxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradjc%2Fapsystems-influxdb/lists"}