You are not logged in.

#3476 2020-06-02 09:05:29

loutch
Member
Registered: 2015-12-12
Posts: 407

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Hello

Work great at me to


@+


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#3477 2020-06-02 10:29:54

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Thanks loutch!


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3478 2020-06-02 16:25:18

unklar
Member
Registered: 2015-10-31
Posts: 1,169

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Teo, 24 hours and no mistakes. You're the best!   big_smile

Offline

#3479 2020-06-02 21:30:07

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

ANNOUNCEMENT

Weather.com has started playing games with cookies and stuff. Replaced wget with curl. Thanks to unklar, S11 and loutch for their feedback.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3480 2020-06-03 19:19:17

loutch
Member
Registered: 2015-12-12
Posts: 407

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Hello

is that right? it work but ...


${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/now |  awk '{print $1}' > $HOME/Weather_com_conky_script/vent}

Last edited by loutch (2020-06-03 19:52:01)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#3481 2020-06-03 21:03:36

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Why, what's the matter with it?
I haven't changed anything in the actual script, I only replaced the wget commands.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3482 2020-06-04 07:42:52

loutch
Member
Registered: 2015-12-12
Posts: 407

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Hello

Théo there is no matter i ad to your script my wind direction part to have any windrose in conky .

I just wanted to know if my command was right or if we could still simplify it.

Capture-d-cran-2020-06-04-09-43-51.png


@+


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#3483 2020-06-04 14:54:07

il.harun
New Member
Registered: 2020-06-04
Posts: 4

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Hello everybody.
A few words about Weather_com_conky_script.
In Ubuntu 1804 Gnome, svg 2 png conversion works like this:
Installed: imagemagick and inkscape librsvg2-bin (https://forums.bunsenlabs.org/viewtopic … 598#p98598)
In Ubuntu 2004 Gnome and Kubuntu 2004, svg 2 png conversion works like this:
Installed: librsvg2-bin
In the script $HOME/Weather_com_conky_script/weather_com   line 165(old):

convert -background none $HOME/Weather_com_conky_script/Forecast_Images/"$n".svg $HOME/Weather_com_conky_script/Forecast_Images/"$n".png

changed to:

rsvg-convert $HOME/Weather_com_conky_script/Forecast_Images/"$n".svg > $HOME/Weather_com_conky_script/Forecast_Images/"$n".png

Archive here:
https://drive.google.com/drive/folders/ … sp=sharing
The $HOME/Weather_com_conky_script/conkyconfig: Conky adaptation from this site.

In the script weather_com_ru - added a block for copying standard images of clouds, wind, moon and a converter of the number of images into letters ConkyWeather.ttf, moon_phases.ttf, ConkyWindNESW.ttf.
In the script: weather_com_en-RU  + changeable paths to weather images

In the script: weather_com_ru-RU  + changeable directory with weather data, my debugger:), curr.cond. icons number

To whom my experiments are interesting, I can add Accuweather, Wunderground.
Errors are possible, since a lot of copy-paste, find-replace
Thanks for the weather scripts and configuration files Conky.

Offline

#3484 2020-06-04 15:30:58

unklar
Member
Registered: 2015-10-31
Posts: 1,169

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

ANNOUNCEMENT

Weather.com has started playing games with cookies and stuff. Replaced wget with curl. Thanks to unklar, S11 and loutch for their feedback.

Glad too early.  mad
Since about 17.00 o'clock the files "now" and "10days" remain empty again.

Teo, they noticed your trick.   sad

Offline

#3485 2020-06-04 17:07:31

unklar
Member
Registered: 2015-10-31
Posts: 1,169

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

@il.harun

Это абсолютно блестяще.
К сожалению, сегодня я не смог успешно его протестировать из-за ошибок Weather.com.

rsvg-convert $HOME/Weather_com_conky_script/Forecast_Images/"$n".svg > $HOME/Weather_com_conky_script/Forecast_Images/"$n".png

Большое спасибо за предоставление обширной коллекции кодов Conky!  devil

Добро пожаловать на Форум   smile

====================
This is absolutely brilliant.
Unfortunately I could not test it successfully yet due to the errors of Weather.com today.

Thank you very much for providing your extensive Conky code collection!

Welcome to the Forum!

Offline

#3486 2020-06-04 20:06:36

