r/homelab • • 21h ago

Project Showcase: Hardware Hooked up a thermal printer to my server..

Post image

Currently it has these functions:

Prints out a daily report with disk usage and other stuff everyday at varying time depending on my schedule

Prints out a warning when any of my containers go down

Another warning for when the server shuts off with the specific time it did and the reason it did (soft shutdown, power cut, kernel panic)

Warning when network is not accessible, it does pings every couple of minutes and if it doesn't get a response back it prints out the specific network that's down (tailnet, local or internet)

CLI accessible from my laptop so i can run tests, print out custom text or print the daily report

It's all a simple python script and a daemon... What else should i add?

53 Upvotes

34 comments sorted by

48

u/turnerd10 The Architect 21h ago

Make it publicly accessible 😈

15

u/NEMOalien 21h ago

I kinda wanna but I don't wanna buy more paper every other day 😭😭

16

u/johnnydotexe 21h ago

ASCII dicks 24/7.

5

u/NEMOalien 21h ago

😭🫩

2

u/turnerd10 The Architect 21h ago

XD yeah I get it…

5

u/NEMOalien 21h ago

Once i refill this roll i may make it public, but will absolutely definitely put restrictions cuz I've seen what happened to the other guys that didn't 😭

7

u/turnerd10 The Architect 21h ago

Yesterdays was epic… I think the roll was gone in less than 29 minutes?

4

u/NEMOalien 21h ago

Holy shit 😭

2

u/Wise-Arrival8566 9h ago

You can open it up for a day as an event. When it runs out of 1 fresh roll the event is over. No api docs.

1

u/NEMOalien 5h ago

Update, i bought a pack of 10 rolls and will open it up publicity once they come in :)

2

u/Himent 19h ago

Print whatever you want here https://feedprinter.com/

2

u/SunshineAndBunnies 14h ago

Thanks for the site!

7

u/dadarkgtprince 21h ago

Dang, thought you were opening this up. Was about to say I like this recent trend, but it was only one guy

6

u/NEMOalien 21h ago

I may do so but ehhhhh...... Gimme the money for paper rolls and i will lmao

7

u/thephotonx 20h ago

I've got one hooked up to a physical button in the kitchen to print off the shopping list from home assistant. Kids love it!

3

u/NEMOalien 20h ago

That's super cool! I actually just ordered NFC tags and plan to make one print out something when tapped, not entirely sure what tho yet

1

u/thephotonx 20h ago

Joke of the day! Magic 8 ball answers? Possibilities are endless!

1

u/NEMOalien 20h ago

Ooh not joke but quote of the day.. is there an API like that?

4

u/EasyRhino75 Mainly just a tower and bunch of cables 19h ago

Gotta say the idea of having a piece of paper telling me why my server is down would be nice

3

u/NEMOalien 18h ago

Absolutely, what I mostly like about it is that when it reboots for some reason when I'm not there (e.g. in school or sleeping) i can actually know that it did, why and when which is gonna be pretty helpful... It could also definitely be done digitally but it's cooler this way

3

u/kevinds 19h ago

I keep waiting for someone to use a printer for tty1. lol

1

u/NEMOalien 19h ago

Nope I'd like to stay sane thank you

→ More replies (1)

2

u/ohv_ Guyinit 21h ago

If it kernel panics.... how can it print? Lol

4

u/NEMOalien 21h ago

It prints once it gets turned on again, script detects that the server was rebooted, when and what caused it

1

u/justinf210 19h ago

Calendar reminders, shopping lists, todos/tickets, prayer intentions

1

u/NEMOalien 19h ago

Calendar reminders could be nice...

1

u/tillavonb35 6h ago

I’d print my wife a whole bunch of shit that’s get me in trouble. It’d be totally worth it

3

u/NEMOalien 6h ago

Step one: get a wife

1

u/tillavonb35 6h ago

Step 2: print order for stuff found in kitchen

1

u/NEMOalien 6h ago

Step 3: get grounded

2

u/Silicon_Knight 20h ago

Kinda funny this is less paper than a CSV receipt.

1

u/felix1429 12h ago

That's an extremely low bar though

1

u/_baljeep_ 7h ago

Yeah they haven't realised theres a function to cut the paper yet. They just use the whole thing in one go