Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Seifon opened this issue Mar 17, 2024 · 7 comments
Closed

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

Seifon opened this issue Mar 17, 2024 · 7 comments
Labels
todo Todo list joined, possible to implement

Comments

@Seifon
Copy link

Seifon commented Mar 17, 2024

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

比如我的设备是:

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

@Issues-translate-bot
Copy link

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
Copy link
Owner

已添加至TODO

@lollipopkit lollipopkit added the todo Todo list joined, possible to implement label Mar 18, 2024
@Issues-translate-bot
Copy link

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


Added to TODO

lollipopkit added a commit that referenced this issue Mar 26, 2024
@Seifon
Copy link
Author

Seifon commented Apr 1, 2024

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
Copy link

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
Copy link
Owner

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

@Issues-translate-bot
Copy link

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


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo Todo list joined, possible to implement
Projects
None yet
Development

No branches or pull requests

3 participants