Monday, April 7, 2025

Algorithmic Complacency

 I watched this before my YouTube refrain 


https://youtu.be/QEJpZjg8GuA?si=c3_oBxiaxJKY9HCV


I highly recommend.


Not long after I had a coworker recommend this book:

https://www.amazon.com/gp/aw/d/0226843084?psc=1&ref=ppx_pop_mob_b_asin_title


The first talks about how much we let algorithms dictate our day to day. And so far the second (book) talks about how people are forced to live with policies and employees are forced to follow policies because that's just how it is.


It's an algorithm of another sort, hand written maybe, not tailored to an individual but still an algorithm and still determining what we can and should do.


I've been frustrated with YouTube for a while as I know that there are specific techniques in play trying to get me to watch longer and more mindlessly. I stopped going on things like Facebook because of that exact stuff. I'm looking for something and Craigslist has been not great this go around so I went to Facebook. Logged in and searched. After messaging a seller I think I may have ended up on the home screen and started to scroll, I got about 3-4 posts in and recognized this is it, it's so easy to scroll, so easy to see 'what your friends are up to'. Which def feels like a lie with all the non friend junk. But also somehow all your friends are content creators these days so now that's even more notifications. It's a mess. So I ban social media at my house. Yes I can get on if I get off wifi but there is an active step, I have to decide yes I want to visit this social media page. I have to decide I want to try my wifi off. 

Think more about what you're doing. Don't let algorithms or policies dictate your life if you can help it.


Saturday, April 5, 2025

what about resetting

 With all the stuff going on lately it had me wondering, what would actually happen if you stripped a business, government, individual, to a very basic version and said 'go' again. 

If tomorrow I sold my house, gave every penny I have away and quit my job, where would I be in 20 years, would I be in the same spot? A totally different spot? No idea, but it definitely has me wonder. 

I can't just restart, I have all my knowledge, unless a brain injury occurs, I get to restart with much more knowledge. I was listening to podcast that talked about these business owners building a business, selling it, and then doing it again, almost speed running the process.

What would happen? Would I be a engineer, would I be a manager? Would I climb the ladder quickly earn as much as I can as quick as I can, would I be working a low paying dead end job.

I don't know, but I think people are often afraid of that great reset, what if the great reset is what you needed to take things to the next level? A whole different level? A reset means maybe losing everything and dying penniless or it could mean achieving your wildest dreams.

You get an update, you get an update, everyone gets an update

 Why do we live in a world where you can't use a piece of software until it updates. This is just silly.

I want to play Xbox ,update. (Also I just stopped playing after the first time nownit collects dust). 

I want to use my cricut, update. 

This needs to stop.

At a minimum updates should remain behind the scenes and happen without the user even knowing or needing to care (I feel like chrome used to do this, I don't use it much anymore but I thought it just....updated with out my knowing it was even happening.).

If a company is going for force updates to use the product do it without my having to wait to use the product. If they don't have to update, even better let me decide when I want to update...if ever.


Anyways super annoying

Friday, April 4, 2025

just say no part 1

 I won't go into a lot of detail here. But I'm going to give my opinion.

Just say no.

Kids watching YouTube unrestricted (kids mode or not)

Just say no.

TV in any bedroom

Just say no.

Online video games for kids

Just say no. 

Mobile games for kids.

Just say no.

Social media.

Just say no.

I probably have many more.

This is a start.

Thursday, April 3, 2025

everything is the same over and over

 I have to laugh. I was reading the tightwad gazette 3. I don't know exactly when this book was written but I'm inclined to believe it's been 20-30 years at least probably longer.

In it I saw a quote,

" The idea that baby boomers have fewer opportunities and must struggle harder than previous generations is believed by millions of americans. Specifically they believe it's almost impossible to raise kids on a middle class income these days anymore "

So basically everyone thinks their parents had it easier. Generation after generation.

It's just wild.

I'm not claiming that folks don't have it harder, nor easier, but just that it seems like everyone has and will indefinitely complain about this.

Wednesday, April 2, 2025

no YouTube March

 Last year I did a month of no YouTube. I'm strict only in the sense of my goals. YouTubers goals are retention, and doing every psychological trick in the book to keep it. Some intentionally, some as a result of optimizing to the YouTube algorithm. 

My goal was to cut that out. That means that if someone sent me a video, maybe I would watch it (though was incredibly rare). Watching an MIT lecture was ok because it's pure education and not retention focused.

Well this year felt rougher than last year, I think part of that was because I spent a lot more time last year watching twitch. While it may have some of the same behaviors it's way more muted, live content is less likely to have the extreme jump cuts, etc. while last years was good, this year part of my focus was trying to get better at exploring the internet. I did this via (yes another algorithm) hackernews, and some help with ChatGPT and Google searches. (With a sprinkle of hackaday, and rasperry pi magazine).

Ok so March is over. Did I jump back on YouTube and go crazy yesterday the 1st ...nope. I think I watched maybe 1 video or part of one but honestly last night had me thinking what if I can make it through April?

A few years back I had a goal of reading more (which has the added side benefit of not watching YouTube lol) I think my original goal was 50 books, then as I was approaching it  I thought..... Why not 75 with a stretch of 100. Well....long story (pun intended) short I surpassed 100. (Mix of audio and physical reading, though almost 0 or maybe 100% 0 digital).

So who knows, maybe in a year I'll be talking about how I'm not watching youtube still.

I think YouTube has a lot of great intent but like social media, I think I need it out of my life as much as possible  using it for purely educational content is my goal, and I've often wondered about building a YouTube "filtering" app that only includes real educational content that isn't designed for views. Who knows maybe ChatGPT will make that for me :).

Tuesday, April 1, 2025

LLM usage 3/22/2025-3/29/2025

I'm not sure what/how to talk about this, but LLMs really are just wild. This isn't an April fools post, I've been busy and just haven't had time to really think through what to talk about here. 

 

Lets get into it.  I use LLMs for a lot of stuff and it's been integrating into my family too, so I guess let's see.

1. While at dinner my kiddo asked if we could use ChatGPT for trivia on Dogman.

2. My son wanted some fraction division practice. He started asking ChatGPT for an app to do this. 

3. I have a friend who wanted to make a sticker based on a badge. Used LLMs to make a basic webpages to upload a image (badge) and it did some segmentation. (Not amazing but worked).

4. I had another friend ask how to host webapps these days. My first reaction was oh I use this (flask) and ChatGPT will make all the code for you. (There were more questions/opinions but that was the main thing).

5. I realized when someone asks me a question.....I think my first reaction from now on should/will be, ask ChatGPT (this is kinda like let me Google that for you) to check my assumptions. However I noted, we lose conversation when questions go to (Google or ChatGPT or whatever). Like we talked for a bit about what he was up to, and I wonder if we wouldnt have that convo if he went straight to  Google/ChatGPT. I went to ChatGPT and asked the question, it suggested various servers, including the one I suggested but it also gave me other names I might check out just to see what they are (so kinda a cool way to learn about tech you maybe haven't heard of before).

6. How to handle difficult situations. Strategies for how to handle yourself in them, it was a conversation I was able to have with someone on what to do.

7. Help upgrading jellyfin server.

8. Ideas on "jobs" for a kid that replace the classic paper route (I had a paper route growing up and wondered what today's 'paper route' is). Reselling was a big one in the list. Etsy was one item which I kinda liked. I might setup an acct and try to get something rolling for my kiddos to sell something on Etsy.

9. Update my QR code generator page (internal page) to give the option of text message qr code format. 

10. Tips on being an adult. I am often wondering how people approach household management, paperwork management etc.

11. Prepping for a sports tournament what things should I bring, how to prep etc.

12. I came across a photography technique I think called jitter photography and I wondered what/how many other cool techniques exist, so there was a long interaction where I was asking for more ideas, this was fun and I came across a few new techniques I would like to try.

13. Update my loan-optimizer.com page, the navigation was broken so I fixed that with ChatGPT.

Lotta different and interesting usages. I have found (personally), with at least the default ChatGPT I tend to go Google a topic if I'm having questions about a topic, so I get ideas of things to look up in chat then go look them up on the web. I don't like to stay 100% in the chat, but I do use it for idea/direction of research generation.

I of course like using it for help with any programming when it makes sense.

Saturday, March 29, 2025

free speech isnt free

 This thought has popped into my head at random times, but in particular when I read an article like this one:

https://www.theverge.com/news/637228/madison-square-garden-james-dolan-facial-recognition-fan-ban

If you don't agree free speech isn't free, next time you see your boss go tell them off. 

Free speech isn't free from repercussions. I guess that means free speech is only free from government retribution and not from ....what's the right word....civil retribution?

I can only imagine the way you can have the idea of free speech truly freely is by being anonymous otherwise if someone connects it to you, there can be benefits and drawbacks.

Thursday, March 27, 2025

apples

 A few months ago maybe, I thought, I should eat more apples, cause if an apple a day keeps the doctor away why not?

I discovered a curious side effect.... My heartburn problems subsided a lot. Like very noticably so.

I will admit I've been trying to eat healthier in general, this year in particular so that's also a factor, but even if I eat something and I start to notice heartburn, an apple later and I'm feeling great 

This may not work for everyone but it has been honestly life changing so if you get heartburn, I'd say....give it a try (unless you're allergic), what's the worst that happens, you eat a few extra delicious apples?

Wednesday, March 26, 2025

generative AI, and knowledge work

 I read an HN (comments) on the impacts of generative AI on critical thinking...https://news.ycombinator.com/item?id=43484224


I have thoughts up front....yes there is likely a loss of the inquisitive nature of some things. I think, I don't need to think too much about this until the AI fails then I'll figure it out. But then again, at some point maybe AI will stop failing, and then we have a utility. 


Just because a calculator can add numbers doesn't automatically remove our critical thinking in math, but as I'm writing this I do think....how much of math is doing things that calculators are doing or using critical thinking to either solve proofs/etc or design computing systems to solve proofs, or conjectures or whatever. 

So what does that mean for generative AI? 

I also sometimes think about things like this as forms of abstractions. Like because we can write in python it changes the critical thinking we can and do, do, because we don't need to worry or care about which assembly operation we need to perform to move some data to memory or whatever, we just say, python do, and it does. Does that make us think less critically? Maybe? But also maybe not? Maybe it gives us other things to think critically about. 


I do plan to read (or listen) to the PDF referenced by the HN link, maybe I'll have different opinions after that.

Tuesday, March 25, 2025

always ready presenting

 I'm the last like 3 weeks I have been asked to present by 3 different people. (2 of the request made today lol)

This got me thinking..it's probably a good idea to have a ready made presentation I can use at a moments notice.

The problem is that it's always nice to talk about different topics or different things about a particular topic (not rehashing) so another thought is just always be taking notes in almost a PowerPoint form, so that when asked you're like 50-75% there, you have the content, make it look pretty and good to go.....

I've done a little of this, I just need to continue to be good at staying on top of having presentations always ready.

Do you have this problem? How are you prepared? Do you just say no? (Which I also have a tough time doing ;))

