Curl vs. requests

Here is an interesting development of the Geekhouse project. I wanted to add a simple 16x2 LCD display to the server. I connected the display to the I2C pins and added the code to serve the appropriate URL (/lcd?text=...). I started testing it with cURL and realized that I had to use the --url-query flag to pass any text with spaces, like this: curl -X POST --url-query 'text="Hello world"' http://192.168.1.130/lcd It worked fine with the curl command, and the text was displayed on the LCD. ...

2024-12-30 · 2 min · 385 words · Pavel Anni

From Alexa to LLM: The Geekhouse Story

Previously It all started several years ago when I thought “Can I use Alexa to manage physical devices?” I created a simple demo project to show it to my amateur radio friends. You would say, “Alexa, turn my antenna 90 degrees,” and my model antenna would magically turn. It was a fun weekend project that used a Raspberry Pi, a stepper motor, and a miniature model antenna. I published it on YouTube, if you’re curious. ...

2024-12-23 · 9 min · 1846 words · Pavel Anni

Control panel: A TinyGo Adventure

You know how it all started? I was browsing Amazon one day (as you do) and came across this set of color 7-segment LED displays. Instantly, I thought of building colorful time displays with knobs to control them. This project combines two of my favorite things — tech tinkering and fun. I used two Raspberry Pi Picos, some 7-segment LED displays, rotary encoders, and (of course) Go! And before you ask — yes, it does something cool, and no, I haven’t explored all its possibilities just yet. ...

2024-10-07 · 6 min · 1163 words · Pavel Anni

How to monitor SSH logins?

I noticed that a friend of mine routinely logs into his lab servers via SSH using the root username and password. “Why do you do that?” I asked. “What’s wrong with that?” he said. “I know, I know, it’s not a good security practice, but I’m used to it. It’s just a lab server; what can go wrong? And also, all other ways are not that easy.” “‘What can go wrong?’” I said, “The famous last words!” “I’m not going to tell you horror stories. I just think that what you consider ’the most convenient way’ is not that convenient. There are other ways.” ...

2023-04-27 · 14 min · 2959 words · Pavel Anni