Skip to content

simpe00/homeSolar

Repository files navigation

Set up a dashboard with a Modbus communication to a SolarEdge system

working with this project

initial

ssh-copy-id -i ~/.ssh/id_rsa.pub user@host
Note
In the Section devContainer you can see how to go into a development container. The ssh-copy-id-command is working from inside the development container. Now you can ssh from the development container to your Host/Pi/…​

basic commands

freeze python requirements
pip freeze > docker/requirements.txt
start docker container from outside the devContainer
docker-compose -f ./docker-compose.yml up --build --force-recreate -d
stop docker container
docker-compose -f ./docker-compose.yml down

devContainer

creat an network for the developing container if it is not existing already. (e.g. docker-compose wasn’t executed before)
docker-compose -f ./docker-compose.network.yml up
load development Container in VSC
  1. Ctrl+Shift+P or F1

  2. type in : Remote-Containers: Reopen in Container

Important
The Extension Remote-Containers is needed

overview of environment

overview of environment variables in the project
link:.env[role=include]

Additional USB Data Storage

  1. Find out the UUID of the USB Storage

    sudo blkid
  2. Make a directory for the USB Storage

    sudo mkdir /mnt/usb1
  3. Editing "fstab" file for auto-mounting the USB Storage

    sudo nano /etc/fstab

    adding the follow line in the file (with your UUID)

    UUID="f8f8ba1c-7dfd-45ff-b8dc-730b576f4344" /mnt/usb1 ext4 defaults,auto,rw,nofail,exec 0 0
  4. read fstab with

    sudo mount -a

commands on Raspi

from laptop to Raspberry pi
rsync -r /workspaces/HomeAssiWithSolar/ ubuntu@192.168.178.3:/mnt/usb1/homeassi/ --delete --exclude "SSH"
add local bind-mounts. Makes Hot-deployment possible
docker-compose -f ./docker-compose.yml -f ./docker-compose.local.yml -f ./docker-compose.arm.yml -f ./docker-compose.prod.yml up --build --force-recreate -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors