Help needed getting SSD temperature displayed

Forum rules
Before you post please read how to get help
User avatar
Level 13
Level 13
Posts: 4931
Joined: Tue Jul 05, 2016 1:20 pm

Re: Help needed getting SSD temperature displayed

Post by trytip »

how many drives do you have? my conky code involves a bit of hacking and is for the old conky. hope it works for you?
sudo hddtemp /dev/sd[a-e] <<< temperatures of a bunch of drivers at once
sudo hddtemp /dev/sda temperature of one drive
but in the code you need one line per drive since it does use the cut feature and all drives have different names and different characters
the code for conky is : ${execi 300 sudo hddtemp /dev/sda | cut -c24-25}° this will get temperature and cut it to commit everything except the temperature but now you have to figure out where the cut should be

IMPORTANT: you will need to give special rights to allow the use of hddtemp with no password
%users ALL=NOPASSWD: /usr/sbin/hddtemp <<< etc/sudoers/ ADD
Post Reply

Return to “Compiz, Conky, Docks, & Widgets”