diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-06-23 22:41:02 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-06-23 22:41:02 +0200 |
| commit | bf8297543935fbcf3e608d38246e5435b3afbc77 (patch) | |
| tree | ad266e90674aa704eb2dba87361964e49413739c /this-server | |
| parent | 0b09eab4f26d3fdb4f210156640be6e8dfcc238f (diff) | |
Improve HTML generation
Diffstat (limited to 'this-server')
| -rw-r--r-- | this-server/a_web_server_on_a_solar_phone.md | 3 | ||||
| -rw-r--r-- | this-server/index.html | 38 | ||||
| -rw-r--r-- | this-server/meta (renamed from this-server/meta.sh) | 1 |
3 files changed, 9 insertions, 33 deletions
diff --git a/this-server/a_web_server_on_a_solar_phone.md b/this-server/a_web_server_on_a_solar_phone.md index ad2757b..45dabba 100644 --- a/this-server/a_web_server_on_a_solar_phone.md +++ b/this-server/a_web_server_on_a_solar_phone.md @@ -11,13 +11,12 @@ site that you are browsing right now is hosted on it. ## Hardware -The phone is an entry-level Motorola G7 Play, purchased in 2019 for 120€ or so, +The phone is an entry-level Motorola G7 Play, purchased in 2019, worth nothing today. It was used by my son for less than 2 years, then dormant since. The display is slighly shattered, but it doesn't matter, as I use it headless. I bought a small solar panel on Amazon, 10W produced by 2 plates of 17x17 cm. -Cost: 28€. I could probably get something less expensive. And that's it. The solar panel is just suspended vertically at a south window. The phone sits below, connected to the panel by a USB cable, in the shadow diff --git a/this-server/index.html b/this-server/index.html index 019b7db..3478cd4 100644 --- a/this-server/index.html +++ b/this-server/index.html @@ -1,40 +1,16 @@ -<!DOCTYPE html> -<!-- generated by build.sh. DO NOT EDIT. --> +<!doctype html> <html lang="en"> <title>A web server on a solar phone</title> -<meta name="description" content="Hosting a web server on a solar powered phone"> -<meta charset="UTF-8"> -<meta name="viewport" content="width=device-width, initial-scale=1"> -<style> - body { - max-width: 45rem; - margin: auto; - padding: 0.5em; - text-align: justify; - } - h1 { text-align: center } - pre { - padding: 1ch; - background-color: #f5f5f5; - overflow: auto; - } - img { - display: block; - margin: auto; - } - .footer { - text-align: center; - font-size: 0.8em; - } -</style> - +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width"> +<link rel="stylesheet" href="/style.css"> <a href="..">Marc's Notes</a><hr> <h1> A web server on a solar phone</h1> <p>I have this old low-cost phone which was the first one offered to my kid when he was 15 (he is now 21), before he moved to a more fashionable model. I noticed that without a SIM card, only on WIFI, the phone needed to be recharged not after 1 or 2 days, but only after 2 weeks! So this small device, plugged to a small solar panel, could be the perfect always-on personal web server. The site that you are browsing right now is hosted on it.</p> <p><img src="server.jpeg" alt="The server with its solar panel, and a cat"></p> <h2> Hardware</h2> -<p>The phone is an entry-level Motorola G7 Play, purchased in 2019 for 120€ or so, worth nothing today. It was used by my son for less than 2 years, then dormant since. The display is slighly shattered, but it doesn't matter, as I use it headless.</p> -<p>I bought a small solar panel on Amazon, 10W produced by 2 plates of 17x17 cm. Cost: 28€. I could probably get something less expensive.</p> +<p>The phone is an entry-level Motorola G7 Play, purchased in 2019, worth nothing today. It was used by my son for less than 2 years, then dormant since. The display is slighly shattered, but it doesn't matter, as I use it headless.</p> +<p>I bought a small solar panel on Amazon, 10W produced by 2 plates of 17x17 cm.</p> <p>And that's it. The solar panel is just suspended vertically at a south window. The phone sits below, connected to the panel by a USB cable, in the shadow (do not put the phone directly under the sun, or closed without fresh air).</p> <h2> Software</h2> <p>The single purpose of this device is now to run a small standalone static web server. By using termux on top of Android, I can run a ssh server for remote access and Nginx, an efficient web server. I do not need to root the phone, as port redirection from my internet router compensate for the restriction of not using a port number below 1024.</p> @@ -45,4 +21,4 @@ <h2> Operation</h2> <p>It's too early to say. Lets see how it goes over time (a few months), and if a relatively old phone can find a second life and be used as an autonomous web server, running solely on free photons and electrons.</p> <p>But for now, we are in june and the battery level is almost always at 100%.</p> -<hr>From: Marc Vertes, 20 june 2025 +<hr>From: Marc Vertes, 20 june 2025. <a href="mailto:marc@vertes.org?subject=Re%3a%20dot.server.org%2fthis-server">Feedback</a> diff --git a/this-server/meta.sh b/this-server/meta index 60682cc..0fce4ff 100644 --- a/this-server/meta.sh +++ b/this-server/meta @@ -2,5 +2,6 @@ blog_title="Marc's Notes" title="A web server on a solar phone" author="Marc Vertes" description="Hosting a web server on a solar powered phone" +link="dot.server.org/this-server" date="20 june 2025" date_rfc2822="Fri, 20 June 2025 12:00:00 +0200" |
