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

cputemp returns error #83

Closed
1ns1d3r opened this issue Apr 25, 2018 · 1 comment
Closed

cputemp returns error #83

1ns1d3r opened this issue Apr 25, 2018 · 1 comment

Comments

@1ns1d3r
Copy link

1ns1d3r commented Apr 25, 2018

Hi, when trying to add {cputemp} to my system I just receive the following error:

non-empty format string passed to object.__format__

My customized output is:

CPU {cpu} RAM: {mem} CPU Temp: {cputemp}

I'm using Elementary OS Loki, based on Ubuntu Xenial 16.04

Everything working fine, until add {cputemp} to the output then I receive that error

Hope somebody help me with this

Thanks

PD. with other monitors such as Psensors I can see CPU Temp without any issue, but I don't want to use another monitor in panel.

My CPU is an Intel Core i5 750 1st gen

@1ns1d3r 1ns1d3r closed this as completed Apr 25, 2018
@1ns1d3r
Copy link
Author

1ns1d3r commented Apr 25, 2018

I just made a custom shell script which contains

TEM=$(tlp-stat -t | awk '/CPU temp/ {print $4}'); if [ $TEM -ge 60 ]; then echo $TEM; killall notify-osd; notify-send "WARNING - Rising Temperature" "$TEM ℃"; else echo $TEM; fi

saving this code in a executable shell script and calling it from indicator-sysmonitor.

source: #39 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant