Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starwhooper/rpi-hh-em-mqtt
https://github.com/starwhooper/rpi-hh-em-mqtt
mqtt-client pv raspberry-pi
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/starwhooper/rpi-hh-em-mqtt
- Owner: Starwhooper
- License: cc-by-sa-4.0
- Created: 2024-06-15T17:42:52.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-25T15:27:31.000Z (6 months ago)
- Last Synced: 2024-06-25T17:07:05.650Z (6 months ago)
- Topics: mqtt-client, pv, raspberry-pi
- Language: Python
- Homepage:
- Size: 831 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RPi-household-energy-montor (aka. hh-em) #
I was looking for a way to measure the current energy consumption of my household and compare it with the photovoltaic system.
Basically, I'm not interested in long-term storage of the data, but rather in order to be able to spontaneously determine whether I'm currently purchasing energy from the grid or am already giving energy away to the grid operator.
My Environtment: Landis Gyr+ E220 smartmeter with Tasmota script: https://gist.github.com/enra64/0f34a2f233068f901a75c320f3b87cd0![status](readme/display.jpg)
![RPi Zero without case](readme/display_wo_case.jpg)
![Screen pretty](readme/householdenergyp.gif)
![Screen detail](readme/householdenergy.gif)You may get the case here: https://www.printables.com/de/model/258922
## Installation
install all needed packages to prepare the software environtent of your Raspberry Pi:### enable SPI interface
```bash
sudo raspi-config
```### install required components
```bash
sudo apt install python3-luma.lcd python3-psutil git -y
sudo git clone https://github.com/rm-hull/luma.examples /opt/luma.examples
sudo wget https://raw.githubusercontent.com/Starwhooper/luma.examples/patch-1/conf/st7735_128x128_WShat.conf -O /opt/luma.examples/conf/st7735_128x128_WShat.conf
```### install this tool itself:
```bash
sudo git clone https://github.com/Starwhooper/RPi-hh-em-mqtt /opt/RPi-hh-em-mqtt
sudo chmod +x /opt/RPi-hh-em-mqtt/comparedisplay.py
```### config this tool:
```
sudo cp /opt/RPi-hh-em-mqtt/config.json.example /opt/RPi-hh-em-mqtt/config.json
sudo nano /opt/RPi-hh-em-mqtt/config.json
```
* add credentials from solar inverter
* add ip adress from solar inverter an tasmota smartmeter### add to autostart ###
add it to cronjob reboot
```bash
sudo crontab -e
```
insert line:
```
@reboot /opt/RPi-hh-em-mqtt/em.py --rotate 2 --config /opt/luma.examples/conf/st7735_128x128_WShat.conf
```## Update
If you already use it, feel free to update with
```bash
cd /opt/RPi-hh-em-mqtt
sudo git pull origin main
```## Hardware
### Display
1.44" Waveshare
https://www.waveshare.com/wiki/1.44inch_LCD_HAT
### Case
STL Files: https://www.printables.com/de/model/258922-raspberry-pi-zero-with-waveschare-144-display-case