il.harun
New Member
Registered: 2020-06-04
Posts: 4

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

unklar thanks спасибо
see посмотри Wunderground_conky_script

TeoBigusGeekus
weather.com script
at     https://weather.com/en-RU/weather/today/l/RSXX0063:1:RS
and at https://weather.com/weather/today/l/aad … 0a6f1b9d9f
now: temperature Fahrenheit   was Celsius
now: 10days_raw   1.3mb       was about 400kb
now: now_raw        1.1mb       was about 400kb
now: hourly_raw     417kb       was about 400kb

10days    no info
now        no info
hourly    have information

site appearance has changed

Offline

#3487 2020-06-04 21:11:25

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

il.harun wrote:

site appearance has changed

Tell me about it...
The script needs some serious changes.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3488 2020-06-05 06:29:59

il.harun
New Member
Registered: 2020-06-04
Posts: 4

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus
https://drive.google.com/drive/folders/ … sp=sharing
new_raw_files_and_screenshort.tar.xz
old_raw_files_and_screenshort.tar.xz

Offline

#3489 2020-06-05 14:33:08

il.harun
New Member
Registered: 2020-06-04
Posts: 4

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Reserve.
  Conky accuw version Conky1.9 and 1.10
run_conky_accuweather.sh launch Conky (need zenity)
$HOME/Accuweather_conky_script/conkyconfig localization attempt script: accuweather_ru (there are errors altogether24_2015 altogether24_2016)
and need a recode converter(iconv is preferable, but I didn’t find the needed command in iconv)
Moongiant_conky_script small Ru localization
Errors are possible

Last edited by il.harun (2020-06-05 14:34:03)

Offline

#3490 2020-06-05 20:53:03

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Don't hold your breath guys, the whole script has to be rewritten.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3491 2020-06-06 06:58:18

unklar
Member
Registered: 2015-10-31
Posts: 1,169

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

The most important thing is that you and we all stay healthy! Take your time, Teo.   smile

Offline

#3492 2020-06-10 08:55:33

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

unklar wrote:

The most important thing is that you and we all stay healthy! Take your time, Teo.   smile

Thanks unklar, I appreciate it.
Sorry for the delay guys, it's going really slow.
Just like last year with Accuweather, weather.com's chosen the most inappropriate time to change their layout.
So, I'm making progress, although painstakingly slow...
Hold on there.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3493 2020-06-14 16:39:06

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

New script:
See here

weather_com_conkyrc:

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- fiddle with window
	use_spacer = 'right',
	use_xft = true,

-- Update interval in seconds
	update_interval = 3,

-- Minimum size of text area
	minimum_width = 390, minimum_height = 500,
	maximum_width = 390,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = true,

-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	font = 'Arial:size=8',
	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

-- border margins
	border_inner_margin = 9,

-- border width
	border_width = 10,

-- Default colors and also border colors, grey90 == #e5e5e5
	default_color = '#FFFFFF',
	color1 = '#949494',

	own_window_colour = 'brown',
	own_window_transparent = true,

-- Text alignment, other possible values are commented
--alignment top_left
	alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
	gap_x = 10,
	gap_y = 30,

	imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen

};

conky.text = [[
${color1}${font Arial:size=12}WEATHER ${hr 2}$color${texeci 500 bash $HOME/Weather_com_conky_script/weather_com}${image $HOME/Weather_com_conky_script/Forecast_Images/now.png -p 0,40 -s 150x150}
${goto 200}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/now}

${font Arial:size=20}${goto 200}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/now}° ${font Arial:size=15}(${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/now}°)$font

${goto 200}MOON: ${texeci 600 sed -n '17p' $HOME/Weather_com_conky_script/now}

