# GoMonitor - 电脑状态监测副屏小工具 **Repository Path**: pyddot_river/gomonitor ## Basic Information - **Project Name**: GoMonitor - 电脑状态监测副屏小工具 - **Description**: 一个简单的小工具,可以将废旧手机利用起来,作为电脑的副屏 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-02-01 - **Last Updated**: 2025-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GoMonitor ## 介绍 Golang实现的电脑状态监测小工具,主要用于将废旧手机重新利用作为电脑的副屏。 ## 软件架构 为了获得更好的兼容性,软件使用B/S架构。软件启动时,开启接口服务的同时,会启动一个Web站点,浏览器访问该站点即可查看电脑状态。 ## 使用说明 1. 编译 ``` go build -o monitor ``` 2. 运行 ``` ./monitor --port 9529 ``` 运行成功后,软件会在命令行输出访问地址及其二维码,浏览器上输入该网址或扫描二维码即可访问。若不指定端口,则默认使用9527; 注意,在windows下运行时,需要使用管理员权限,否则无法获取温度信息。 ## 开发说明 代码结构 |--根目录 |--README.md |-- go.mod |-- go.sum |-- main.go 主程序入口 |-- handlers 接口实现 | |-- status.go | |-- sysinfo.go |-- html 前端页面 | |-- index.html |-- utils 工具方法 |-- api.go |-- port.go 其中,前端代码使用[天工AI](https://chat.tiangong.cn/)辅助实现。 运行代码: ``` go run main.go --port 9529 ``` ## 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request