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

[Feature Request] Tag for bar|graph|gauge for use in execp #904

Closed
Microcrap opened this issue Nov 5, 2019 · 6 comments
Closed

[Feature Request] Tag for bar|graph|gauge for use in execp #904

Microcrap opened this issue Nov 5, 2019 · 6 comments
Labels
enhancement Issue that suggests an enhancement Stale Issue that requires attention because it hasn't been updated for over a year

Comments

@Microcrap
Copy link

Microcrap commented Nov 5, 2019

If I'm wrong, correct me, but :
For a remote server whose amount of RAM memory used is to be displayed in text AND with a bar: you must run a curl command for the text in execp AND a curl command in execbar.
It would be much more ecological and economical to be able to add something similar to echo "\${bar value=$usedRam max=$maxRam}"; directly in the exec command. With this method one curl is suffisant and don't need write anything in a tmp_file.

PS : thanks dev for conky, it's really better than android widget

@Microcrap Microcrap changed the title [Feature Request] Tag for bar|graph for use in execp [Feature Request] Tag for bar|graph|gauge for use in execp Nov 5, 2019
@lasers lasers added the enhancement Issue that suggests an enhancement label Nov 5, 2019
@lasers
Copy link
Contributor

lasers commented Nov 5, 2019

I'm almost certain we can achieve this with execp + custom script. Also, "much more ecological and economical".

@lasers
Copy link
Contributor

lasers commented Nov 5, 2019

See #903.

I used {image there. You should be able to print execbar, execgraph, execgauge instead with correct values. Writing scripts is much easier than chaining shell commands.

You can print many lines as you want... all in one script too.

@Microcrap
Copy link
Author

Microcrap commented Nov 6, 2019

Sorry, i don't really understand ^^
I my case i download all remote infos with one curl and apply some grep for displaying (or not if null) the infos.
If you want see : https://gitlab.com/voxdemonix/conky/blob/master/conky_server_infos/remote_monitoring.bash

@lasers
Copy link
Contributor

lasers commented Nov 6, 2019

I explained that you should do this in Python or any other language instead of bunch of shell commands... to avoid several calls like... echo, tr, grep, sed, awk, head, cut, etc... and to replace your curl with https://curl.trillworks.com/.

I don't know what data you're working with. If that's json, then it would be more easier too.

I imagine you'd have to practice learning + converting. Python is a cool language to learn tho.

Otherwise, keep with it as-is. This is just my suggestion and is no way a correct answer.

@github-actions
Copy link

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

@github-actions github-actions bot added the Stale Issue that requires attention because it hasn't been updated for over a year label Apr 30, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 30 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue that suggests an enhancement Stale Issue that requires attention because it hasn't been updated for over a year
Projects
None yet
Development

No branches or pull requests

2 participants