Menu

A Live PC Monitor With a C Engine, Flask and CrewAI: The Code, Layer by Layer
πŸ“°

A Live PC Monitor With a C Engine, Flask and CrewAI: The Code, Layer by Layer

DEV Community: flaskΒ·Yunus Emre GΓΌzelΒ·1 day ago
#40GZnYDw
#devtoflask#devto#dev#health#report
Long article (1356 words) β€” no AI summary yet.
Reading 0:00
15s threshold

PC Pulse shows you how your computer is doing, live, in the browser. You get cards for CPU, memory, disk and network. You get a chart of the last two minutes of CPU, a health verdict with advice, and a written health report from an AI crew. There are four small parts, and each one uses the language that fits its job. The whole project is on GitHub: PrimeEmre/System-Monitor-Dashboard--blog .

Here's the code, one layer at a time. If you want every file in full, with each block explained, it's in the AI projects in C guide .

The Four Layers

Layer Technology Job

Brain C ( engine/engine.c ) Turns numbers into a health level and advice, and formats the uptime

Messenger Python, Flask, psutil ( server.py ) Reads the hardware, runs the C program, serves the page and the JSON

Interface HTML, CSS, JavaScript Draws the cards, the chart and the report

Analyst CrewAI ( ai_crew/crew_report.py ) Asks a crew of three agents for a written health report

The folder looks like this:

System-Monitor-Dashboard--blog/ β”œβ”€β”€β€¦

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.