Monday, March 24, 2025

10 unusual uses of Large Language Models

It's high time I mention large language models here.

I'm sure you're aware, or have heard of them, however large language models are a transformer based approach of using Machine Learning, trained on large large corpuses of text, (think all of reddit, or all of youtube captions,etc). Which now are able to answer a considerable number of questions.  (Including coding/etc).

Ignoring all the ethical concerns (which of course there are lots, and we can talk about them later).

Here's where things get fun. I wanted to talk about unusual (to me) cases of LLM's I've used. So here goes!

1. I have asked LLM's to build me a playlist of songs that are popular for various times. (And subsequently asked it to write code to search my library for songs, which it failed to find well, I may try again with a local LLM and pass the song names in as groups, and see if that does better).

2. Upload a picture of my shirt, ask it to give me ideas how to tweak it with cricut iron-on's to make it unique, but also fit the theme.

3. Plan out stops or recommend places to visit for a trip. (Basically a trip advisor)

4. I used ChatGPT to figure out what airports to fly out of for various universities. (As part of my Conferenceships Chair Role for acsac.org)

5. Make lots of little apps. Ever googled QR code generator? How about extracting audio from a video? Yep pretty easy with ChatGPT to create a basic server and front end.

6. Rewrite Christmas songs to be silly?

7. Double Check doctor diagnosis/supplemental questions for doctors visit!

8. Aid in making a commercial detection algo using ffmpeg

