You are not logged in.
Hello guy
Help, I need somebody
Help, not just anybody
Help,...
i'm trying to made any weather conky with my free API .
I was able to made some raw files It works so far here
${execi 100 cat ~/.conky/Alfirk/rawhours | jq -r '.list[0].visibility'}
here rawhours
{
"cod": "200",
"message": 0,
"cnt": 5,
"list": [
{
"dt": 1656514800,
"main": {
"temp": 28.63,
"feels_like": 28.01,
"temp_min": 27.43,
"temp_max": 28.63,
"pressure": 1014,
"sea_level": 1014,
"grnd_level": 989,
"humidity": 37,
"temp_kf": 1.2
},
"weather": [
{
"id": 800,
"main": "Clear",
"description": "ciel dégagé",
"icon": "01d"
}
],
"clouds": {
"all": 0
},
"wind": {
"speed": 1.29,
"deg": 257,
"gust": 2.6
},
"visibility": 10000,
"pop": 0,
"sys": {
"pod": "d"
},
"dt_txt": "2022-06-29 15:00:00"
},
↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑founded to conky ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ no founded to conky ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
{
"dt": 1656525600,
"main": {
"temp": 27.37,
"feels_like": 27.26,
"temp_min": 24.85,
"temp_max": 27.37,
"pressure": 1013,
"sea_level": 1013,
"grnd_level": 988,
"humidity": 42,
"temp_kf": 2.52
},
"weather": [
{
"id": 800,
"main": "Clear",
"description": "ciel dégagé",
"icon": "01d"
}
],
"clouds": {
"all": 3
},
"wind": {
"speed": 1.17,
"deg": 241,
"gust": 3.05
},
"visibility": 10000,
"pop": 0,
"sys": {
"pod": "d"
},
"dt_txt": "2022-06-29 18:00:00"
},
{
"dt": 1656536400,
"main": {
"temp": 22.53,
"feels_like": 22.27,
"temp_min": 19.48,
"temp_max": 22.53,
"pressure": 1013,
"sea_level": 1013,
"grnd_level": 989,
"humidity": 55,
"temp_kf": 3.05
},
"weather": [
{
"id": 802,
"main": "Clouds",
"description": "partiellement nuageux",
"icon": "03n"
}
],
"clouds": {
"all": 39
},
"wind": {
"speed": 1.07,
"deg": 294,
"gust": 1.4
},
"visibility": 10000,
"pop": 0,
"sys": {
"pod": "n"
},
"dt_txt": "2022-06-29 21:00:00"
},
{
"dt": 1656547200,
"main": {
"temp": 15.82,
"feels_like": 15.55,
"temp_min": 15.82,
"temp_max": 15.82,
"pressure": 1013,
"sea_level": 1013,
"grnd_level": 988,
"humidity": 80,
"temp_kf": 0
},
"weather": [
{
"id": 802,
"main": "Clouds",
"description": "partiellement nuageux",
"icon": "03n"
}
],
"clouds": {
"all": 33
},
"wind": {
"speed": 0.88,
"deg": 31,
"gust": 0.94
},
"visibility": 10000,
"pop": 0,
"sys": {
"pod": "n"
},
"dt_txt": "2022-06-30 00:00:00"
},
{
"dt": 1656558000,
"main": {
"temp": 14.57,
"feels_like": 14.35,
"temp_min": 14.57,
"temp_max": 14.57,
"pressure": 1012,
"sea_level": 1012,
"grnd_level": 988,
"humidity": 87,
"temp_kf": 0
},
"weather": [
{
"id": 802,
"main": "Clouds",
"description": "partiellement nuageux",
"icon": "03n"
}
],
"clouds": {
"all": 41
},
"wind": {
"speed": 0.94,
"deg": 80,
"gust": 0.95
},
"visibility": 10000,
"pop": 0,
"sys": {
"pod": "n"
},
"dt_txt": "2022-06-30 03:00:00"
}
],
"city": {
"id": 2975964,
"name": "Sarreguemines",
"coord": {
"lat": 49.11,
"lon": 7.0675
},
"country": "FR",
"population": 0,
"timezone": 7200,
"sunrise": 1656473385,
"sunset": 1656531619
}
}
here conkyrc for learning
conky.config = {
-- conky configuration
-- set to yes if you want Conky to be forked in the background
background = true,
-- Use Xft?
use_xft = true,
font = 'Liberation Sans:size=9',
xftalpha = 1,
-- Print everything to console?
out_to_console = false,
-- mail spool
--mail_spool $MAIL
-- Update interval in seconds
update_interval = 1.0,
-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
total_run_times = 0,
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'override',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- Draw shades?
draw_shades = true,
-- Draw outlines?
draw_outline = true,
-- Draw borders around text
draw_borders = false,
draw_graph_borders = false,
-- Stippled borders?
stippled_borders = 0,
-- border margins
border_inner_margin = 0,
-- border width
border_width = 1,
-- Default colors and also border colors
default_color = 'white',
default_shade_color = 'black',
default_outline_color = 'black',
-- Minimum size of text area
-- minimum_width = 72, minimum_height = 72,
-- maximum_width = 172,
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_left',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
-- same thing as passing -x at command line
gap_x = 100,
gap_y = 50,
-- Subtract file system buffers from used memory?
no_buffers = true,
-- set to yes if you want all text to be in uppercase
uppercase = false,
-- number of cpu samples to average
-- set to 1 to disable averaging
cpu_avg_samples = 1,
-- number of net samples to average
-- set to 1 to disable averaging
net_avg_samples = 1,
-- Force UTF8? note that UTF8 support required XFT
override_utf8_locale = true,
-- Add spaces to keep things from moving about? This only affects certain objects.
use_spacer = 'none',
-- grey
default_color = '#DDDDDD',
-- Orange
color1 = '#FFA300',
-- Green
color2 = '#77B753',
text_buffer_size = 4096,
own_window_title = 'conkyrc',
-- variable is given either in format $variable or in ${variable}. Latter
-- allows characters right after the variable and must be used in network
-- stuff because of an argument
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
heure
H ${execi 300 date -d "@$(jq -r .list[0].dt ~/.conky/Alfirk/rawhours)" +%H:%M}
T ${execi 100 cat ~/.conky/Alfirk/rawhours | jq -r '.list[0].main.temp'} °
R ${execi 100 cat ~/.conky/Alfirk/rawhours | jq -r '.list[0].main.feels_like'} °
C ${execi 100 cat ~/.conky/Alfirk/rawhours | jq -r '.list[0].weather[0].description'} °
${execi 100 cat ~/.conky/Alfirk/rawhours | jq -r '.list[0].clouds.all'}
${execi 100 cat ~/.conky/Alfirk/rawhours | jq -r '.list[0].visibility'}
]];
@+
Last edited by loutch (2022-06-30 06:38:11)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Re
i founded it must just change the .list number like this .list[1].temp ect.
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline