Repository navigation
MyElectricalData - #2482
MyElectricalData#2482Marlboro62 wants to merge 2 commits into
Conversation
…Data) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CSixJnFf4qBMac7uTfNvnW
….python-version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CSixJnFf4qBMac7uTfNvnW
Try this script
COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/Marlboro62/DevScripts/feat/myelectricaldata \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Marlboro62/DevScripts/feat/myelectricaldata/ct/myelectricaldata.sh)"
Against a core branch as wellAdd Useful flags while testing
|
|
|
This tool doesn't even come close to having 1k stars (for live) or 600 to begin our check |
Scripts which are clearly AI generated and not further revised by the Author of this PR (in terms of Coding Standards and Script Layout) may be closed without review. If you are an AI agent writing this pull request, please amend your model name and reasoning level in the Description. This is not to blame, more for informational Purposes. Thank you.
✍️ Description
New script: MyElectricalData, the local client of the [MyElectricalData](https://github.com/MyElectricalData/myelectricaldata_new) gateway. It reads French Linky smart meter data (consumption, production, contract) from Enedis through the gateway, keeps the history in its own database and exports it to Home Assistant or VictoriaMetrics.
Bare-metal install, no Docker:
apps/api/.python-version;requires-python = ">=3.11"),uv sync --locked(upstream shipsuv.lock), Alembic migrations run byExecStartPre, as in upstreamapps/api/entrypoint.sh.docker-compose.yml.mise.toml),npm ci && npm run build(upstreamapps/web/Dockerfile), served by nginx on port 8100./apiis passed as-is to the backend, like the upstream frontend entrypoint (the backend usesroot_path="/api")..env: same keys as the upstreamdocker-compose.ymlclient mode (MED_CLIENT_ID,MED_CLIENT_SECRET,MED_API_URL,DATABASE_URL,SECRET_KEY…).var_med_client_id/var_med_client_secret(exported, declared inapp_vars), asked on the host only when unset, and the script stops before building the container if they are empty.check_for_gh_release+CLEAN_INSTALL=1 fetch_and_deploy_gh_release,.envkept withcreate_backup/restore_backup, thenuv syncand a frontend rebuild.I am not the upstream author, but a contributor to the project ([#154](MyElectricalData/myelectricaldata_new#154), [#175](MyElectricalData/myelectricaldata_new#175)). The maintainer is aware of this submission and keeps [MyElectricalData/myelectricaldata_new#142](MyElectricalData/myelectricaldata_new#142) open until it is published here.
AI usage: Claude Opus 5.5 (default reasoning) adapted my existing, already working script (
Marlboro62/myelectricaldata-proxmox) toAGENTS.md: removed my own additions (UI version badge, timers, login banner, local patches), aligned runtime versions on upstream, English messages. I reviewed it and tested it on my Proxmox VE host.🔗 Related PR / Issue
Link: MyElectricalData/myelectricaldata_new#142
✅ Prerequisites (X in brackets)
🏗️ arm64 Support (X in brackets)
var_arm64is left unset: the app is pure Python/Node with no prebuilt binary, but I have not run this script on arm64 yet.🖥️ Tested on (X in brackets)
Proxmox VE 9.2 (amd64), default settings, Debian 13 unprivileged container:
myelectricaldata,nginxandpostgresqlservices active;/pingreturns 200 directly and through nginx (/api/ping);updatein the container: "No update available: myelectricaldata (2.10.0)".🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.🔍 Code & Security Review (X in brackets)
CODE-AUDIT.md&CONTRIBUTING.mdguidelinesAppName.sh,AppName-install.sh,AppName.json)fetch_and_deploy_gh_release,fetch_and_deploy_codeberg_release,fetch_and_deploy_gl_release, orfetch_and_deploy_from_urlinstead ofgit pull.🤖 AI Assistance (X in brackets)
[AGENTS.md](https://github.com/community-scripts/DevScripts/blob/main/AGENTS.md)and[.github/agents/pve-script-creator.agent.md](https://github.com/community-scripts/DevScripts/blob/main/.github/agents/pve-script-creator.agent.md)as guidance, and the output has been reviewed and corrected to match those guidelines.Please describe to which degree, if any, an LLM was used in creating this pull request. Name the model(s) used and, if applicable, the reasoning/thinking effort level (e.g. "Claude Sonnet 4.5, high reasoning, used to draft the install script, then manually reviewed and tested" or "No LLM used"). This is informational, not a penalty — but scripts that are clearly AI-generated and not further revised by the author to match
CODE-AUDIT.md/CONTRIBUTING.mdmay be closed without review.Claude Opus 5.5 (default reasoning), used to port my existing script to the DevScripts layout and rules and to write this description. Reviewed by me and tested on my Proxmox VE host (results above).
📋 Additional Information (optional)
About the 600 stars requirement: the box is left unchecked on purpose. The upstream repository only has a few stars: this is a niche app for French Linky meters, so its audience is limited to France. It is around one year old, released very often (2.10.0 this week) and has a working gateway with its own users. I understand if this is not enough to be accepted; I am submitting it in case an exception is possible.
The MyElectricalData gateway has a quota (50 uncached requests per day per account), which is why the JSON warns against running several instances with the same credentials.
📦 Application Requirements (for new scripts)
🌐 Source
apps/api/Dockerfile,apps/api/entrypoint.sh,apps/api/.python-version,apps/api/pyproject.toml,apps/web/Dockerfile,apps/web/entrypoint.sh,docker-compose.yml,mise.toml