Telegram

Milkdo: the grocery bot Yrenia and I keep fixing

Yrenia and I use a Telegram bot called Milkdo to maintain our Todoist grocery list. We can send a message or a voice note in our group instead of opening Todoist to enter each item. It’s a small tool we actually use, and we keep fixing the parts that annoy us.

I first had a go at this myself in 2024, cobbling the code together by hand with some help from GitHub Copilot autocomplete. Much later, I brought it forward with OpenAI Codex doing substantial refactoring, bug investigation, implementation and tests under my direction. Codex also helped draft this post. This is a codebase that went from lightly AI-assisted to heavily agent-refactored over more than two years of use and maintenance.

I don’t think of Milkdo as a “claw.” It’s our grocery bot, with a specific list and a small set of operations. The point is to make maintaining that list less annoying for the two of us.

My first attempt, back in 2024

The first commit was on May 8, 2024. The codebase started as Dialoh, a bot for conversations with Ukrainian-speaking friends. I wanted to deploy it on Cloudflare and use its serverless services with Telegram. On May 9 I was working through webhooks, voice messages and transcription; by May 12, there was a working Durable Object integration to keep conversation history.

[... 746 words]

12:00 am / Telegram , Todoist , Cloudflare , Automation , Github copilot , Codex , Ai assisted

Talky Pet Watcher, a cat watching AI

Cat Watch

Github Project: talky_pet_watcher

I’m allergic to cats 😢. But a friend asked me to watch their cat. My family was more than willing to help but to be safe, I wanted to also monitor the cat to make sure she didn’t get into any shenanigans that were too much.

With some cheap TP-Link Tapo cameras, I set up a system to watch the cat remotely and ensure she was safe while I could not be next to her. It’s a Telegram bot that also sends me a message whenever the cat is doing something interesting.

It watches multiple cameras and tries to aggregate the data to provide insights on the cat’s behavior.

Here’s the project description:

Talky Pet Watcher is a tool to watch a series of ONVIF webcams and their streams. It captures video clips, uploads them to Google AI for processing, and uses a generative model to create captions and identify relevant clips. The results are then delivered to a Telegram channel. This project is designed to help pet owners keep an eye on their pets and share interesting moments with friends.

This was slapped together in a few days, as I only watched the cat for two weeks.

I was also interested in Google Gemini and how cheap they claimed to be for analyzing video. I figured that this would be a good way to test it out.

What went well:

  • The system was able to capture interesting moments effectively.
  • It was able to concantate multiple camera’s POV to provide interesting views.
  • The cameras were cheap!
  • Putting the results on Telegram was a good way to share the results with the cat’s owner and friends.

What did not go well (and there are many!):

  • I did not implement history, so the system basically reported the same thing over and over again.
  • Getting reliable clips from multiple cameras when motion was detected was iffy due to the TP-Link Tapo camera’s iffy web servers. It would stall and halt a lot.
  • The Google Gemini AI could only analyze video clips at 1FPS. For an agile kitten, this can sometimes make wrong assumptions about what the cat is doing.
  • Implementation wise, bun was very crashy and I had to restart it a lot.
  • The connection to the camera also had to be restarted a lot.

If I had to do it again:

  • Use something that can pull from a NVR by relative timestamps. There was some Rust NVR but it was too complicated for me to set up in the small amount of time I had.
  • Implement a history system and maybe some memory bank system.
  • And so so much more! 😅

6:08 am / Catte , Google gemini , Vision , Telegram