๐พ Archived View for m0yng.uk โบ 2020 โบ 08 โบ The-Portable-Web captured on 2022-04-29 at 12:27:03. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2022-04-28)
โก๏ธ Next capture (2022-06-03)
-=-=-=-=-=-=-
Created 2020-08-19
Recently I discovered some spare parts from past projects, and ended up with this, a battery powered Raspberry Pi Zero W. But what to do with it?
A Green case with ZeroLipo Hat and LiPo cell connected [IMG]
A few ideas came to mind or were suggested, such as a portable DMR hotspot, POCSAG transmitter, and others. But one idea came together from a few other bits.
What if I could have a WiFi hotspot that served content, rather than the Internet? What if the Pi was an isolated network that followed me around?
The basic setup has the following parts
I won't go into detail of how this is configured, because it isn't anything special. Basically I set a few domains to resolve to the fixed IP of the Pi, and lighttpd is set to serve static files from the PI's SD.
1: https://github.com/billz/raspap-webgui
2: https://github.com/nodogsplash/nodogsplash
When a user joins the network they are greeted with a page introducing the idea, and a button to connect. They should then be directed to the custom domain `home.portableweb` which provides some more info and links to services available on the Pi.
Not much, yet!
I have a full mirror of my website on the Pi. As it is all static html files this is really easy to do, I just copy the files to the Pi and it "Just Works".
The CARA website is larger, and more complex. However, I have a simple page with some info on the club, and an archive of CARA News in PDF format.
I've made a very basic PHP guestbook that lets users read and post messages for me, and future users. It is very simple and just stores everything in a json file.
The Pi is configured to act as a USB network "gadget" when connected to another computer using the "data" USB port. This way I can run a small bash script that runs a handful of rsync commands to sync updates to the various "sites" to the Pi, and copy the guestbook off the Pi.
Honestly? Because I thought I could, but wasn't sure, and it seemed fun.
Maybe you are reading this whilst connected to my "Portable Web"? If so, please put something in my guestbook and tell me what you think!
This is also a kind of experiment. It seems that every website these days has huge piles of javascript, tracking, cookies, adverts, and requires a farm of servers to make one page display. This is different, one tiny computer, no infrastructure, just you and me! That your access to the information goes away when the two of us are no longer close makes the experience mean more. Maybe. I don't know, but it seemed worth exploring.
Being an open WiFi, and the impracticality of using HTTPS, everything is unencrypted. My guestbook has some security in that PHP filters out "bad stuff" the user submits, but basically this is all open. Which suits the experimental nature of amateur radio quite nicely. How long that will even be practical, I don't know, I'm sure browsers will soon start warning users not to touch anything that isn't HTTPS.
Are "portable webs" going to take over? I seriously doubt it.
Could they become a thing? Maybe? Has someone else already done this before, I'm sure they have! Could they be a fun way to provide more information at events, clubs, etc., maybe. (the Physical Web[3] sort of does this, but in a more "cloud" way) Could I find a better name for it? I really wish I had done before using it so many times...
3: https://google.github.io/physical-web/
I want to add some more services to the Pi. Some ideas are:
In the end, this is probably pointless and I'll never have anyone spontaneously use it, and I doubt anyone else will try to replicate the idea.
However, it was fun to build, and with some hot glue to hold the wire and LiPo in place it looks pretty neat!
A Green case with ZeroLipo Hat and LiPo cell glued behind [IMG]
If you do have thoughts, come talk to me on mastodon! I'm @M0YNG@mastodon.radio
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
๐ค Black Lives Matter
๐๐ค๐ Trans Rights are Human Rights
โค๏ธ๐งก๐๐๐๐ Love is Love
Copyright ยฉ 2022 Christopher M0YNG
Code snippets are licenced under the Hippocratic License 3.0 (or later.)
Page generated 2022-04-27 by Complex 19