A fully-fledged and continuously running home automation project using https://pyziggy.github.io.
- pyenv
- rsync 3.2.0+
You can install both using brew.
This only works on our local network, where we can connect to the server.
Make sure, you are in the project directory that you want to set up. Copy and execute the following commands in the terminal.
curl -fsSL https://raw.githubusercontent.com/bebump/pyziggy-example/refs/heads/main/remote.json -o remote.json
curl -fsSL https://raw.githubusercontent.com/bebump/pyziggy-example/refs/heads/main/pyziggy-setup -o pyziggy-setup
chmod u+x pyziggy-setup
./pyziggy-setup sync-remote stop
This blob will
- Download the
remote.jsonandpyziggy-setupfiles from this repository, into your current working directory. - Run the
./pyziggy-setup sync-remote stopcommand, which- connects to your service machine specified in the
remote.jsonfile, and downloads all project files using rsync, - creates a
.venvdirectory with a Python 3.12 virtual environment, and installs all dependencies into it using the downloadedrequirements.txt.
- connects to your service machine specified in the
./download-all-files-from-remote-and-stop-remote-service
This command is idempotent.
./run-project-locally
./upload-all-files-to-remote-and-start-remote-service
This command is idempotent.