Solar Pi

April 01, 2025 02:00

The Solar Pi in its drawer

Hello from my solar-powered website in Brooklyn!

Due to the nature of the sun, the earth’s rotation, its orbit around said sun and the vagaries of a purely solar-powered anything, this site may not always be available.

This site is currently runnning on a reasonably weather-protected Raspberry Pi Zero on my terrace, powered by a 20W solar panel and PiSugar battery module. It tries to shut itself down when the battery reaches a certain threshold and wake itself up at sunrise. A crontask on the Pi runs a script to calculate sunrise based on its current location.

It’s all a bit of a work-in-progress as I figured out how to make the idea of a consistently available, self-managing, solar-powered website a reality. To date, I have enjoyed that this project seems to have no bottom.

If you’re reading this, that means something about this setup is working! While it’s here and you’re here, please enjoy some fun stats about this site:

Server Info

Energy Consumption Estimates

These numbers are based on the power draw tables described here for the Raspberry Pi Zero, assuming typical idle and stress workloads.

Weather Info

Current data from a weather station near me in New York, somewhere in Central Park. Courtesy of the National Weather Service API.

AI-Assisted Analysis

Caveat emptor! Word-calculators are really not the smartest way to forecast the weather and assess the health of a system…

But it’s still fun to see how it fares :)

At the Moment

The Raspberry Pi Zero is operating well with an uptime of 1 hour and 18 minutes, a stable CPU temperature of 44.5°C, and no signs of throttling, while maintaining a manageable CPU load of 28.6% with adequate memory and disk space usage. The voltage level of 1.2563V indicates that the power supply from the solar bank is sufficient for its current demands.

The output provided is a snapshot from the top command, which offers a live view of system processes running on a Linux-based operating system—in this case, it appears to be a Raspberry Pi (Pi) that is running a web server. Here’s a detailed analysis of the key components:

System Summary

CPU Utilization

The CPU usage is quite low, with a significant amount of idle time, indicating that the system is not under significant load.

Memory Usage

It looks like memory usage is healthy, with over one-third of the total RAM still free. The buffer/cache memory indicates that the system is efficiently managing memory resources, potentially holding data in memory to speed up access.

Swap Usage

The system is using a significant portion of its available swap space, which can signal that physical RAM is being heavily utilized. If the usage grows close to the total space of the swap, it could lead to performance issues.

Top Processes

  1. top (PID 2356): The running instance of the top command itself, consuming 15.0% CPU.
  2. systemd: A crucial system service manager.
  3. kworker threads: These processes handle background tasks and do not consume much CPU.
  4. caddy: Likely the web server daemon. It seems to have multiple threads running, each consuming 2-3% of CPU.
  5. cloudflared: Also appears several times indicating a service related to Cloudflare, which may be part of the web server configuration.
  6. Various background processes for services like avahi, network management, print services, cron jobs, etc., are running without significant resource usage.

General Observations

Recommendations

In summary, the system is functioning effectively with low CPU and memory usage, but regular monitoring of swap and any applications utilizing significant resources can help maintain performance stability.

Current Weather Conditions

The current conditions in New York at this time of night, with fog and overcast skies, are not favorable for a solar-powered server.

The Coming Week

The forecast for the coming week in New York indicates predominantly cloudy conditions with several chances of rain and thunderstorms, particularly on Tuesday, Thursday, Saturday, and Sunday, which will likely lead to poor conditions for solar-powered servers, especially during the daytime when sunlight is most needed.

A different angle on the potting table housing the pi, showing off the solar panel

A joyful project by George Mandis

Read more: