In CONKY, What indicates "Temperature" value? How it could be changed?

Asked by Navin Talati

Sir,
I have installed Conky as per the guidance from :
http://www.unixmen.com/configure-conky-lua-in...

it is a very good law latice and light-weight system moitor.
There appears some temperature figure under HOME.
The temperature value appearing is so low (i.e. 13, 15, 18, 23 like that) that it could neither be of Room Temp. (which should be more then 25 degree in India now a days), nor of hdd (as it should be more then about 39 to 40 degree).

My questions are:-
(1). What "HOME" means? Is it a "/home"? Can it be changed? If YES, how?
(2). Temperature value in "degree Celcious" idicates it of what? Room Temp.? HDD Temp.? or Of anything else?
(3). Could temperature value be set/adjusted/changed? How?

Thanks to you all in anticipation.
Navin Talati / 10-09-2013

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu conky Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

According to http://conky.sourceforge.net/docs.html there are different temperature values that you can display, among others
acpitemp - ACPI temperature in C.
adt746xcpu - CPU temperature from therm_adt746x
hddtemp (dev) - Displays temperature of a selected hard disk drive ...
smapi_bat_temp INDEX - when using smapi, display the current temperature of the battery ...
weather URI locID data_type (interval_in_minutes) - Download, parse and display METAR data. (including outside air temperature of the selected location)

If you have used the default configuration as delivered in the link you have provided, the temperature shown most probably is the air temperature of the Banja Luka Airport (LQBK) - I guess this is not the location that you are interested in.

I assume you have to reconfigure conky by modifying (editing) the .conkyrc file. Replace LQBK by the ICAO code of an airport near to your location - see https://www.notams.faa.gov/common/icao/ - but make sure to select a location for that http://weather.noaa.gov/ delivers values.

Potental candidate values for India:
<OPTION VALUE="VAAH"> Ahmadabad
<OPTION VALUE="VIAR"> Amritsar
<OPTION VALUE="VOBG"> Bangalore / Hindustan
<OPTION VALUE="VABB"> Bombay / Santacruz
<OPTION VALUE="VECC"> Calcutta / Dum Dum
<OPTION VALUE="VEGT"> Gauhati
<OPTION VALUE="VOHY"> Hyderabad Airport
<OPTION VALUE="VIJP"> Jaipur / Sanganer
<OPTION VALUE="VILK"> Lucknow / Amausi
<OPTION VALUE="VOMM"> Madras / Minambakkam
<OPTION VALUE="VANP"> Nagpur Sonegaon
<OPTION VALUE="VIDP"> New Delhi / Palam
<OPTION VALUE="VEPT"> Patna
<OPTION VALUE="VOTV"> Thiruvananthapuram
<OPTION VALUE="VOTR"> Tiruchchirapalli
<OPTION VALUE="VIBN"> Varanasi / Babatpur

Revision history for this message
Navin Talati (n-m-talati) said :
#2

Sir,

I tried by replacing LQBK with ICAO code of Ahmedabad "VAAH" but could not get the result. On the contrary temperature figure vanished. I think there may be requirement of changing something else too. Please guide me further.

I am herewith giving you the copy of ".conkyrc" file's content which is as under:
======================================================
# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment tr
gap_x 35
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius

default_color FFFFFF

# Lua Load #
lua_load ~/.conky/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${voffset 8}${color FF6600}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font caviar dreams:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color FF6600}${hr}
${voffset 140}${font caviar dreams:size=10}${alignr}HOME${font}
${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather http://weather.noaa.gov/weather/current/LQBK.html tempetature} °C${font}
${image ~/.conky/new-ubuntu-logo.png -p 64,125 -s 70x20}

${color FFFFFF}${goto 25}${voffset 35}${cpu cpu0}%
${color FF6600}${goto 25}CPU
${color FFFFFF}${goto 50}${voffset 23}${memperc}%
${color FF6600}${goto 50}RAM
${color FFFFFF}${goto 75}${voffset 23}${swapperc}%
${color FF6600}${goto 75}Swap
${color FFFFFF}${goto 100}${voffset 23}${fs_used_perc /}%
${color FF6600}${goto 100}Disk
${color FFFFFF}${goto 125}${voffset 25}${downspeed eth0}
${color FFFFFF}${goto 125}${upspeed eth0}
${color FF6600}${goto 125}Net

${color FFFFFF}${font caviar dreams:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font caviar dreams:size=8}Processes: ${processes}
${color FFFFFF}${font caviar dreams:size=8}Running: ${running_processes}

${color FF6600}${font caviar dreams:size=8}${alignr}${nodename}
${color FF6600}${font caviar dreams:size=8}${alignr}${pre_exec cat /etc/issue.net} $machine
${color FF6600}${font caviar dreams:size=8}${alignr}Kernel: ${kernel}
===============================================

Thanks.
Navin Talati / 27-09-2013

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

Apparently you botched up the config file. As far as I can see the part with respect to temperature in the original was

"
${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LQBK temperature temperature 30} °C${font}
"

And what did you make out of it?

"
${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather http://weather.noaa.gov/weather/current/LQBK.html tempetature} °C${font}
"

You have to revert to the original text, and just replace the string LQBK by VAAH, and nothing else, especially _not_ modify the URL, not mistype "temperature", not remove parameters...

Revision history for this message
Navin Talati (n-m-talati) said :
#4

Sir,
Thanks a lot for indicating my mistake.
I reestablished the content in the .conkyrc file and altered only by placing VAAH at the place of LQBK.
Now it shows the temperature of AHMEDABAD (Gujarat State, India).
Thanks for the valuable guidance.
Navin Talati /02-09-2013

Revision history for this message
Navin Talati (n-m-talati) said :
#5

Thanks Manfred Hampl, that solved my question.