支持用lua编写TrafficMonitor插件 #1789
compilelife
started this conversation in
Ideas
Replies: 1 comment
-
|
Lua插件非常棒,我已经在TrafficMonitor插件下载页面添加了Lua插件的相关链接,希望能够被更多人使用 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
c++写插件有门槛,我实现了个TrafficMontorLuaPlugin,支持用lua写插件。
目前只支持文本渲染,自定义绘图这个lua支持起来有点繁琐,用的人多再考虑。不过我让lua返回的文本能用
[smile]这样的标记来在文本中显示类emoji的图标来看看两个例子吧:调用nvidia-smi显示显卡使用率, 实时显示今天挣了多少钱
下面是”调用nvidia-smi显示显卡使用率“的完整代码:
如果感兴趣的人多,我将继续优化TrafficMontorLuaPlugin
Beta Was this translation helpful? Give feedback.
All reactions