├── HWLineChart ├── @Resources │ ├── Fonts │ │ ├── HarmonyOS_Sans_Black.ttf │ │ ├── HarmonyOS_Sans_Bold.ttf │ │ ├── HarmonyOS_Sans_Light.ttf │ │ ├── HarmonyOS_Sans_Medium.ttf │ │ ├── HarmonyOS_Sans_Regular.ttf │ │ └── HarmonyOS_Sans_Thin.ttf │ └── Scripts │ │ └── LineChart.lua ├── CPU │ └── CPU.ini ├── GPU │ └── GPU.ini └── ShowReg │ ├── HWiNFORegistryReader.lua │ └── ShowReg.ini ├── LICENSE └── README.md /HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Black.ttf -------------------------------------------------------------------------------- /HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Bold.ttf -------------------------------------------------------------------------------- /HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Light.ttf -------------------------------------------------------------------------------- /HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Medium.ttf -------------------------------------------------------------------------------- /HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Regular.ttf -------------------------------------------------------------------------------- /HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/@Resources/Fonts/HarmonyOS_Sans_Thin.ttf -------------------------------------------------------------------------------- /HWLineChart/@Resources/Scripts/LineChart.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/@Resources/Scripts/LineChart.lua -------------------------------------------------------------------------------- /HWLineChart/CPU/CPU.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/CPU/CPU.ini -------------------------------------------------------------------------------- /HWLineChart/GPU/GPU.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/GPU/GPU.ini -------------------------------------------------------------------------------- /HWLineChart/ShowReg/HWiNFORegistryReader.lua: -------------------------------------------------------------------------------- 1 | -- Based on code provided by raiguard 2 | 3 | function ParseOutput(measureName) 4 | local raw = SKIN:GetMeasure(measureName):GetStringValue() 5 | local fileName = SKIN:GetVariable('CURRENTPATH')..'output.html' 6 | 7 | -- Create document header 8 | local output = 9 | [[ 10 | 11 | 12 | 13 | HWiNFO Registry Reader 14 | 15 | 53 | 54 | 55 |
56 |
57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | ]] 65 | 66 | -- Match over each group as a whole 67 | local match_string = ' Sensor(%d-) .- (.-)\n .- .- (.-)\n .- .- (.-)\n .- .- (.-)\n' 68 | for index, sensor, label, value, value_raw in raw:gmatch(match_string) do 69 | output = output 70 | ..'' 71 | ..'' 72 | ..'' 73 | ..'' 74 | ..'\n' 75 | end 76 | 77 | -- Create document footer 78 | output = output .. '
IndexSensorLabelValueValueRaw
'..index..''..sensor..''..label..''..value..''..value_raw..'

' 79 | 80 | -- Write to the file 81 | local file = io.open(fileName, 'w') 82 | if not file then 83 | print('Error: Unable to open file ' .. fileName) 84 | return 85 | end 86 | file:write(output) 87 | file:close() 88 | 89 | -- Open the page in the browser 90 | SKIN:Bang(fileName) 91 | SKIN:Bang('!DeactivateConfig') 92 | 93 | end 94 | -------------------------------------------------------------------------------- /HWLineChart/ShowReg/ShowReg.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaochengzina/HWLineChart/c6d42c7377d6a5e7af14d4e0ad95ace16df7053c/HWLineChart/ShowReg/ShowReg.ini -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 小城子 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HWLineChart 2 | 一款简洁的交互式硬件信息折线图,仅几十兆大小,资源占用低,可放置在桌面或副屏上,支持触控屏操作。 3 | 4 | 视频教程:https://www.bilibili.com/video/BV1uFXEY3Eo8 5 | --------------------------------------------------------------------------------