Pete's Log: Thursday Evening

Entry #1969, (Coding, Hacking, & CS stuff, Life in General, Meta, Smokepacking)
(posted when I was 42 years old.)

Apparently Prometheus has a default data retention period of only 15 days. I'm glad I noticed this after only a few days worth of data had been discarded since first setting it up. My dashboards all default to showing seven days or less, but tonight I just happened to want to see what the library voltage looked like over the full history I've accumulated so far, and the first few days were missing! Glad I caught that.

Anyway, my Prometheus data directory is sitting at 400 MB and I have way more space on the charting pi so instead of configuring a retention time, I changed the configuration to a max storage size. Trying 16 GB on for size and see how that does. I can also start applying more filters to what Prometheus is actually scraping.


Played with my ESPHome devices a little today. Have I mentioned that I really like ESPHome? Anyway...

  • Added an Uptime Sensor to the library monitor. It's been just slightly flaky the past day or two and I want to see if the device itself is going offline or if it's just losing its wifi connection. Of course enabling the uptime sensor required resetting the uptime, so I'll need to monitor for a little while. Stay tuned!
  • Added a Home Assistant sensor to the desk lights to monitor the status of the motion sensor on my desk. This is a new feature added in June and it's pretty sweet. Previously I had created an automation in Home Assistant to turn on just the lights under my monitor when motion is detected. The lights over the work area only turned on when the switch is toggled. But I was occasionally having conflicts between the switch activation and motion activation. Now that the ESP8266 knows the status of the motion detector, it can properly manage the lights in all circumstances and I can get rid of the automation in home assistant.

Worked on my XOR project some more. First I reorganized the breadboard a little and also replaced the resistors which were sort of random and used the same resistor values that the HackerBoxes PCBs use - 10K for the transistor bases and 1K for the LED current limiter. It looked nice and compact.

No alt text found for this picture. Please email prijks@esgeroth.org to complain.

However, this had the unfortunate side effect of making it so the LED didn't fully turn off when both buttons were pressed, it just got kind of dim. I was able to fix this by changing the base resistors to 1K resistors, but that felt wrong. So I read up a bit on NPN transistors. And I think one issue with my circuit is that the load is connected to the emitters of two of the transistors, whereas NPN transistors generally like the load on their collectors. So I redesigned my circuit.

No alt text found for this picture. Please email prijks@esgeroth.org to complain.

And redid the breadboard, changing the base resistors back to 10K resistors. And it works! Also, I think this might be the happiest I've been with a breadboard layout I've done. At least from an aesthetic perspective.

No alt text found for this picture. Please email prijks@esgeroth.org to complain.

I enjoyed spending a little time playing with the PCB layout in KiCad. This is not a design I would send anywhere since I still need to learn a few more things, but it was fun practice getting to know the tool.

No alt text found for this picture. Please email prijks@esgeroth.org to complain.

No alt text found for this picture. Please email prijks@esgeroth.org to complain.


My evening routine lately has been:

  • Get JB to sleep
  • Chat with Jamie a bit
  • Consider going to sleep
  • Go downstairs and make a chamomille tea instead
  • Stay up later than intended playing with stuff
  • Stay up even later writing a log entry about it

I have been drinking less lately which I think helps me get away more with staying up late. Pete's Log is seeing its most active period in about a decade. I'm on a 15 month streak and closing in on 100 entries for the year and it's only July.

A few weeks ago I came across an article that included a quote that's stuck with me: "Little frustrations mentally accumulate in a way that little victories do not."

It made me realize that I need to keep piling up the little victories because their effect is not as cumulative as I would like. It's been strangely motivational. I know my little projects are pretty basic, but I enjoy the little dopamine hits they give me, and realizing that that mental reward is transient has helped me keep at it more. Knowing I need to keep accomplishing little victories in order to keep getting rewarded. I don't know.

I guess I'm trying to capture the mental state of 42 year old me for 60-something year old me to enjoy the way I (mostly) enjoy looking back at 20-something year old me.