https://github.com/hfreire/raspowmeter
A Raspberry Pi :computer: power meter :zap::electric_plug: solution for your home :house_with_garden:
https://github.com/hfreire/raspowmeter
docker raspberry-pi
Last synced: 3 months ago
JSON representation
A Raspberry Pi :computer: power meter :zap::electric_plug: solution for your home :house_with_garden:
- Host: GitHub
- URL: https://github.com/hfreire/raspowmeter
- Owner: hfreire
- License: mit
- Created: 2016-08-28T11:04:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-07T14:33:28.000Z (over 9 years ago)
- Last Synced: 2025-03-12T14:16:34.562Z (over 1 year ago)
- Topics: docker, raspberry-pi
- Language: C
- Homepage:
- Size: 1020 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Raspberry Pi :computer: power meter :zap::electric_plug: solution for your home :house_with_garden:
## Features
* Blazing fast :dizzy: C code :neckbeard::astonished: with low memory footprint :white_check_mark:
* Polls GPIO state through the sysfs interface :scream: that uses interrupts (edge detection) from the kernel :white_check_mark:
* Multi-threaded (consumer & producer) :thumbsup: makes sure that we don't miss GPIO states :white_check_mark:
* Launch :rocket: inside a Docker container :whale: so you don't need to manage the dependencies :raised_hands: :white_check_mark:
### How to build (cross-compile)
`mkdir -p build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/rpi/toolchain/armv6-rpi1-linux-gnueabihf.cmake .. && make`
### How to start
`RASPOWMETER_GPIO_PIN=7 RASPOWMETER_GPIO_TRIGGER_MODE=falling ./raspowmeter`
### Build Docker container
`docker build -t registry.exec.sh/raspowmeter -f ./share/docker/Dockerfile .`
### Push Docker container to registry
`docker push registry.exec.sh/raspowmeter`
### Digital light pulse sensor
A 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).

