Home Energy Visualytics is a lightweight platform designed to monitor, visualize, and analyze household energy consumption. Using a Raspberry Pi connected to an IoT device (gPlug), the system collects telemetry data from the smart meter, enabling users to track usage patterns, detect anomalies, and gain insights for energy efficiency. This guide provides step-by-step instructions for hardware setup, software installation, and accessing the web-based dashboard.
If the raspberry pi is already configured, you can skip the first steps and you can just plug the gPlug into the wall socket and connect it to the desired Wi-Fi network (must be the same as the Raspberry Pi).
If you don't have the Raspberry Pi Imager installed, you can download it from the official Raspberry Pi website. The imager allows you to easily set up your Raspberry Pi with the desired operating system and configurations.
- Download the Raspberry Pi Imager from the official website: https://www.raspberrypi.com/software/
- Select Device: Raspberry Pi 5
- OS: Raspberry Pi OS Lite (64-bit)
- Storage: 64 GB (Should be the SD card)
Click next and then select the following options (under modify settings):
- Under general:
- Hostname: raspberrypi
- Username: morel
- Password: morel
- Wifi: Enable wifi and enter the credentials
- Nation: CH
- Time Zone: Europe/Zurich
- Layout keyboard: ch
- Under services:
- SSH: Enable SSH
Once is all done, click on Save and then Write to flash the SD card with the selected configurations. This process may take a few minutes.
This set up is very simple, just plug the gPlug into the wall socket and connect it to the desired Wi-Fi network (must be the same as the Raspberry Pi).
ssh morel@raspberrypi.localAnd then insert the password set before.
sudo apt updatesudo apt upgradeit can take a while...
sudo apt-get updatesudo apt-get install ca-certificates curlsudo install -m 0755 -d /etc/apt/keyringssudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.ascsudo chmod a+r /etc/apt/keyrings/docker.ascAdd the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullsudo apt-get updateInstall the latest version:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginVerify the installation:
sudo docker run hello-worldCreate a directory for the project:
sudo mkdir /home/piGive full access (to be able to access the files from the host):
sudo chown morel:morel /home/pisudo usermod -aG docker morelsudo rebootsudo apt-get updatesudo apt-get install docker-compose-plugindocker compose versiongit clone https://github.com/MorelliDUniFr/Home_Energy_Visualytics.gitcd Home_Energy_Visualyticssudo chown -R morel:morel .sudo chmod -R 755 .docker compose up --buildOpen a web browser and go to http://192.168.1.125:8501.
You should see the Home Energy Visualytics web interface.