9. Copy/Pasted a schedule into ChatGPT and asked for a ics (calendar) file....and surprise it worked great!

10. Asked it to plan out my lawn care activities for the year, and make a calendar file to load to my phone so I know when to do what!

 

What else do you use it for?

 


Mr beast??

I came across this a while back (maybe also from hacker news) https://drive.google.com/file/d/1YaG9xpu-WQKBPUi8yQ4HaDYQLUSa7Y3J/view

 It's an interesting read and makes me wonder how much of what he claims about video retention applies to written communication. Specifically proposals. My goal is to try some of the techniques, and see if my proposals are viewed as better or not :).

 I'm also interested in taking a Mr. beast approach to proposals to read and see what makes a proposal successful and worth funding.

Another interesting comment in the doc says something along the lines, if you don't keep learning new things you will run out of things to draw from. So always be discovering/consuming new things. 

Anywho I think it's a worthwhile read that almost leaves you out of breath by the end with how aggressive things feel. I think it's a mindset you can approach to many fields not just youtube creation for Mr. beast. Being out of breath is Not necessarily in a bad way, but just is.

Sunday, March 23, 2025

acting

 

All the world’s a stage,
And all the men and women merely players;
They have their exits and their entrances;
 

I used to wait tables at Pizza Hut (yes they had dine in, and yes they had waiters/waitresses, crazy right?) and I often thought about how I felt like there were parallels with what I did to acting. The goal being to take my customers out of the every day, and create a space where they don't have to worry or think about anything but enjoying themselves at the meal. You ask how they are doing, perhaps you truly deeply cared what they said....but if you didn't, you acted like you did.

 
 
Now I do work in tech, and many times I feel like I don't fit in, people think I know things that I don't, that I'm an expert in some things that I'm not. There is of course the phrase fake it till you make it, which gives me similar vibes to the above. Sometimes you have someone that really is truly and deeply an expert in things, but often, we are just people who have had some experiences in a topic and that's all people need. Sometimes you just have to get outside your own brain and just act like you know what the heck you're doing....and do it.

I've done this a lot in the past, and it's worked out well, lately it's been feeling like, why are people coming to me, I'm not an expert.....but I guess maybe I am in some ways that I just can't and won't acknowledge. Time to step out of that mindset and own what I am and do and am capable of.

Saturday, March 22, 2025

sometimes doing random things is ok

 

I went on a trip recently and I was of course making last minute updates to my DMS driving app.

By default I have 2 modes, normal daytime mode which is just a boring bootstrap table of black text, with alternating white and gray cell colors per row....very boring.

 Then I have a night mode it is entirely black background with a darkish green text, ....for night time...

I've been thinking for a while how can I make this work better on cell phones. I have a few problems if I have too many columns, then the text has to be tiny to see anything and we'll....if you're driving, trying to glance at something tiny in the car is not ideal. I asked ChatGPT to help me out.....it's far from done, but it's progress. I asked for it to make me a page that changes the font randomly (I don't even know what the default font is but who cares let's try other things), changes the background of the page to a random color and changes the font to a random color.... I didn't review the code too much because if it didn't work I haven't default modes, and its a display page so it's not modifying the underlying database or code, so low risk, potentially......some amount of reward.

