{"id":43114071,"url":"https://github.com/iqe/wossa","last_synced_at":"2026-01-31T18:36:00.113Z","repository":{"id":64306717,"uuid":"325295952","full_name":"iqe/wossa","owner":"iqe","description":"Turns a regular water meter into a smart meter (sort of)","archived":false,"fork":false,"pushed_at":"2020-12-29T13:39:14.000Z","size":346,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T02:13:06.101Z","etag":null,"topics":["iot","measure","mqtt","water"],"latest_commit_sha":null,"homepage":"","language":"Go","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/iqe.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}},"created_at":"2020-12-29T13:37:12.000Z","updated_at":"2021-01-28T22:19:34.000Z","dependencies_parsed_at":"2023-01-15T10:45:31.978Z","dependency_job_id":null,"html_url":"https://github.com/iqe/wossa","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/iqe/wossa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqe%2Fwossa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqe%2Fwossa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqe%2Fwossa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqe%2Fwossa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iqe","download_url":"https://codeload.github.com/iqe/wossa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqe%2Fwossa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28949520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["iot","measure","mqtt","water"],"created_at":"2026-01-31T18:35:59.972Z","updated_at":"2026-01-31T18:36:00.104Z","avatar_url":"https://github.com/iqe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wossa\n\nMeasure your water usage even if you don't have a smart meter.\n\nIt works by counting impulses from a regular water meter with the help of a webcam and this app.\n\n## Hardware setup\n\nYou need a water meter with a rotating needle, as seen in the following image.\nWe are interested in the red needle with the _x0.0001_ scale (1 liter per rotation).\nOne of the other scales could also be used if you don't need the most exact measurements.\n\n![Water meter](meter-01.jpg)\n\nPut your camera in a case above the water meter so it can clearly see the rotating needle. Make sure there is consistent lighting in the case.\n\n![Camera casing](meter-02.jpg)\n![Camera with LEDs](meter-03.jpg)\n\n## Software setup\n\nCopy `wossa-\u003cversion\u003e.tar.gz` to your Raspberry Pi. Use `tar xzf wossa-\u003cversion\u003e.tar.gz` to unpack it and run `./wossa`.\n\nThis will try to use the camera at `/dev/video0`. The web interface is available at _http://[IP of your Raspberry Pi]:8080_.\n\nSee `./wossa -h` on how to use a different video device or HTTP port.\n\nTo install _wossa_ as a systemd service, run `sudo install.sh`.\n\n## Usage\n\nOpen the settings page and define a capturing rectangle. It should be in a spot that provides the most contrast when the needle moves over it.\n\nUse the calibration messages to define the high/low thresholds that are used to detect one impulse. To save CPU resources, disable the calibration messages after you are done.\n\nYou may be able to improve detection by adjusting the _brightness_ and _contrast_ settings.\n\n![Settings example](settings.jpg)\n\nTo set the initial meter value, enable _Override current meter value_ and enter the current value.\n\n_wossa_ logs every impulse via MQTT. Broker and topic can be configured in the _Connectivity_ section.\n\nNote: It is currently not possible to use _wossa_ without MQTT.\n\n## API\n\nThe following REST endpoints are available:\n\n* `/api/v1/meter.json` - GET the latest meter value, POST to set the meter value.\n* `/api/v1/config.json` - GET the current config, POST to update the config. Posting a partial config to update only some values is supported.\n* `/api/v1/preview.jpg` - GET the latest preview image\n\n## Development\n\n```\n# Build and run\nmake\n./wossa\n\n# Build release for Raspberry Pi, Beagle Bone\nmake release GOOS=linux GOARCH=arm GOARM=7\n\n# Build and install on Raspberry Pi, Beagle Bone\nmake install GOOS=linux GOARCH=arm GOARM=7 TARGET_HOST=debian@beaglebone\n```\n\n## Roadmap\n\n* Post to HTTP endpoint in addition to MQTT.\n* Provide websocket in addition to MQTT.\n* Send alarm message if meter doesn't stand still for X hours (useful for leak detection).\n* Use generic units instead of liters. _wossa_ can be used for counting any kind of impulse.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqe%2Fwossa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiqe%2Fwossa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqe%2Fwossa/lists"}