Live data from Hacker News

Ask HN: Most interesting tech you built for just yourself?

news.ycombinator.com

321–330 of 1001 posts

Re: Ask HN: Most interesting tech you built for just yourself?

#321
I built a “dipping bird” boiler reset (metaphorically). Our old boiler had a fault where it would lock out every few months until manually reset. So, I wired a normally closed relay to it and a 10 line Arduino sketch to open the relay 1 minute out of every 120.

That ran for about 7 years; when I was researching replacing the boiler with air-to-water heat pump, I had to prove the house could be heated with lower temp water, so I changed to an ESP8266, added a platinum temperature sensor, a webserver, data logging, and ran a bunch of experiments with lower supply temps to see how the house would react.

https://imgur.io/a/VM7nD74 (that chart is entirely SVG, the whole content screenshotted was generated on the ESP)

Re: Ask HN: Most interesting tech you built for just yourself?

#322
Not yet built, but in my TODO list: A mango pi mq-pro, a custom written 100% risc-v 64bits assembly firmware, plate-mounted cherry switches (probably silent red, or black), lovely PBT key caps, laser cutted aluminium plates, diodes, a bit of electric wiring and:

https://external-preview.redd.it/AxGrpEpxqpATGsX7MwsoSRrD2ie...

Re: Ask HN: Most interesting tech you built for just yourself?

#323
After pushing to a branch, gitlab sends you back a URL where you can create the merge request (MR). This broke my flow because I do all my development using command line tools.

So I created this tool that opens an MR off the branch I'm on. It opens up my favorite editor and asks me for a title and a description in the same way that git does for commits. It splits it in first line for title and the rest for the body.

It's very simple but I'm very happy with it. Now I extended it to list the open MRs, show the tickets in the current sprint, etc...

Nobody else in my company uses it tbh, but I don't care because it solves _my_ problem and I love it.

Re: Ask HN: Most interesting tech you built for just yourself?

#324
I just wrote a long bash script to automate the trimming and organising of a large collection of videos.

I recently bought a drone for photography. But the video looks so good that I end up taking a lot of video, too. Video is new to me, so the raw files keep piling up in my "in" tray. I will have to learn to edit video, one day, or send them to a pro to edit for me.

I decided that the least I could do is watch the videos, organize them, and trim them to just the interesting parts. Saves on disk space.

I wrote a bash script to help me:

- Loop over all videos in a dir.

- Play each video.

- Extract the clips I want.

- Tag, rate and organize the clips.

  The script opens each video in two MPV players.  One is full screen and unscaled (watching 4k on a 2k screen means the video appears zoomed in to a 2k region). This is for pixel peaking. I can quickly check, at a glance, the raw video quality. Another MPV window acts like a PIP, taking up a quarter of the screen, and showing the whole video scaled down. 

 If a video is DLOG, a LUT is applied to MPV to show the video in a more natural colour (raw LOG video looks grey before it is processed). 

  Hacking this together, without a plan, I use simple msg boxes, on top of the playing videos, to control the process. Better than having to flick back and forth to a terminal window.

  When I see a good place in the video to start my cut, I press the "Start" button. An input box pops up, prefilled with the current time of the player, e.g. 00:00:09 if the video is 9 seconds in.

  I watch some more of the video and notice some messy, jerky camera movement starting at 38s. I press the "End" button, and another input box pops up to capture the end time of the clip. I change it to 00:00:37 to exclude that jerky part.

  Now, in the background, ffmpeg is called to extract the section of video between 9s and 37s. I use keyframes so that video does not need to be re-encoded. It sets the real start time to the nearest keyframe before the start, and the real end time to the next keyframe after the input end_time. This means the output video is always a bit longer than I chose. I can trim those few extra frames when I use the clip. Because we don't re-encode, the extraction time is near instantaneous.

  A preview of the clipped file is played back at high-speed.

  If the source video is long, and contains more content I want, I continue playing until I see the next clip I want to extract.

  When I finish with a source file, I am asked to give a star rating (1-5) for the videos and then to choose tags. For these I make use of the rating and file tagging extended metadata (xdg). I can select any number of pre-existing tags, and add new tags. Some metadata tags will be added automatically, such as frame_rate, resolution, and colour_profile.

  Now the clips are in the output dir, and I choose to send the original file to the wastebin. The next video in the source dir starts playing, and the process continues until the dir is empty.
Then, using Dolphin file browser, or Digikam, I can click on a tag and instantly see all clips under it. I can see all videos that are 50fps and DLog color. Or, I can filter all clips tagged "sea" and "sunset", or "mountains" and "sunrise".

The result is a neat pile of trimmed and catalogued video clips. Ready to be thrown into some YouTube video.

Only problem, now? I'm more interested in refining the bash script, than I am in learning to use Resolve to make a finished video.

Re: Ask HN: Most interesting tech you built for just yourself?

#325

My MIL is 93, and the only tech she can really deal with is turning on the radio and TV and changing channels. She is fond of music from old classics (from the 60's and earlier), so I hooked up a Raspberry PI with an FM transmitter and created her own private radio station. She tells me what songs she likes and I create different playlists that get broadcast on her station. It preserves the surprise element of radio,…

> The tiny FM transmitter is surprisingly powerful. Her neighbours (of similar vintage) are very happy too, so their requests have also started coming in :)

Sounds like you're about to start a Radio station for the nation.

Re: Ask HN: Most interesting tech you built for just yourself?

#328
Recently, I used Zig to write a utility that runs on my NAS (ARM-based) and trawls through all directories looking for SRT subtitle files; it then cleans up these files, getting rid of any subtitles that match any of a set of patterns (such as "Please suscribe to XXX"). The utility does almost zero work for already-scrubbed subtitles, and only does work for new subtitles.

Re: Ask HN: Most interesting tech you built for just yourself?

#329
I hooked up an analog phone to Whisper, ChatGPT, and TTS. I used of one of those old timey candlestick phones you'd see in a 1920 gangster movie. Initially this was a prop for a murder mystery party I was hosting (ChatGPT would give clues if you said certain words), but now I use it for a silly distraction here and there. Ask ChatGPT a question by picking up a phone like it's last century! I think it is fun.

I am using Asterisk on Debian that calls my python script. The analog phone adapter auto dials when the receiver goes off hook, because rotary dialing sucks that much and the answering extension is chatgpt role playing different characters based on prompting.

I think it is neat. I need to work on better voice synthesis and improve latency a bit still, but it is a nice toy.

Post reply on HN