Here is an example of the randomly generated page. (Oh I also had it add a save option so if I really liked it I can continue using it, the save option kinda works but that's a story for another day).


 

I know I know, the colors are appalling, but if I'm being honest, it's legible, somewhat, so I don't mind, plus I can just hit refresh page and it'll give me a new color scheme.

I'm planning on running with this, and fiddling with my display, I have 2 columns that are the most important, and other columns that would be 'nice'. I also have more content that I'd like to have, maybe some kind of what food is nearby that automatically pops up either within 10 miles of a place, or maybe if the time is of arrival of a city is within 11-1pm so we can easily see what's in the area. Maybe using LLMs as a semi family preference filter for kinds of food.

I'm just gonna say it, sometimes doing random things is a good thing, it inspires new ideas and things maybe you hadn't thought of before. Try to put a little more intentional randomness in your life.


(Funny side note, for a bit I would be working on multiple projects with roughly equivalent priority, so I would just take out a 50 cent piece, which is of course more fun than a quarter, dime, nickel, or penny, and flip it, heads I work on problem X tails I work on problem Y. Was a fun way to have a bit more randomness, and also reduced my decision making requirements).


Have a great day!


(I'm trying to get into the habit of blogging more again)


Friday, March 21, 2025

fungibility

Money fungibility has a lot of valuable properties.  I want to talk about one silly idea I thought about. What if money wasn't fungible.

I was reading an article about patent trolls today on hacker news. It mentioned naming and shaming these patent trolls, but what if money wasn't fungible, what if we had pihole for money, with blacklists, white lists, and overrides.

What if tomorrow I could grab a list and say, I won't accept money from, or purchase from a business who accepted money from a particular person (or list of people)....effectively cutting them out of society at least....somewhat. if enough people said, I won't accept the dollars that the trolls used, then businesses would have to decide, are there enough people who will accept the money, or will they end up with useless dollars and eventually have to block them out as well.

While it can be fun to think of these ideas I am actually really glad we have fungible money. This example can be extended in lots of ways, and can really make a mess of things. What if you accidentally let it slip you voted for a particular law, and enough people didn't like the law. Could the above happened to you, etc. 


Phew, I'm glad cash is fungible.....

This ignores credit cards, or other forms of money that we currently use. I wonder if anyone has built these kind of tools for CC payment processing.....probably not the cc companies, but they prob have lists of some sorts, though it's in their best interest for everyone to spend $$ because they capture value on every transaction.


*To be fair, that doesn't mean some of these things can't be done with fungible money, it would likely just be at a small scale, or would require considerably effort and is just not even a little realistic.

slurp slurp slurp

 So I got bored the other day, and thought, I wonder if my website is in chatgpts model......so I started asking about onaclovtech, and sure enough my main page is on there. 


This got me thinking, a. You might be able to build a bit of a personal archive of (hopefully not PII) things that you can then reference later if they update models to current updates. This is kinda neat.  I did see something on hacker news recently talking about this personal archive but that would possibly work best for local LLMs what they were talking about


I've also wondered about building a form of an attached knowledge base that I can reference, such as preferred foods, etc, so if/when the option of pre ordering or ordering for delivery happens, maybe I can just say, hey can you order me food from X and it'll just know, yes he likes this. I don't stray a ton, but one could argue if I said, I've had x,y,z then it can infer maybe I'd try something new each time.  Maybe give me a hey, you haven't tried p, or q, wanna give one a try? 


Lotta potentially interesting things if it can reference your knowledge base, something I'd like to get better at developing!!

Friday, February 28, 2025

General Purpose to Special Purpose

I've been working on DMS, my driving management system. It's a "basic app" with a primary goal, tell me how far each of the cities are along the route when I'm taking a road trip. 


I started with using Google Distance Matrix API, however after a heavy usage month and having to pay, I thought, I have computers, maybe I can find a way to do that myself. Enter Open Street Maps. Cool, but well.....I am gonna need ram.

OpenStreetMap - Wikipedia
Historically, I used a raspberry pi for the whole operation. Actually scratch that, in the beginning I was using Python everywhere and single page apps, which meant I didn't need my own host, but I also had to go keep checking in on that app, and decided I'd go local.

Ok, back on topic, the title of this post is General Purpose to Special Purpose, and well this is to talk about my journey of using more general purpose compute than was necessary, and slowly but surely shrinking it to my special purpose needs.

If you look up the requirements to run the Open Street Maps Routing Machine (OSRM) , for the USA, it's something less than 64 GB but over 50 GB which, if I am being honest...is a bit bigger than my raspberry pi has in ram (Raspberry Pi 4 with 4 GB of ram). 

As a rule of thumb, the RAM needed to run OSRM is about 5x the file size of the map you are using. So for a map of the USA us-latest.osm.pbf that is 9.3 GB in size, you'll need about 50 GB of memory*

 My first iteration was to use my laptop to host both OSRM, and Nominatim, a lat/lon to city and vice versa lookup tool. This worked for my needs, but means I gotta lug that monster around and waste energy and all that stuff....so what to do, what to do.

Well first up. Was trying to figure out if I can use different databases. Like what if I sorted out that I'm only going to be in one state the entire time so I would only need to load one state worth of data. Sure, that'll save me some memory, but what if I'm crossing multiple States now? We're starting to get into territory where we're taking up a lot of space again. It's still significantly smaller than the entire United States but still problematic.

This is where things get really interesting to me. You see you can carve polygons out of this data. In fact, that's all that's being done when we get a subset of the entire world. It's just a polygon cut out of it.

Then, I got to thinking what if I took the route that I'm planning on going and cut that route out. That would be significantly smaller so I tried it. It didn't work. Just to be clear, I'm not saying it couldn't work. I'm just saying that it didn't. So what I did was add a 50 mile border around my entire route. This still saved me tons of memory and enabled me to work within the bounds of my Raspberry Pi's memory.

 

Region

Disk Space Size**

Estimated Ram

United States of America

10.2 GB

51 GB

US Midwest

2.0 GB

10 GB

US Northeast 

1.5 GB

7.5 GB

US Pacific

152 MB

760 GB

US South

3.5 GB

17.5 GB

US West

2.8 GB

14 GB

Colorado

304 MB

1.5 GB

Utah

134 MB

670 MB

My route crossing 5 states

648 MB

3.2 GB

My route crossing 5 states (using route polygon)

439 MB

2.1 GB


What is also interesting is if I pre-plan all my routes that I'm planning on using ahead of time I can trade hard drive memory for RAM memory. When I'm ready to take a particular trip I just swap out the database and I'm off and running. And let me tell you I can throw a big hard drive on a Raspberry Pi.

If you look in the table above you can see that for me to cross 5 states, I was able to do it in 439 MB of hdd space as opposed to the unoptimized version taking up 648 MB. This doesn’t seem like a lot but when you multiply that delta by 5 it’s a lot.


 

I should also note, While crossing 5 states and just loading those states up, would fit in the Pi’s memory, we also need to be able to run nominatim, which requires around 1GB of RAM. I did try to use the route polygon carved version for Nominatim but I was having lots of issues finding lat/lon < -- > city mappings which my tool really needs.

By shrinking the data we went from using a general purpose solution to a special purpose solution and it was able to work for our needs.

I hope you enjoyed hearing about my journey!

* https://blog.afi.io/blog/hosting-the-osrm-api-on-amazon-ec2-running-osrm-backend-as-a-web-service/ 

** Source: https://download.geofabrik.de/north-america/us.html

Monday, January 13, 2025

Home Served Apps

I have discovered, there are lots of sites/tools I like to use but I don't want to have, to download, etc.

I call these simple apps, I think you see these everywhere, want to shrink a pdf? Sure either install some tools locally, figure out syntax, or find a sketchy page and try that (in the meantime uploading your pdf to some website, no idea what they do with it).

In comes.... the AI assistant to the rescue. 

I spent the better part of my christmas break making simple apps that I need and don't need to go to a public site to, using chatgpt as my assistant.

For example. I needed to convert a png to svg.... sure there's online options, but I don't want to have to use them. I also don't want to have to recall the command options for each of these. So I made a converter.local site (in my home network) and now I can just go there, upload an image, and it'll return an SVG.

Here's the list of tools/sites I've made that make life just so much easier. And a link to something "simliar" (mine usually don't look as pretty but they just work)

  • youtube downloader site (https://yt1d.com/en16/)
  • png to svg (https://convertio.co/png-svg/)
  • shrink a pdf (https://smallpdf.com/compress-pdf, https://github.com/aklomp/shrinkpdf)
  • extract audio from video (https://biteable.com/tools/extract-audio-from-video/)
  • podcast host/feed (I don't even know here what is similar)
  • Perform K-Means on pixels
  • Extract all colors to their own image


Tuesday, April 16, 2024

Portable Car Media Server

***

This is a work in progress post, it has most of the content of what I did, but it's after the fact, and I haven't replicated it to ensure it works exactly as described, but you should have enough info to accomplish what I did!

***

 

(Note I have Amazon Affiliate links below FYI)

I decided to build a portable Jellyfin Server. I wanted my kids to be able to login and watch shows as needed while we were driving and thus started going down the path.

I bought a travel router from amazon. I came across this on HackerNews a while back, and liked the idea, which is where this all started.

We used it on our last road trip and it worked quite well.

Parts required (I used stuff I had around, so the links below are largely placeholders for you to try, with the exception of the travel router and power bank, I did buy those).

1 Usb-A to Usb-micro cable

1 Usb-A to Usb-c cable

1 Power Bank

1 Raspberry Pi (I selected 3b+ as it's what I had lying around)

1 SD Card (If you already have a pi up and running, you may not need this)

1 GL-MT3000 (Beryl AX) Pocket-Sized Wi-Fi 6 Wireless Travel Gigabit Router

1 Storage usb drive

1 Shutdown Key (Or just find a spare usb device you can bring along)

1 Storage Case (Totally optional)

Key Stages:

  1. Get Pi Setup and running (Assumed you have set this up)
  2. Get Jellyfin installed on Pi
  3. Setup USB Drive for media
  4. Get nginx installed on Pi
  5. Static IP on Travel Router
  6. Get Adblocker running on Travel Router with Redirect
  7. Get USB Shutdown Key Created


Installing Jellyfin

https://pimylifeup.com/raspberry-pi-jellyfin/

Ultimately I just searched install jellyfin on raspberry pi and it just worked.

Setup USB Drive for media

TODO: More details on how I setup with the USB drive.

Installing nginx

https://engineerworkshop.com/blog/setup-an-nginx-reverse-proxy-on-a-raspberry-pi-or-any-other-debian-os/

Ultimately we will follow the above however there are some details that are a bit fuzzy for me. It has you edit this

sudo nano example.com.conf

file, however my system wasn't setup like that,  so instead of that I used default (likely this command):

ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default

From there we need to update:

sudo nano /etc/nginx/sites-available/default

to contain this:

server {
	listen 80;
	server_name jellyfin.car.com;
	location / {
	proxy_pass http://localhost:8096;
	}
}

This means that we will redirect a request coming in for jellyfin.car.com to the jellyfin server. You can replace jellyfin.car.com with whatever you want, but that's what I used.

I specifically used localhost, because when I was doing setup, I was on my main wifi, so when I swapped between wifi's as long as I had the request coming in via jellyfin.car.com (on my main or the travel wifi) it handled correctly.

Static IP

https://docs.gl-inet.com/router/en/3/setup/gl-e750/more_settings/#static-ip-address-binding

This should generally be what you need to do. Figure out your mac address, and then put in a static IP there. I think the default IP range is 192.168.8.x so I set my pi to something like 192.168.8.31.

Get Adblocker running on Travel Router with Redirect

https://medium.com/@life-is-short-so-enjoy-it/homelab-adding-local-dns-entry-into-adguard-home-arpa-and-pushing-to-clients-from-udm-se-8493253830e5

Next we are going to turn on the adguard (A sweet feature of the travel router), and point the redirect to our pi!

Specifically we are going to do the section called add local DNS entries into Adguard.

I put in 

192.168.8.31 jellyfin.car.com

(instead of their arpa example)

Now when I visit jellyfin.car.com on the wifi that router is on, the adguard will look that URL up, and then return the pi's ip address, which in turn, means that it will connect over NGINX on port 8096

 

Get USB Shutdown Key Created

http://blog.onaclovtech.com/2024/03/usb-shutdown-key.html

Finally, we will setup a USB shutdown key, this makes it so when we are ready to shutdown for the day we can kill our pi, and unplug power after maybe 30 seconds.

You can use any old usb device I have an old 32 mb usb key (my first perhaps?) that I am using, I labelled it Shutdown Key.


Results

 

Once you have this setup, you can kick it off, the system should last on the battery bank more or less 5-7 hours (maybe more, maybe less, depending on use).

Alternatively you can buy two banks, and then just run the router on one, and the pi on another. 

Finally you "could" possibly just run your router off the USB power in the car, so you don't need the power bank at all, however I didn't test that out, I think the router can handle power interruptions, the pi generally can get finnicky on that, so I wanted a way to be in control of that which is why it's on a power bank, so if I shut the car off I don't accidentally forget to gracefully power the pi off, and kill it in the middle of my trip.


***

This is a work in progress post, it has most of the content of what I did, but it's after the fact, and I haven't replicated it to ensure it works exactly as described, but you should have enough info to accomplish what I did!

***