Topuino_Hardware/README.md

24 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Topuino
[English](doc/README_en.md)
[用户手册](doc/user_manual.md)
## 什么是 Topuino
Topuino 是一个桌面小摆件,可以实现通用服务器或计算机的数据监控,包括 CPU 占用、RAM 占用、两个硬盘的可用空间、硬盘读写速度、网络 IO 速率。
![](https://img.vvzero.com/blog/Topuino-the-wonderful-Knickknack-for-server-monitoring/1.png)
## 为什么叫 Topuino
在 Linux 系列服务器上,通常使用 top 命令查看 CPU 内存占用,本项目最初的设想也是将 top 命令实物化,这就是 Topuino 中 Top 的由来。
在选型的时候,为了兼顾开发效率和成本,项目选用了大名鼎鼎的 ESP8266 单片机,配合了 Arduino 开发框架Arduino 则是 Topuino 中 uino 的由来。
## Topuino 的工作原理
- 服务器部分:主站使用了 Flask维护一个数据库保存着从站被监控服务器UUID 与运行参数的映射关系(实际上现在是用 python 的字典简单实现的)。主站接收从站的运行数据,并向 Topuino 回传数据;
- 服务器从站采用 python 的 psutil 库,获取所有的运行数据;
- Topuino 硬件部分使用了 ESP-12F 作为 MCU显示采用 LED 整列和数码管,显示驱动是 TM1638 芯片。