${color1}HI / LOW:$color ${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/now}° / ${texeci 600 sed -n '5p' $HOME/Weather_com_conky_script/now}°${goto 200}${color1}HUMIDITY:$color ${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/now}%
${color1}WIND:$color ${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/now}${goto 200}${color1}PRESSURE:$color ${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/now}
${color1}UV INDEX:$color ${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/now}${goto 200}${color1}VISIBILITY:$color ${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/now}
${color1}SUNRISE:$color ${texeci 600 sed -n '13p' $HOME/Weather_com_conky_script/now}${goto 200}${color1}MOONRISE:$color ${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/now}
${color1}SUNSET:$color ${texeci 600 sed -n '15p' $HOME/Weather_com_conky_script/now}${goto 200}${color1}MOONSET:$color ${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/now}
${color1}${hr 1}
${if_match "${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}" == "Today"}${font Arial:size=11}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${goto 200}${texeci 600 sed -n '30p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}$font
${image $HOME/Weather_com_conky_script/Forecast_Images/d1.png -p 0,360 -s 95x95}${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 200,360 -s 95x95}$color
${goto 130}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/10days}${goto 340}${texeci 600 sed -n '31p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '40p' $HOME/Weather_com_conky_script/10days}
${goto 130}${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/10days|sed 's/mph\|km\/h//'}${goto 340}${texeci 600 sed -n '33p' $HOME/Weather_com_conky_script/10days|sed 's/mph\|km\/h//'}${font Arial:size=7}


${font Arial:size=10}${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/10days}${goto 200}${texeci 600 sed -n '27p' $HOME/Weather_com_conky_script/10days}
${color1}${hr 1}
${font}${texeci 600 sed -n '54p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${goto 150}${texeci 600 sed -n '78p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${goto 280}${texeci 600 sed -n '102p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 0,535 -s 70x70}${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 130,535 -s 70x70}${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 260,535 -s 70x70}

${font Arial:size=7}${color}${goto 110}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/10days}${goto 240}${texeci 600 sed -n '79p' $HOME/Weather_com_conky_script/10days}${goto 370}${texeci 600 sed -n '103p' $HOME/Weather_com_conky_script/10days}
${goto 110}${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/10days}°${goto 240}${texeci 600 sed -n '88p' $HOME/Weather_com_conky_script/10days}°${goto 370}${texeci 600 sed -n '112p' $HOME/Weather_com_conky_script/10days}°

${texeci 600 sed -n '51p' $HOME/Weather_com_conky_script/10days|cut -c1-15}${goto 150}${texeci 600 sed -n '75p' $HOME/Weather_com_conky_script/10days|cut -c1-15}${goto 280}${texeci 600 sed -n '99p' $HOME/Weather_com_conky_script/10days|cut -c1-15}
${color1}${hr 1}
${font Arial:size=8}${color1}${goto 25}${texeci 600 sed -n '126p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 90}${texeci 600 sed -n '150p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 155}${texeci 600 sed -n '174p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 220}${texeci 600 sed -n '198p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 285}${texeci 600 sed -n '222p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 350}${texeci 600 sed -n '246p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 0,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 65,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 130,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 195,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 260,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d11.png -p 325,675 -s 50x50}${font Arial:size=7}



${color}${goto 20}${texeci 600 sed -n '127p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '136p' $HOME/Weather_com_conky_script/10days}${goto 85}${texeci 600 sed -n '151p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '160p' $HOME/Weather_com_conky_script/10days}${goto 150}${texeci 600 sed -n '175p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '184p' $HOME/Weather_com_conky_script/10days}${goto 215}${texeci 600 sed -n '199p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '208p' $HOME/Weather_com_conky_script/10days}${goto 280}${texeci 600 sed -n '223p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '232p' $HOME/Weather_com_conky_script/10days}${goto 345}${texeci 600 sed -n '247p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '256p' $HOME/Weather_com_conky_script/10days}${else}${font Arial:size=11}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${goto 200}${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}$font
${image $HOME/Weather_com_conky_script/Forecast_Images/d1.png -p 0,360 -s 95x95}${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 200,360 -s 95x95}$color
${goto 130}--°/${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/10days}${goto 340}${texeci 600 sed -n '22p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '31p' $HOME/Weather_com_conky_script/10days}
${goto 130}${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/10days|sed 's/mph\|km\/h//'}${goto 340}${texeci 600 sed -n '24p' $HOME/Weather_com_conky_script/10days|sed 's/mph\|km\/h//'}


${font Arial:size=10}${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/10days}${goto 200}${texeci 600 sed -n '18p' $HOME/Weather_com_conky_script/10days}
${color1}${hr 1}
${font}${texeci 600 sed -n '45p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${goto 150}${texeci 600 sed -n '69p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${goto 280}${texeci 600 sed -n '93p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 0,535 -s 70x70}${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 130,535 -s 70x70}${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 260,535 -s 70x70}

${font Arial:size=7}${color}${goto 110}${texeci 600 sed -n '46p' $HOME/Weather_com_conky_script/10days}${goto 240}${texeci 600 sed -n '70p' $HOME/Weather_com_conky_script/10days}${goto 370}${texeci 600 sed -n '94p' $HOME/Weather_com_conky_script/10days}
${goto 110}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/10days}${goto 240}${texeci 600 sed -n '79p' $HOME/Weather_com_conky_script/10days}${goto 370}${texeci 600 sed -n '103p' $HOME/Weather_com_conky_script/10days}

${texeci 600 sed -n '42p' $HOME/Weather_com_conky_script/10days|cut -c1-15}${goto 150}${texeci 600 sed -n '66p' $HOME/Weather_com_conky_script/10days|cut -c1-15}${goto 280}${texeci 600 sed -n '90p' $HOME/Weather_com_conky_script/10days|cut -c1-15}
${color1}${hr 1}
${font Arial:size=8}${color1}${goto 25}${texeci 600 sed -n '117p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 90}${texeci 600 sed -n '141p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 155}${texeci 600 sed -n '165p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 220}${texeci 600 sed -n '189p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 285}${texeci 600 sed -n '213p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 350}${texeci 600 sed -n '237p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 0,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 65,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 130,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 195,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 260,675 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/d11.png -p 325,675 -s 50x50}${font Arial:size=7}



${color}${goto 20}${texeci 600 sed -n '118p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '127p' $HOME/Weather_com_conky_script/10days}${goto 85}${texeci 600 sed -n '142p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '151p' $HOME/Weather_com_conky_script/10days}${goto 150}${texeci 600 sed -n '166p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '175p' $HOME/Weather_com_conky_script/10days}${goto 215}${texeci 600 sed -n '190p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '199p' $HOME/Weather_com_conky_script/10days}${goto 280}${texeci 600 sed -n '214p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '223p' $HOME/Weather_com_conky_script/10days}${goto 345}${texeci 600 sed -n '238p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '247p' $HOME/Weather_com_conky_script/10days}${endif}

${color1}${font Arial:size=12}12 HOURS ${hr 2}
${font Arial:size=8}${goto 25}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/hourly}${goto 90}${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/hourly}${goto 155}${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/hourly}${goto 220}${texeci 600 sed -n '28p' $HOME/Weather_com_conky_script/hourly}${goto 285}${texeci 600 sed -n '37p' $HOME/Weather_com_conky_script/hourly}${goto 350}${texeci 600 sed -n '46p' $HOME/Weather_com_conky_script/hourly}${image $HOME/Weather_com_conky_script/Forecast_Images/h1.png -p 0,830 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h2.png -p 65,830 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h3.png -p 130,830 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h4.png -p 195,830 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h5.png -p 260,830 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h6.png -p 325,830 -s 50x50}



${color}${goto 30}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/hourly}${goto 95}${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/hourly}${goto 160}${texeci 600 sed -n '20p' $HOME/Weather_com_conky_script/hourly}${goto 225}${texeci 600 sed -n '29p' $HOME/Weather_com_conky_script/hourly}${goto 290}${texeci 600 sed -n '38p' $HOME/Weather_com_conky_script/hourly}${goto 355}${texeci 600 sed -n '47p' $HOME/Weather_com_conky_script/hourly}
${color1}${goto 25}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/hourly}${goto 90}${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/hourly}${goto 155}${texeci 600 sed -n '73p' $HOME/Weather_com_conky_script/hourly}${goto 220}${texeci 600 sed -n '82p' $HOME/Weather_com_conky_script/hourly}${goto 285}${texeci 600 sed -n '91p' $HOME/Weather_com_conky_script/hourly}${goto 350}${texeci 600 sed -n '100p' $HOME/Weather_com_conky_script/hourly}${image $HOME/Weather_com_conky_script/Forecast_Images/h7.png -p 0,935 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h8.png -p 65,935 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h9.png -p 130,935 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h10.png -p 195,935 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h11.png -p 260,935 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h12.png -p 325,935 -s 50x50}



${color}${goto 30}${texeci 600 sed -n '56p' $HOME/Weather_com_conky_script/hourly}${goto 95}${texeci 600 sed -n '65p' $HOME/Weather_com_conky_script/hourly}${goto 160}${texeci 600 sed -n '74p' $HOME/Weather_com_conky_script/hourly}${goto 225}${texeci 600 sed -n '83p' $HOME/Weather_com_conky_script/hourly}${goto 290}${texeci 600 sed -n '92p' $HOME/Weather_com_conky_script/hourly}${goto 355}${texeci 600 sed -n '101p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}

]];

weather_com_conkyrc_horizontal:

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- fiddle with window
	use_spacer = 'right',
	use_xft = true,

-- Update interval in seconds
	update_interval = 3,

-- Minimum size of text area
	minimum_width = 830, minimum_height = 500,
	maximum_width = 830,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = true,

-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	font = 'Arial:size=10',
	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

-- border margins
	border_inner_margin = 9,

-- border width
	border_width = 10,

-- Default colors and also border colors, grey90 == #e5e5e5
	default_color = '#FFFFFF',
	color1 = '#949494',

	own_window_colour = 'brown',
	own_window_transparent = true,

-- Text alignment, other possible values are commented
--alignment top_left
	alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
	gap_x = 10,
	gap_y = 30,

	imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen

};

conky.text = [[
${color1}${font Arial:size=12}WEATHER ${hr 2}$color${texeci 500 bash $HOME/Weather_com_conky_script/weather_com}${image $HOME/Weather_com_conky_script/Forecast_Images/now.png -p 0,40 -s 150x150}
${goto 190}${font Arial:size=16}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/now}$color1  |  $color${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/now}°(${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/now}°)
${goto 190}$color1${font Arial:size=12}MOON: $color${texeci 600 sed -n '17p' $HOME/Weather_com_conky_script/now}
${goto 190}$color1${font}HI / LOW:$color ${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/now}° / ${texeci 600 sed -n '5p' $HOME/Weather_com_conky_script/now}°$color1  |  WIND:$color ${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/now}$color1  |  UV INDEX:$color ${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/now}
${goto 190}${color1}SUNRISE:$color ${texeci 600 sed -n '13p' $HOME/Weather_com_conky_script/now}$color1  |  SUNSET:$color ${texeci 600 sed -n '15p' $HOME/Weather_com_conky_script/now}$color1  |  PRESSURE:$color ${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/now}
${goto 190}${color1}MOONRISE:$color ${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/now}$color1  |  MOONSET:$color ${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/now}$color1  |  VISIBILITY:$color ${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/now}
${if_match "${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}" == "Today"}
${image $HOME/Weather_com_conky_script/Forecast_Images/d1.png -p 0,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 120,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 240,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 360,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 480,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 600,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 720,215 -s 90x90}${font Arial:size=8}



$font${color1}${goto 40}${font}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 160}${texeci 600 sed -n '30p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 280}${texeci 600 sed -n '54p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 400}${texeci 600 sed -n '78p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 520}${texeci 600 sed -n '102p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 640}${texeci 600 sed -n '126p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 760}${texeci 600 sed -n '150p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}$font$color
${goto 30}${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '16p' $HOME/Weather_com_conky_script/10days}${goto 150}${texeci 600 sed -n '31p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '40p' $HOME/Weather_com_conky_script/10days}${goto 270}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/10days}${goto 390}${texeci 600 sed -n '79p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '88p' $HOME/Weather_com_conky_script/10days}${goto 510}${texeci 600 sed -n '103p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '112p' $HOME/Weather_com_conky_script/10days}${goto 630}${texeci 600 sed -n '127p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '136p' $HOME/Weather_com_conky_script/10days}${goto 750}${texeci 600 sed -n '151p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '160p' $HOME/Weather_com_conky_script/10days}${else}
${image $HOME/Weather_com_conky_script/Forecast_Images/d1.png -p 0,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 120,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 240,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 360,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 480,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 600,215 -s 90x90}${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 720,215 -s 90x90}${font Arial:size=8}



$font${color1}${goto 40}${font}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 160}${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 280}${texeci 600 sed -n '45p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 400}${texeci 600 sed -n '69p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 520}${texeci 600 sed -n '93p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 640}${texeci 600 sed -n '117p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}${goto 760}${texeci 600 sed -n '141p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z|cut -c1-3}$font$color
${goto 30}--°/${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/10days}${goto 150}${texeci 600 sed -n '22p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '31p' $HOME/Weather_com_conky_script/10days}${goto 270}${texeci 600 sed -n '46p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/10days}${goto 390}${texeci 600 sed -n '70p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '79p' $HOME/Weather_com_conky_script/10days}${goto 510}${texeci 600 sed -n '94p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '103p' $HOME/Weather_com_conky_script/10days}${goto 630}${texeci 600 sed -n '118p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '127p' $HOME/Weather_com_conky_script/10days}${goto 750}${texeci 600 sed -n '142p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '151p' $HOME/Weather_com_conky_script/10days}${endif}
${image $HOME/Weather_com_conky_script/Forecast_Images/h1.png -p 5,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h2.png -p 80,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h3.png -p 155,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h4.png -p 230,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h5.png -p 305,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h6.png -p 380,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h7.png -p 455,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h8.png -p 530,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h9.png -p 605,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h10.png -p 680,380 -s 50x50}${image $HOME/Weather_com_conky_script/Forecast_Images/h11.png -p 755,380 -s 50x50}


${goto 25}${font Arial:size=8}${color1}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/hourly}${goto 100}${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/hourly}${goto 175}${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/hourly}${goto 250}${texeci 600 sed -n '28p' $HOME/Weather_com_conky_script/hourly}${goto 325}${texeci 600 sed -n '37p' $HOME/Weather_com_conky_script/hourly}${goto 400}${texeci 600 sed -n '46p' $HOME/Weather_com_conky_script/hourly}${goto 475}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/hourly}${goto 550}${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/hourly}${goto 620}${texeci 600 sed -n '73p' $HOME/Weather_com_conky_script/hourly}${goto 695}${texeci 600 sed -n '82p' $HOME/Weather_com_conky_script/hourly}${goto 775}${texeci 600 sed -n '91p' $HOME/Weather_com_conky_script/hourly}$color
${goto 35}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/hourly}${goto 110}${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/hourly}${goto 185}${texeci 600 sed -n '20p' $HOME/Weather_com_conky_script/hourly}${goto 260}${texeci 600 sed -n '29p' $HOME/Weather_com_conky_script/hourly}${goto 335}${texeci 600 sed -n '38p' $HOME/Weather_com_conky_script/hourly}${goto 410}${texeci 600 sed -n '47p' $HOME/Weather_com_conky_script/hourly}${goto 485}${texeci 600 sed -n '56p' $HOME/Weather_com_conky_script/hourly}${goto 560}${texeci 600 sed -n '65p' $HOME/Weather_com_conky_script/hourly}${goto 635}${texeci 600 sed -n '74p' $HOME/Weather_com_conky_script/hourly}${goto 710}${texeci 600 sed -n '83p' $HOME/Weather_com_conky_script/hourly}${goto 785}${texeci 600 sed -n '92p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 2}
]];

With the new script, in order to get metric values in english, use en-IE (Ireland), otherwise the wind will be in mph.

If you want to use any language other than english, don't forget to give the wind directions' abbreviations of your language in the north, south, east and west variables.

Weather.com have chosen to go with pm and am hour values instead of the 24 hour clock. I've kept it this way.

Sorry everyone for the delay, but the script has been written almost from scratch.

Last edited by TeoBigusGeekus (2020-06-15 22:02:17)


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3494 2020-06-14 17:22:36

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,154

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

I test it later today.  big_smile

Please excuse my absence.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#3495 2020-06-14 17:32:39

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Thanks S11 and, yes, you're excused wink


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3496 2020-06-14 19:36:57

ceeslans
Member
Registered: 2015-09-30
Posts: 72

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Teo, so far so good!
it did take some checking back for correct line numbers in the respective now/daily/hourly output files.
but the script is spot on, the conversion is flawless, and all values are read correctly...
thanks soooo much for your hard work!

zjCKDt7t.png

Last edited by ceeslans (2020-06-15 07:43:27)

Offline

#3497 2020-06-14 20:20:13

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Thanks a lot ceeslans.
I haven't had the time to test it thoroughly, so any feedback is welcome.
Sorry for taking so long, they always choose the wrong time to make their changes, and what changes they did make: I managed to keep the same data in the now file, but not in the other ones (10days, hourly).
So, yeah, on this update one has to do some work on any custom conkyrc based on weather.com

