百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

esb-smart-meter-reading-automation

> 编程语言
开源

从爱尔兰电力公司注册帐户自动收集智能电表读数数据(无论您目前的供电提供商是谁)

99 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

从爱尔兰电力公司注册帐户自动收集智能电表读数数据(无论您目前的供电提供商是谁)

esb-smart-meter-reading-automation

How to read your Smart Meter data automatically?

Simple Python code to download your smart electricy meter readings/data from ESB Networks user portal.

Requirements

  • You need to create account with ESBN here https://myaccount.esbnetworks.ie

  • In your account, link your electricity meter MPRN

Script Setup

  • update MPRN, user and password in the script:
meter_mprn = "mprn_number"
esb_user_name = "[email protected]"
esb_password = "password"

Output Format

  • Either CSV of JSON. Select required format by uncommenting one of last 2 rows where it says:
###/ Select file format of your choice /###
#print(csv_file)
print(json_file)

Debug Mode for troubleshooting

  • Set debug_mode to True if you want to see extended info of what sript is doing and sending/receiving.
## Debug Mode print messages, set to True or False ##
debug_mode=False

Error Messages

  • When things goes wrong and User Portal starts serving human verification pages, script will stop with one or another error message based on received response content analysis:
 [Script Message] Unable to reach login page -- too many retries (max=2 in 24h) or prior sessions was not closed properly. Please try again after midnight.
 [FAILED] Unable to get full set of required cookies -- too many retries (captcha?) or prior sessions was not closed properly. Please wait 6 hours for server to timeout and try again.

Known Limitations

  • ESBN User Portal have enabled human verification process for logins since around Nov'24, this creates inconvenience/chalenges regardless of what you use -- standard web browser or script like this.
  • Server side limit: it does allow you to make only 2 clean logins per one IP per 24 hours without triggering human verification or captcha traps.
  • Trying to make 3 or more logins during the day - server will start serving human verification pages or captcha or complain about disabled javascript or disabled cookies on your side. This script will detect this and will provide comments in console/terminal and will terminate/stop.
  • Server side timers/blockers/limits resets once a day at midnight - plan your workflow accordingly.

UPDATES:

  • 28-Aug-2025 -- It seems there is some "User Agent" version validation on the server side, script fails when trying to connect with old/outdated "User Agent". Script code updated to use the latest agent. If you run into issues/errors - try to update the "User Agent" string and see if this resolves the error.
  • 04-Jan-2025 -- Reworked login and file download proccess due to Nov'24 portal changes.
  • 24-Jul-2024 -- Python script changes to accomodate ESB Networks user portal changes to download historic usage file.
  • 09-May-2024 -- there was some changes on ESB side and this broke CSV parsing in script, fixed & tested, JSON output works as expected.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言