A friendly guide to the magic inside the OpenClaw system — how it manages what it knows, what it remembers, and why talking to it feels different from every other AI tool you have used.
This document describes how to access the Powerwall LAN API using the pypowerwall PR that enables TEDAPI access from LAN.
Direct LAN access to the Powerwall Gateway currently appears to be restricted. In testing, API access only worked when the request originated from a routed subnet behind the Gateway rather than directly from the home LAN.
To work around this, we create a small bridge/router that places the Powerwall on its own subnet.
This guide shows how to do that using a Linux system with two network interfaces (in this case a ZimaBoard).
This guide shows how to install Ubuntu VMs on an Ubuntu 24.04 host using only command line options with virt-manager. By default, virt-manager wants to use a GUI installer, but we'll use the virt-install command line tool instead to create VMs that connect directly to your LAN via a network bridge.
What you'll learn:
- Create a persistent network bridge for LAN access
- Install Ubuntu VMs using serial console (no GUI needed)
- Manage VMs with virsh commands
Use Ubuntu 24.04 server as a Time Machine backup host for MacOS computers.
In the past I set up netatalk on our Linux servers to provide Apple Talk shares on the network. However, I discovered Stefan Johner's post on usig Samba with the vfs_fruit module. The Samba package provides SMB compatible file sharing which means it works with a variety of operating systems and devices, including Windows and MacOS. The vfs_fruit module
| #!/bin/bash | |
| # | |
| # https://docs.docker.com/build/buildkit/ | |
| # https://github.com/docker/buildx/releases/ | |
| # https://github.com/docker/buildx | |
| VERSION=v0.14.1 | |
| mkdir -p $HOME/.docker/cli-plugins |
This will set up a Raspberry Pi to connect to a Tesla Powerwall Gateway (TEG) and bridge that connection to the ethernet connected LAN.
As of Tesla Powerwall Firmware 25.10.1, a local host based static route using the Powerwall LAN IP (ie. sudo ip route add 192.168.91.1 via $POWERWALL_IP) is no longer supported by the Powerwall. Tesla is blocking access via this method. You will need to use a bridge method (as shown below) or have your host direclty connect to the WiFi Access Point on your Powerwall (gateway) to get the extended metrics (vitals).
Below is a method to set up a Raspberry Pi to be a bridge between your LAN and the Powerwall, which will require you to set up a local host baed route (ie. sudo ip route add 192.168.91.1 via $RPI_IP). Alternatively, you can see a method to host pypowerwall on Raspberry Pi that connects to both your LAN and Powerwall. That is described here: https://github.com/jasonacox/Powerwal
| from decimal import Decimal, getcontext | |
| def pi_archimedes(n): | |
| """ | |
| Calculate Pi using Archimedes method with n iterations to estimate Pi. | |
| This method approximates Pi by calculating the perimeter of a polygon inscribed | |
| within a unit circle. | |
| Polygon edge lengths are computed using the Pythagorean theorem and the geometry of the polygons. | |
| The number of sides of the polygon is also doubled in each iteration, as each side of the |
List of docker / containerd architectures
| Architecture | Description | Notes |
|---|---|---|
| linux/amd64 | 64-bit x86 architecture | AMD and intel CPUs |
| linux/arm64 | 64-bit ARM architecture | ARM CPUs like Apple Silicon |
| linux/arm/v7 | 32-bit ARM architecture | Raspberry Pi 3/4 32-bit |
| linux/ppc64le | 64-bit PowerPC architecture |
| # Resize Images in Directory | |
| # | |
| # Provided target frame size (TARGETX, TARGETY) this script will scan current | |
| # directory and scale up an image (keeping same ratio) to best fit. I used | |
| # this to fix images for a photo frame that would only scale down images but | |
| # would not scale up. | |
| # | |
| # Jason A Cox - github.com/jasonacox | |
| # 2021 July 30 | |
| # |