PS: Why don't you share your awesome setup with us?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3498 2020-06-14 20:35:17

ceeslans
Member
Registered: 2015-09-30
Posts: 72

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

Thanks a lot ceeslans.
I haven't had the time to test it thoroughly, so any feedback is welcome.
Sorry for taking so long, they always choose the wrong time to make their changes, and what changes they did make: I managed to keep the same data in the now file, but not in the other ones (10days, hourly).
So, yeah, on this update one has to do some work on any custom conkyrc based on weather.com

PS: Why don't you share your awesome setup with us?

sure will do, but let me check the text.config for the [if_match == TODAY] values first.
Will revert back tomorrow

Offline

#3499 2020-06-14 20:56:58

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,315

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Brilliant.

How did you get the 24 hour clock hours on your results? What's the weather.com address you're using?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#3500 2020-06-14 21:28:30

ceeslans
Member
Registered: 2015-09-30
Posts: 72

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

How did you get the 24 hour clock hours on your results? What's the weather.com address you're using?

*edit*
the conky.text lines for 24H clock hours are the same as in my previous config (not 'weather_com_script' driven)
your script actually prints the 24H-formatted hours in the 'hourly' file. I assume this is due to the 'en_IE' locale referral in the weather.com address?

my weather.com address:

"https://weather.com/en-IE/weather/today/l/b82ceb3db8080589ea47a71c06871ea61de3a21bc710ab755c62c0e5ba885be1"

