Skip to content
ddppddppPublic

About

A playwright automation for water meter reading submission

Resources

Stars

14 stars

Watchers

0 watching

Forks

Repository files navigation

Vodomer

A playwright automation for water meter reading submission

Why Vodomer?

Vodomer allows you to do a headless submission of your water meter readings to the website of the sole Water Utility company in Sofia, Bulgaria - Sofiyska Voda, without the need to manually fill-in a web form a click on Submit button like we used to do back in the 20th century.

Requirements

  • The actual meter data. Getting it is beyond the script scope, but you can check out my approach and the architecture.
  • a registered profile on Sofiyska Voda's web portal
  • A Linux host (technically, should work on any OS)
  • Node.js >= 16
  • Playwright
  • Browser: bundled Chromium (x86_64/arm64)

Installation

git clone https://github.com/ddppddpp/vodomer.git && cd vodomer
npm install
npx playwright install chromium --with-deps   # skip on armv7l
cp .env-example .env                          # then edit with real credentials
bash install.sh

This sets up a directory in /opt/vodomer where the execution scripts live.

Environment vars and how to get them

  • ACCOUNT_ID = 123456 (URL path segment, see profile
  • USERNAME = email (login credential, see profile)
  • PASSWORD = secret (login credential, see profile)
  • METER1_ID = 654321 (form field name), see background
  • METER1_SERIAL = 11111111 (check display or see profile)
  • METER2_ID = 987654 (form field name), see background
  • METER2_SERIAL = 22222222 (check display or see profile)

Usage

Submit a report by using the wrapper-script

/opt/vodomer/ha-submit.sh <reading1> <reading2>

Then see the result in the log file

 $ tail -f /var/log/vodomer.log
 
[Mon 06 Jul 2026 01:48:57 PM EEST] Starting: meter1=123 meter2=456
Navigating to login page...
CSRF token: found
Submitting login...
After login URL: https://www.sofiyskavoda.bg/cp/dashboard
Navigating to meter readings page...
Meter page URL: https://www.sofiyskavoda.bg/cp/customer-accounts/111111/user-readings/create
Filling meter readings...
Filled meter 1234546 with 123
Filled meter 7890123 with 456
Verified values: { v1: '123', v2: '456' }
Fill result: { filled1: true, filled2: true }
Submitting readings...
After submit URL: https://www.sofiyskavoda.bg/cp/customer-accounts/111111/user-readings/create
RESULT: Submission confirmed.

Optionally, automate reading submission. You can find an example with Home Assitant in AUTOMATION.md.

Contributions

This automation has been verified to work only for my personal account. Reach out if you'd like to test and need help setting it up. Any ideas are more than welcome.

Credits

JavaScript code vibed with OpenCode.

About

A playwright automation for water meter reading submission

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages