lollipopkit / flutter_server_box

ServerBox - server status & toolbox app using Flutter
GNU General Public License v3.0
3.71k stars 239 forks source link

希望能自定义获取温度的命令 #313

Closed Seifon closed 1 month ago

Seifon commented 3 months ago

因为系统有差异,取温度的命令不一样

比如我的设备是:

grep Tsensor /proc/msp/pm_cpu | awk '{print $4}'

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Hope to customize the command to get the temperature

Because the systems are different, the commands to get the temperature are different.

For example, my device is:

grep Tsensor /proc/msp/pm_cpu | awk '{print $4}'

lollipopkit commented 3 months ago

已添加至TODO

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Added to TODO

Seifon commented 3 months ago

IMG_6698

感谢作者采纳建议,现在自定义还有点小问题,就是经常会显示一串很长的错误,一会正常,一会异常。通过ssh执行命令很多次都没问题额,换了free -h命令也会经常显示错误,说明跟命令无关额,看起来像是某些gpu指令找不到导致的报错,望作者能够修复,是不是做下try catch就好了。感谢🙏

命令如下: {"server_card_top_right":"grep Tsensor /proc/msp/pm_cpu | awk '{print $4}' | sed 's/$/°C/'"}

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


![Uploading IMG_6698.jpeg…]()

Thanks to the author for taking the suggestion. There is still a small problem with the customization. It often displays a long series of errors. Sometimes it is normal and sometimes it is abnormal. There is no problem when executing it through ssh many times. Changing free -h will often display errors, indicating that it has nothing to do with the command.

lollipopkit commented 1 month ago

忘记回复了,应该是没有这个问题了吗?

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I forgot to reply, maybe this problem doesn’t exist?