and here the WETTER.COM conky.conf
it requires 1 image file (line 83). just create a 1x1 pixel png [color 'cccccc'] and save it to an image folder (amend the path in conky.conf accordingly)

----------------------------------------------------------------------
-- WetterCom-Conky ---------------------------------------------------
-- after a design idea from 2015 by @Sector11 ------------------------
-- conky.conf author @unklar 2020-03----------------------------------
-- https://forums.mageia.org/de/download/file.php?id=1352&mode=view --
-- modified @ceeslans 2020-06-----------------------------------------
----------------------------------------------------------------------

conky.config = {

	update_interval = 1,
	double_buffer = true,
	no_buffers = true,
	imlib_cache_size = 0,
	imlib_cache_flush_interval = 900,
	max_user_text = 48552,
	use_spacer = 'none',
	
	background = false,
	own_window = true,
	own_window_type = 'normal',
		-- own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_argb_value = 0,
		-- own_window_color = '000000',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	own_window_class = 'Conky',
	own_window_title = 'ConkyWetterCom',

	draw_shades = false,
	default_shade_color = '303030',
	draw_outline = false,
	draw_borders = false,
	stippled_borders = 0,
	draw_graph_borders = false,
	border_inner_margin = 10,
	border_outer_margin = 0,
	border_width = 0,

	use_xft = true,
	font = 'Droid Sans:size=7',	
	xftalpha = 1.0,
	override_utf8_locale = true,
	uppercase = false,

	minimum_width = 180, 
	maximum_width = 180,
		-- minimum_height = 650,
	gap_x = 25, 
	gap_y = 50, 	
	alignment = 'top_right',

	default_color = 'ffffff',
	--default_color = '151515',
	
	color1 = 'E0FFFF',  --#light cyan
	--color1 = '2C3D3D',  --#dark cyan
	--color1 = 'grey',

};

conky.text = [[
### TITLE/SCRIPT ###
${voffset 10}${color1}${font Droid Sans:size=8:weight=bold}${alignr 20}WETTER.COM\
${color}${texeci 500 bash $HOME/Weather_com_conky_script/weather_com}
### CURRENT ###
${voffset 10}${image $HOME/Weather_com_conky_script/Forecast_Images/now.png -p -0,0 -s 60x60}\
${font Droid Sans:size=8:weight=bold}${goto 70}${color1}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}\
${font Droid Sans:size=8:weight=bold}${alignr}${color}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/now}°C (${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/now}°C)
${alignr 2}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/now}${font}
### DETAILED CURRENT ###
${voffset 10}${font Droid Sans:size=8}\
${goto 15}${color1}Moon${color}${alignr 20} ${texeci 600 sed -n '17p' $HOME/Weather_com_conky_script/now}
${goto 15}${color1}Temp ↑↓${color}${alignr 20} ${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/now}° / ${texeci 600 sed -n '5p' $HOME/Weather_com_conky_script/now}°
${goto 15}${color1}Wind${color}${alignr 20} ${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/now}
${goto 15}${color1}Pressure${color}${alignr 20} ${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/now}
${goto 15}${color1}Humidity${color}${alignr 20} ${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/now}
${goto 15}${color1}Sun ↑↓${color}${alignr 20} ${texeci 600 sed -n '13p' $HOME/Weather_com_conky_script/now} / ${texeci 600 sed -n '15p' $HOME/Weather_com_conky_script/now}
${goto 15}${color1}Moon ↑↓${color}${alignr 20} ${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/now} / ${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/now}
${goto 15}${color1}Visibility${color}${alignr 20} ${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/now}
${goto 15}${color1}UV index${color}${alignr 20} ${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/now}
### ICONS HOURLY FORECAST ###
${image $HOME/Weather_com_conky_script/images/vbar.png -p 85,212 -s 1x324}\
${voffset 8}${alignc -27}${font Droid Sans:size=9:weight=bold}${color1}${time %H:%M}${font}${goto 10}${color}daily ${alignr 20}hourly
${voffset -2}${color3}${swapbar 0,160}${color}${voffset -12}
${image $HOME/Weather_com_conky_script/Forecast_Images/h2.png -p 95,218 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h3.png -p 95,254 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h4.png -p 95,290 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h5.png -p 95,326 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h6.png -p 95,362 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h7.png -p 95,398 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h8.png -p 95,434 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h9.png -p 95,470 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h10.png -p 95,506 -s 24x24}\
### 10DAYS/HOURLY FORECAST --> IF MATCH == TODAY ###
${if_match "${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}" == "Today"}
${alignr 70}${color1}${execi 3600 date  --date='1 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '25p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '26p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='2 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '49p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '50p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='3 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '73p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '74p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '20p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='4 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '28p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '97p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '98p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '29p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='5 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '37p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '121p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '122p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '38p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='6 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '46p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '145p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '146p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '47p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='7 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '169p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '170p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '56p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='8 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '193p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '194p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '65p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='9 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '73p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '217p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '218p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '74p' $HOME/Weather_com_conky_script/hourly}
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 5,218 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 5,254 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 5,290 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 5,326 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 5,362 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 5,398 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 5,434 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 5,470 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 5,506 -s 24x24}\
${color3}${swapbar 0,160}${color1}${voffset 8}
${font Droid Sans:size=8:weight=bold}${color1}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${font Droid Sans:size=8}${color}${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/10days | fold -s30}${voffset 7}
${font Droid Sans:size=8:weight=bold}${color1}${texeci 600 sed -n '30p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${font Droid Sans:size=8}${color}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days | fold -s30}
### 10DAYS/HOURLY FORECAST --> ELSE ###
${else}
${alignr 70}${color1}${execi 3600 date  --date='1 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '16p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '17p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='2 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '40p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '41p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='3 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '65p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '20p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='4 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '28p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '88p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '89p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '29p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='5 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '37p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '112p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '113p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '38p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='6 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '46p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '136p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '137p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '47p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='7 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '160p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '161p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '56p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='8 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '184p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '185p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '65p' $HOME/Weather_com_conky_script/hourly}
${color3}${swapbar 0,160}
${alignr 70}${color1}${execi 3600 date  --date='9 day' '+%a.%e'}${alignr 20}${texeci 600 sed -n '73p' $HOME/Weather_com_conky_script/hourly} h
${alignr 90}${color}${texeci 600 sed -n '208p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '209p' $HOME/Weather_com_conky_script/10days}\
${goto 150}${texeci 600 sed -n '74p' $HOME/Weather_com_conky_script/hourly}
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 5,218 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 5,254 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 5,290 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 5,326 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 5,362 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 5,398 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 5,434 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 5,470 -s 24x24}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 5,506 -s 24x24}\
${color3}${swapbar 0,160}${color}${voffset 8}
${font Droid Sans:size=8:weight=bold}${color1}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${font Droid Sans:size=8}${color}${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/10days | fold -s30}${voffset 7}
${font Droid Sans:size=8:weight=bold}${color1}${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}$Font}
${font Droid Sans:size=8}${color}${texeci 600 sed -n '23p' $HOME/Weather_com_conky_script/10days | fold -s30}
${endif}
]];

Last edited by ceeslans (2020-06-15 07:35:06)

Offline

Board footer

Powered by FluxBB