News for hackers. Stuff that matters.

harry247

Re:Did we need RTOS for activity trackers? on Thursday January 09, 2025 @09:21AM (#42645803)
We developed the RTOS (Real-Time Operating System) for our activity trackers using the Zephyr kernel and its libraries.

In this article, I briefly shared a short summary of my experience of choosing different tech stacks for the firmware development of activity trackers.

Happy Reading!

Re:Show HN: Hue Logs – A Minimal Log Monitoring Tool on Monday December 23, 2024 @12:05PM (#42495858)
updated UI (better look now :) )
Re:Show HN: Hue Logs – A Minimal Log Monitoring Tool on Sunday December 22, 2024 @01:43PM (#42488219)
thanks for suggesting @yahasolutions. Dozzle looks good, and lightweight too. I will explore more

Show HN: Hue Logs – A Minimal Log Monitoring Tool

https://github.com/singh47/huelogs

Hey Hackers,I was building multiple projects lately, and integrating logging was way too much for me. Managing self hosted ELK stack, or using existing log monitoring services (running their agent was consuming hell of resources on my tiny servers). It took me a day to code my own logging server, and client for python projects (serving as python packages - pypi), named it HueLogs.Sharing with...

( Read More... | 4 comments | 2 points | on HN )
Re:We saved battery in our ESP32 WiFi circuits (TCP vs UDP) on Thursday December 19, 2024 @02:25PM (#42464851)
I feel like this is a finding/experience worth sharing. We ran into battery problem when developing our MVP using esp32 c3 MCU. ESP32 have high current consumption during network calls and we resolved this problem by avoiding TCP protocol in our network calls (Moving away from REST API calls).For Details, I am linking full article here: https://khalsalabs.com/iot-101-minimizing-esp32-wifi-battery...

Hope you all enjoy!

Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @06:10PM (#38156705)
Sat Sri Akaal
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @06:09PM (#38156694)
Just did it !! Enabling 10m caching on nginx now (It is good atleast now the link will open from HN homepage). Thanks for suggesting this, I should have done it before
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @05:48PM (#38156491)
yes, I have a static IP and port forwarded. It IP can be mapped to website (dns name) via namecheap and godaddy like services. This is enough to put it on internet

In this setup I added a nginx in between (doesn't enable cache yet) for load balancing.

Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @05:41PM (#38156430)
Its good idea, I never tried or probably didn't know much about nginx caching. Will Nginx cache webpage and serve directly without hitting much the esp32 server. I am going to read on it now
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @05:37PM (#38156398)
nope, no CDN. It has NGINX reverse proxy
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @05:35PM (#38156381)
Its still a single esp32 s2 mini. Its Nginx that is saving this little mcu !!
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @03:55PM (#38155551)
yes, you got it right its due to that odd message web browsers show for non-https websites. This HTTPS/TLS has been added using nginx on different server, also to support some load. The website is still under lot of traffic, however nginx is doing good on its part.
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @03:27PM (#38155305)
I think it will drop most of the traffic, as I posted in load test results. The traffic coming to this is crazy. I can see nginx access logs and requests are not stopping!!
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @03:21PM (#38155239)
it was too much traffic to handle for this little poor chip
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @03:17PM (#38155192)
I did some load tests before postings, simulate 100 users at a time. It was serving only 47 of them: https://bashify.io/images/tNg4SB https://bashify.io/images/7OtLGf
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @03:12PM (#38155144)
Lol! this is true after posting on HN
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @03:10PM (#38155126)
thanks !! yes it behind nginx
Re:Website is hosted on ESP32 ($3 chip) on Sunday November 05, 2023 @03:04PM (#38155063)
OMG!! I didn't expect that I am getting that much traffic from HN. I put this besides nginx but still its too much traffic to process for Esp32 S2 chip. Lol
Another way someone told me is to promote things in the forum comments, like this website I hosted using esp32. I am posting here: https://esp.khalsalabs.com

For few days I will test commenting method (until this goes down due to traffic flood)