Project
Pepito App
C++ SSE listener for the Pépito API that reacts to cat in/out events.
RoleSystems + IoT
Date11-10-2024
Tech
C++SSEMesonnlohmann-json
Highlights
- Multithreaded C++ SSE client that reacts to cat in/out events
- JSON parsing with nlohmann-json; designed as an automation base
- Meson/Ninja build plus VS Code launch config for quick runs
Overview
A multithreaded C++ app that listens to server-sent events (SSE) from the Pépito API and parses messages about Pépito the cat. It serves as a base to trigger any automation when the cat goes in or out.

Highlights
- SSE client that consumes the Pépito API feed.
- JSON parsing via nlohmann-json to interpret cat events.
- Multithreaded processing so the listener stays responsive.
- Meson/Ninja project; easy to extend with your own automations (e.g., blink lights when Pépito exits/enters).
Notes
- Requires Meson, Ninja, and nlohmann-json (e.g.,
pacman -S meson nlohmann-json base-develon Arch). - Provided launch config (F5 in VS Code) to build and run quickly.
- MIT licensed; extend as you like.