{"id":16650241,"url":"https://github.com/hfreire/raspowmeter","last_synced_at":"2026-04-10T23:33:01.992Z","repository":{"id":140741480,"uuid":"66763728","full_name":"hfreire/raspowmeter","owner":"hfreire","description":"A Raspberry Pi :computer: power meter :zap::electric_plug: solution for your home :house_with_garden:","archived":false,"fork":false,"pushed_at":"2017-01-07T14:33:28.000Z","size":1045,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T14:16:34.562Z","etag":null,"topics":["docker","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hfreire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-08-28T11:04:56.000Z","updated_at":"2020-02-11T21:01:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddae10d1-e496-4945-8222-a05e05e4c670","html_url":"https://github.com/hfreire/raspowmeter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hfreire/raspowmeter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fraspowmeter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fraspowmeter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fraspowmeter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fraspowmeter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hfreire","download_url":"https://codeload.github.com/hfreire/raspowmeter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfreire%2Fraspowmeter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005272,"owners_count":26083863,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","raspberry-pi"],"created_at":"2024-10-12T09:15:59.580Z","updated_at":"2025-10-10T20:33:26.044Z","avatar_url":"https://github.com/hfreire.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Raspberry Pi :computer: power meter :zap::electric_plug: solution for your home :house_with_garden:\n\n## Features\n* Blazing fast :dizzy: C code :neckbeard::astonished: with low memory footprint :white_check_mark:\n* Polls GPIO state through the sysfs interface :scream: that uses interrupts (edge detection) from the kernel :white_check_mark:\n* Multi-threaded (consumer \u0026 producer) :thumbsup: makes sure that we don't miss GPIO states :white_check_mark:\n* Launch :rocket: inside a Docker container :whale: so you don't need to manage the dependencies :raised_hands: :white_check_mark:\n\n### How to build (cross-compile)\n`mkdir -p build \u0026\u0026 cd build \u0026\u0026 cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/rpi/toolchain/armv6-rpi1-linux-gnueabihf.cmake .. \u0026\u0026 make`\n\n### How to start\n`RASPOWMETER_GPIO_PIN=7 RASPOWMETER_GPIO_TRIGGER_MODE=falling ./raspowmeter`\n\n### Build Docker container\n`docker build -t registry.exec.sh/raspowmeter -f ./share/docker/Dockerfile .`\n\n### Push Docker container to registry\n`docker push registry.exec.sh/raspowmeter`\n\n### Digital light pulse sensor\nA simple digital light pulse sensor that resembles an [inverter (logic gate)](https://en.wikipedia.org/wiki/Inverter_(logic_gate)). The circuitry is made from a [transistor behaving like a switch](https://en.wikipedia.org/wiki/Transistor#Transistor_as_a_switch) that is influenced by a photoresistor in a [voltage divider](https://en.wikipedia.org/wiki/Voltage_divider).\n\n![alt text](https://raw.githubusercontent.com/hfreire/raspowmeter/master/share/fritzing/digital-light-pulse-sensor_schematic.png \"Digital light pulse sensor schematic\")\n![alt text](https://raw.githubusercontent.com/hfreire/raspowmeter/master/share/fritzing/digital-light-pulse-sensor_breadboard.png \"Digital light pulse sensor in a breadboard\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfreire%2Fraspowmeter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhfreire%2Fraspowmeter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfreire%2Fraspowmeter/lists"}