Skip to content

Measure main energy consumption and solar production on a RaspberryPi

Notifications You must be signed in to change notification settings

nsieg/energymeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local machine requirements

  • ansible
  • sshpass
  • python3
  • python3-pip

Running tests

make test

Deploy to RaspberryPi

  1. Provide your secrets into secrets.json.
  2. Configure target url in Makefile
  3. Adjust configuration variables in ansible/roles/provision/vars/main.yml
  4. Start deployment using:
make deploy

File structure

/opt/energymeter
├── data
│   ├── main-2021-07-06.csv
│   └── solar-2021-07-06.csv
├── energymeter
│   ├── backup
│   ├── handlers
│   ├── sensor
│   └── shelly
├── logs
│   └── energymeter.log
└── requirements.txt

Setup

  1. Flash RaspiOS to SD card
  2. Create a file named ssh with no content in disk root
  3. Create a file named wpa_supplicant.conf in disk root
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=DE
    
    network={
    ssid="siegNetz 2,4GHz"
    psk="***"
    }
    

About

Measure main energy consumption and solar production on a RaspberryPi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published