You are not logged in.

#3241 2020-03-09 11:50:13

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

unklar wrote:

@Sector11
I also can't decide clearly for 2015 or 2016, because the icons are just beautiful. But several OS solve the problem here.
Do you really think S12 likes the scary picture?   hmm

She likes anything "Jurassic" idea loves the movies AND wants 'Blue' as a pet.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3242 2020-03-09 12:17:16

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

unklar wrote:
Sector11 wrote:

   

unklar wrote:

Once again the hint:
    The location address determined in the browser ensures in the Teo script that the weather data appears in the respective national language. I do not know any other weather service that does this.

A yes, weather.com "assuming" an English speaking person living in Argentina will want the weather in Spanish!  RIIIIIIIGHT!  Why of course they would know better than the people themselves.

Or an Italian living in Japan, for 6 months, will want the weather in Japanese.

lol  lol

Well, the user will report here and ask for it. We'll tell him to change the browser line from:

https://weather.com/es-AR/weather/today/...

to

https://weather.com/en-AR/weather/today/...

This means that the English speaker in Argentina will see the output in English and not in Spanish.
Besides, Teo was so friendly and has already hard-wired this "English-speaking Spaniard" in the script   tongue   big_smile

OHHHHHHHHHHHHHHHHHHHHHH!!!!  It's inside youe scripts.  OK I got you.  See I am so out of connection I though "weather.com" was adding an ending based on a persons ISP.

For the longest time GOOGLE refuses to give google.com and Insisted on google,com.ar and filtered the sites to a .ar  ending.  GRRRRR!

I have not looked at weather.com scripts yet.

NEW PROBLEM

I am having a problem with Accuweather,  the script is not creating the first_days or last_days or altogether24 directories.

sed: can't read /media/5/Conky/Accuweather_conky_script/first_days: No such file or directory
sed: can't read /media/5/Conky/Accuweather_conky_script/last_days: No such file or directory

and IF I create them:

sed: read error on /media/5/Conky/Accuweather_conky_script/first_days: Is a directory
sed: read error on /media/5/Conky/Accuweather_conky_script/last_days: Is a directory

In fact searching the /media/5/Conky/Accuweather_conky_script/accuweather script I see no mention of first_days or last_days - which confuses me more as it is in the terminal ERROR output.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3243 2020-03-09 12:40:59

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

NEVER MIND ... the error is mine - using an OLD conky that had "first_days" and "last_days" in it.

I'm getting old mind wanders or thinks "but it worked last time."


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3244 2020-03-09 16:20:17

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

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

Sector11 wrote:

OK I goy you.

I know.  lol ]:D

I'm getting old mind wanders or thinks "but it worked last time."

Yes, "New-German" is now called daily_forecast.
Whenever I had time, I adjusted my Conky's to it.

If you need something to shorten the time, then get in touch. I'm glad if I can help you too  smile 

But for heaven's sake, don't say the name of the "company" out loud. Teo also thought we shouldn't wake sleeping dogs...   big_smile

Offline

#3245 2020-03-09 17:37:02

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

Knock on wood...


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

#3246 2020-03-09 18:05:11

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

unklar wrote:
Sector11 wrote:

OK I got you.

I know.  lol ]:D

I'm getting old mind wanders or thinks "but it worked last time."

Yes, "New-German" is now called daily_forecast.
Whenever I had time, I adjusted my Conky's to it.

As opposed to "Altdeutsch"? hahahahaha

If you need something to shorten the time, then get in touch. I'm glad if I can help you too  smile 

But for heaven's sake, don't say the name of the "company" out loud. Teo also thought we shouldn't wake sleeping dogs...   big_smile

Oh sure, it's in the subject, you and Teo quote it all the time and I'm not allowed to say it?

OK then, from now, to honour you, I shall refer to them:
Wetter.com
U-Bahn.com
GenauesWetter.com, und
Mond-Riesen.com

lol  ]:D

BTW choice is made and I added the Chance of Precipitation to the days as well.
2020-03-09-142827-S11.jpg
I added a directory: /UVI to hold the images my {cough cough} S11_GenauesWetter_UVI.conky uses:
2020-03-09-145437-S11.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3247 2020-03-09 19:18:45

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

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

Sector11 wrote:

OK then, from now, to honour you, I shall refer to them:
...

they all have no daily_forecast   tongue

BTW choice is made and I added the Chance of Precipitation to the days as well.

Absolutely brilliant work  cool
By the way, have I checked why we don't have a UV index 11 have...
I'm not upset about that.   yikes

Offline

#3248 2020-03-09 19:21:56

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

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

Teo, it seems to be working. I was desperate and already wanted to create another if_statement...  :8

I still have to observe it.
Thank you!
Screenshot_20200309_200438.th.png

Offline

#3249 2020-03-09 21:17:58

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

You do not want to see/feel UVI 11+ ...

At 8/9 I can feel my skin burning.   We get in in the south because of the ozone hole over the south pole.  Getting smaller but not fast enough.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3250 2020-03-10 07:54:13

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

Very beautiful setups from both of you.

@unklar
Very good solution, that's a clear and elegant conky.

@s11
You should visit Athens in the summer to tell me how it compares with Buenos Aires, infernowise.


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

#3251 2020-03-10 13:27:53

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

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

TeoBigusGeekus wrote:

@unklar
Very good solution, that's a clear and elegant conky.

Thanks, Teo. I'm happy to return the compliment, because without your script I would have been nothing  wink

I think I can release this thing into the "wild."
simple configuration in Siduction(in kf5)siduction1.th.pngsiduction2.th.png


with Lua for the "round corners", thanks to @loutch for the trick, in archlinux(also kf5)arch1.th.pngarch2.th.png


with "selfmade background", thanks to @ragamatrix for the ingenious script, in bl-lithium(openbox)
Unfortunately this needs some more work, the first lines of text refuse to move to the right with ${goto} hmm  bl2.th.png

and the configuration(simple)

-- https://forums.bunsenlabs.org/viewtopic.php?pid=1545#p1545
-- after a design idea from 2015 by @Sector11
-- https://forums.mageia.org/de/download/file.php?id=1352&mode=view
-- @unklar 2020-03-10
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--
--own_window_color 000000
    own_window_argb_visual = true,
--own_window_argb_value = 250,

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

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

-- Update interval in seconds
	update_interval = 2, --1,

-- Minimum size of text area
	minimum_width = 180, minimum_height = 00,
	maximum_width = 180,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = true,

-- Text stuff
	draw_outline = true,
	draw_borders = false,
--font freesans -12
	font = 'monofur:size=8',
	uppercase = false,

-- 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 = 'ffffff', --949494',
	color2 = 'cyan',

-- 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 = 10,

--imlib_cache_size = 0,
	imlib_cache_flush_interval = 900,
	max_user_text = 48552,

};

conky.text = [[
${color1}${font monofur:size=12}WETTER ${color2}${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,90 -s 40x40}\
${font monofur:size=10}${color1}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days} ${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)
${font}${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/10days}
${goto 70}MOND${color}${alignr} ${texeci 600 sed -n '17p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}${font}Hoch / Tief${color}${alignr} ${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/now}° / ${texeci 600 sed -n '5p' $HOME/Weather_com_conky_script/now}°
${goto 70}${color1}WIND${color}${alignr} ${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}UV INDEX${color}${alignr} ${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Sonnenaufgang${color}${alignr} ${texeci 600 sed -n '13p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Sonnenuntergang${color}${alignr} ${texeci 600 sed -n '15p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Luftdruck${color}${alignr} ${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Mondaufgang${color}${alignr} ${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Monduntergang${color}${alignr} ${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Fernsicht${color}${alignr} ${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Rel.Luftfeuchte${color}${alignr} ${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/now} %
${goto 70}${color1}Taupunkt${color}${alignr} ${texeci 600 sed -n '9p' $HOME/Weather_com_conky_script/now} °C
${color2}${hr 1}${color}
${image $HOME/1_pixel_images/cyan_1.png -p 90,202 -s 1x335}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h2.png -p 105,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h3.png -p 105,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h4.png -p 105,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h5.png -p 105,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h6.png -p 105,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h7.png -p 105,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h8.png -p 105,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h9.png -p 105,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h10.png -p 105,505 -s 30x30}\
${if_match "${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}" == "Heute"}
${goto 70}${execi 3600 date  --date='1 day' '+%a. %e'}${goto 170}${tztime GMT-2 %H} h
${goto 60}${texeci 600 sed -n '71p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='2 day' '+%a. %e'}${goto 170}${tztime GMT-3 %H} h
${goto 60}${texeci 600 sed -n '133p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='3 day' '+%a. %e'}${goto 170}${tztime GMT-4 %H} h
${goto 60}${texeci 600 sed -n '195p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '61p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='4 day' '+%a. %e'}${goto 170}${tztime GMT-5 %H} h
${goto 60}${texeci 600 sed -n '257p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '90p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='5 day' '+%a. %e'}${goto 170}${tztime GMT-6 %H} h
${goto 60}${texeci 600 sed -n '319p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '119p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='6 day' '+%a. %e'}${goto 170}${tztime GMT-7 %H} h
${goto 60}${texeci 600 sed -n '381p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '148p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='7 day' '+%a. %e'}${goto 170}${tztime GMT-8 %H} h
${goto 60}${texeci 600 sed -n '443p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '177p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='8 day' '+%a. %e'}${goto 170}${tztime GMT-9 %H} h
${goto 60}${texeci 600 sed -n '505p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '206p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='9 day' '+%a. %e'}${goto 170}${tztime GMT-10 %H} h
${goto 60}${texeci 600 sed -n '567p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '235p' $HOME/Weather_com_conky_script/hourly}°
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 10,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 10,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 10,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 10,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 10,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 10,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 10,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 10,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 10,505 -s 30x30}\
${color2}${hr 1}${color}
${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}
${else}
${goto 70}${execi 3600 date  --date='1 day' '+%a. %e'}${goto 170}${tztime GMT-2 %H} h
${goto 60}${texeci 600 sed -n '40p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='2 day' '+%a. %e'}${goto 170}${tztime GMT-3 %H} h
${goto 60}${texeci 600 sed -n '133p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='3 day' '+%a. %e'}${goto 170}${tztime GMT-4 %H} h
${goto 60}${texeci 600 sed -n '195p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '61p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='4 day' '+%a. %e'}${goto 170}${tztime GMT-5 %H} h
${goto 60}${texeci 600 sed -n '257p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '90p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='5 day' '+%a. %e'}${goto 170}${tztime GMT-6 %H} h
${goto 60}${texeci 600 sed -n '319p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '119p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='6 day' '+%a. %e'}${goto 170}${tztime GMT-7 %H} h
${goto 60}${texeci 600 sed -n '381p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '148p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='7 day' '+%a. %e'}${goto 170}${tztime GMT-8 %H} h
${goto 60}${texeci 600 sed -n '443p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '177p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='8 day' '+%a. %e'}${goto 170}${tztime GMT-9 %H} h
${goto 60}${texeci 600 sed -n '505p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '206p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='9 day' '+%a. %e'}${goto 170}${tztime GMT-10 %H} h
${goto 60}${texeci 600 sed -n '567p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '235p' $HOME/Weather_com_conky_script/hourly}°
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 10,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 10,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 10,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 10,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 10,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 10,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 10,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 10,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 10,505 -s 30x30}\
${color2}${hr 1}${color}
${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}
${endif}

]];

and with the lua part

-- https://forums.bunsenlabs.org/viewtopic.php?pid=1545#p1545
-- after a design idea from 2015 by @Sector11
-- https://forums.mageia.org/de/download/file.php?id=1352&mode=view
-- @unklar 2020-03-10 https://forums.bunsenlabs.org/viewtopic.php?pid=98571#p98571
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
        background = true,
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
--own_window_color 000000
    own_window_argb_visual = true,
--own_window_argb_value = 250,

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

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

-- Update interval in seconds
	update_interval = 2, --1,

-- Minimum size of text area
	minimum_width = 180, minimum_height = 00,
	maximum_width = 180,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = true,
	default_shade_color = '000000',

-- Text stuff
	draw_outline = false, --true,
	default_outline_color = '000000',
	draw_borders = false,
	
--font freesans -12
	font = 'monofur:size=8',
	uppercase = false,

-- Stippled borders?
	stippled_borders = 3,

-- border margins
	border_inner_margin = 9,
	border_outer_margin = 0,

-- border width
	border_width = 10,

-- Default colors and also border colors, grey90 == #e5e5e5
	default_color = 'ffffff',
	color1 = 'ffffff', --949494',
	color2 = '000000', --cyan',

-- 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 = 25,
	gap_y = 150,

--imlib_cache_size = 0,
	imlib_cache_flush_interval = 900,
	max_user_text = 48552,
-- LUA --	
	lua_load = '~/Weather_com_conky_script/script/draw_bg.lua',
        lua_draw_hook_pre = 'draw_bg 10 0 0 0 0 0x000000 0.55',

};

conky.text = [[
${color1}${font monofur:size=12}WETTER ${color2}${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,90 -s 40x40}\
${font monofur:size=10}${color1}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days} ${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)
${font}${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/10days}
${goto 70}MOND${color}${alignr} ${texeci 600 sed -n '17p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}${font}Hoch / Tief${color}${alignr} ${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/now}° / ${texeci 600 sed -n '5p' $HOME/Weather_com_conky_script/now}°
${goto 70}${color1}WIND${color}${alignr} ${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}UV INDEX${color}${alignr} ${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Sonnenaufgang${color}${alignr} ${texeci 600 sed -n '13p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Sonnenuntergang${color}${alignr} ${texeci 600 sed -n '15p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Luftdruck${color}${alignr} ${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Mondaufgang${color}${alignr} ${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Monduntergang${color}${alignr} ${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Fernsicht${color}${alignr} ${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/now}
${goto 70}${color1}Rel.Luftfeuchte${color}${alignr} ${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/now} %
${goto 70}${color1}Taupunkt${color}${alignr} ${texeci 600 sed -n '9p' $HOME/Weather_com_conky_script/now} °C
${color2}${hr 1}${color}
${image $HOME/1_pixel_images/black_1.png -p 90,202 -s 1x335}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h2.png -p 105,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h3.png -p 105,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h4.png -p 105,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h5.png -p 105,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h6.png -p 105,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h7.png -p 105,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h8.png -p 105,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h9.png -p 105,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h10.png -p 105,505 -s 30x30}\
${if_match "${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}" == "Heute"}
${goto 70}${execi 3600 date  --date='1 day' '+%a. %e'}${goto 170}${tztime GMT-2 %H} h
${goto 60}${texeci 600 sed -n '71p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='2 day' '+%a. %e'}${goto 170}${tztime GMT-3 %H} h
${goto 60}${texeci 600 sed -n '133p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='3 day' '+%a. %e'}${goto 170}${tztime GMT-4 %H} h
${goto 60}${texeci 600 sed -n '195p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '61p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='4 day' '+%a. %e'}${goto 170}${tztime GMT-5 %H} h
${goto 60}${texeci 600 sed -n '257p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '90p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='5 day' '+%a. %e'}${goto 170}${tztime GMT-6 %H} h
${goto 60}${texeci 600 sed -n '319p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '119p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='6 day' '+%a. %e'}${goto 170}${tztime GMT-7 %H} h
${goto 60}${texeci 600 sed -n '381p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '148p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='7 day' '+%a. %e'}${goto 170}${tztime GMT-8 %H} h
${goto 60}${texeci 600 sed -n '443p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '177p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='8 day' '+%a. %e'}${goto 170}${tztime GMT-9 %H} h
${goto 60}${texeci 600 sed -n '505p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '206p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='9 day' '+%a. %e'}${goto 170}${tztime GMT-10 %H} h
${goto 60}${texeci 600 sed -n '567p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '235p' $HOME/Weather_com_conky_script/hourly}°
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 10,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 10,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 10,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 10,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 10,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 10,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 10,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 10,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 10,505 -s 30x30}\
${color2}${hr 1}${color}
${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}
${else}
${goto 70}${execi 3600 date  --date='1 day' '+%a. %e'}${goto 170}${tztime GMT-2 %H} h
${goto 60}${texeci 600 sed -n '40p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='2 day' '+%a. %e'}${goto 170}${tztime GMT-3 %H} h
${goto 60}${texeci 600 sed -n '133p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='3 day' '+%a. %e'}${goto 170}${tztime GMT-4 %H} h
${goto 60}${texeci 600 sed -n '195p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '61p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='4 day' '+%a. %e'}${goto 170}${tztime GMT-5 %H} h
${goto 60}${texeci 600 sed -n '257p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '90p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='5 day' '+%a. %e'}${goto 170}${tztime GMT-6 %H} h
${goto 60}${texeci 600 sed -n '319p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '119p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='6 day' '+%a. %e'}${goto 170}${tztime GMT-7 %H} h
${goto 60}${texeci 600 sed -n '381p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '148p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='7 day' '+%a. %e'}${goto 170}${tztime GMT-8 %H} h
${goto 60}${texeci 600 sed -n '443p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '177p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='8 day' '+%a. %e'}${goto 170}${tztime GMT-9 %H} h
${goto 60}${texeci 600 sed -n '505p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '206p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 70}${execi 3600 date  --date='9 day' '+%a. %e'}${goto 170}${tztime GMT-10 %H} h
${goto 60}${texeci 600 sed -n '567p' $HOME/Weather_com_conky_script/10days}°${goto 170}${texeci 600 sed -n '235p' $HOME/Weather_com_conky_script/hourly}°
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 10,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 10,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 10,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 10,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 10,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 10,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 10,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 10,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 10,505 -s 30x30}\
${color2}${hr 1}${color}
${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}
${endif}

]];

BL may follow later smile
As always, improvements are welcome.  big_smile

Have fun!

Offline

#3252 2020-03-10 15:30:42

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

@ Teo ....

If I went to Greece (Athens or elsewhere) it would be to see you not to judge the heat difference.  But I'd accepts that as a second reason for going.  big_smile

Next is Moon Script


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3253 2020-03-10 18:06:18

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

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

Hm, this is ${goto 30} and looks ok, because it only affects one line each. 2020-03-10-17-44-14_scrot.png

In the if_statement, which prints a different number of lines here, this also only affects the 1st line.
All other lines are ignored.
This is {goto25} 2020-03-10-17-49-46_scrot.png

At {goto22}, it's very close...   mad  2020-03-10-18-07-59_scrot.th.png


I don't like this...  neutral
It's closing time for today.

Offline

#3254 2020-03-10 19:46:05

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

unklar wrote:

I don't like this...  neutral
It's closing time for today.

FRIEND IN TROUBLE ALERT -  -  - FRIEND IN TROUBLE ALERT

You close for the day .... I re-open the case.

So I postponed getting moon script running.  And instead activated Teo's weather.com script AND grabbed the last few lines that are NOT being nice to my friend.  Nothing else and put them into my test conky - well of course I had to setup and ran the weather.com script in the conky as well:

${texeci 500 bash $HOME/Weather_com_conky_script/weather_com}\
${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}

2020-03-10-163650-S11.jpg
There we go same lines.  And away from the edge too.

The necessary tweak to do that:
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

border_inner_margin 10

WARNING:  Border of 10 pixels apply to the top, bottom and both sides of the conky.  Adjust accordingly.

Notice how my space station image is out of sync with the curve of the text beside it ↑↑ there compared to ↓↓ :
2020-03-10-165223-S11.jpg

Last edited by Sector11 (2020-03-10 19:56:49)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3255 2020-03-11 12:01:25

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

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

lol  lol
I admit I was speculating that you might be able to take care of it. Who else is going to solve this mystery...  O:)

I can tell you that the rule

border_inner_margin 10

will affect the edge of the Conky window and indent the text inwards.

But...
Teo's if_statement assumes that the code is in the Conky twice.

TeoBigusGeekus wrote:

As for the Tonight/Tomorrow thingy, it can't be avoided because the forecast up until sometime in the day is for tonight and then it's for tomorrow, with only the first line of the 10days file to indicate the difference. It seems hard at first, but once you get the hang of it it's not a big deal to tackle the if_match command; it's just that you practically have to write two conkyrc sections for this part of your configuration.

Yeah, and this is exactly the part where the border-10 doesn't work   sad

Again for clarification, besides the border-10 setting above, this is the code I used:

${if_match "${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}" == "Heute"}
...
${goto 20}${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${goto 20}${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${goto 20}${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${goto 20}${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}
${else}
...
${goto 20}${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${goto 20}${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${goto 20}${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${goto 20}${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}
${endif}

with this result 2020-03-11-14-10-11_scrot.png


Note, I use my own backround picture for Conky!

Of course, none of this will matter if I leave out this picture...   big_smile

Last edited by unklar (2020-03-11 13:27:17)

Offline

#3256 2020-03-11 15:43:35

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

@ unklar

I grabbed the conkys from here

I also remember the today, tonight, tomorrow thing --- itching to play with it.

Mean time converting the conkys to v1.9


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3257 2020-03-11 16:00:29

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

Why do I not see this: 10days ??

${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3258 2020-03-11 16:10:22

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

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

Here is the complete, current code for bl-lithium and the background image to play.

-- https://forums.bunsenlabs.org/viewtopic.php?pid=1545#p1545
-- after a design idea from 2015 by @Sector11
-- https://forums.mageia.org/de/download/file.php?id=1352&mode=view
-- @unklar 2020-03-10
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	background = false,--true,
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	own_window_class = 'Conky',
--	own_window_color = '000000',
--	own_window_argb_visual = true,
--	own_window_argb_value = 200,

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

-- fiddle with window
	use_spacer = 'none', --right',left',
	use_xft = true,
	--font freesans -12
	xftalpha = 1.0,
	font = 'monofur:size=8',
	uppercase = false,

-- Update interval in seconds
	update_interval = 2, --1,

-- Minimum size of text area
	minimum_width = 185, minimum_height = 720,
	maximum_width = 185,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = false, --true,

-- Text stuff
	draw_outline = false, --true,
	draw_borders = false,
	stippled_borders = 0,
	draw_graph_borders = false,
	border_inner_margin = 10,
	border_outer_margin = 0,
	border_width = 0,

-- Default colors and also border colors, grey90 == #e5e5e5
	default_color = 'ffffff',
	color1 = 'ffffff', --949494',
	color2 = 'cyan',
	color3 = 'ed2323',

-- 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 = 80,

--imlib_cache_size = 0,
	imlib_cache_flush_interval = 900,
	max_user_text = 48552,

};

conky.text = [[${image $HOME/bin/com5.png -p 0,0 -s 185x720}\
${color1}${voffset 4}${font monofur:size=12}${alignc}WETTER ${color}${texeci 500 bash $HOME/Weather_com_conky_script/weather_com}
${image $HOME/Weather_com_conky_script/Forecast_Images/now.png -p 5,90 -s 40x40}\
${goto 20}${font monofur:size=10}${color1}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days} ${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)
${goto 20}${font}${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/10days}
${goto 60}MOND${color}${alignr 5} ${texeci 600 sed -n '17p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}${font}Hoch / Tief${color}${alignr 5} ${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/now}° / ${texeci 600 sed -n '5p' $HOME/Weather_com_conky_script/now}°
${goto 60}${color1}WIND${color}${alignr 5} ${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}UV INDEX${color}${alignr 5} ${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Sonnenaufgang${color}${alignr 5} ${texeci 600 sed -n '13p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Sonnenuntergang${color}${alignr 5} ${texeci 600 sed -n '15p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Luftdruck${color}${alignr 5} ${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Mondaufgang${color}${alignr 5} ${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Monduntergang${color}${alignr 5} ${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Fernsicht${color}${alignr 5} ${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Rel.Luftfeuchte${color}${alignr 5} ${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/now} %
${goto 60}${color1}Taupunkt${color}${alignr 5} ${texeci 600 sed -n '9p' $HOME/Weather_com_conky_script/now} °C
${color3}${voffset -4}${hr 1}${color}
${image $HOME/1_pixel_images/white_1.png -p 90,202 -s 1x335}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h2.png -p 105,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h3.png -p 105,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h4.png -p 105,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h5.png -p 105,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h6.png -p 105,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h7.png -p 105,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h8.png -p 105,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h9.png -p 105,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h10.png -p 105,505 -s 30x30}\
${if_match "${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}" == "Heute"}
${goto 60}${execi 3600 date  --date='1 day' '+%a. %e'}${goto 160}${tztime GMT-2 %H} h
${goto 55}${texeci 600 sed -n '71p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='2 day' '+%a. %e'}${goto 160}${tztime GMT-3 %H} h
${goto 55}${texeci 600 sed -n '133p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='3 day' '+%a. %e'}${goto 160}${tztime GMT-4 %H} h
${goto 55}${texeci 600 sed -n '195p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '61p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='4 day' '+%a. %e'}${goto 160}${tztime GMT-5 %H} h
${goto 55}${texeci 600 sed -n '257p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '90p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='5 day' '+%a. %e'}${goto 160}${tztime GMT-6 %H} h
${goto 55}${texeci 600 sed -n '319p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '119p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='6 day' '+%a. %e'}${goto 160}${tztime GMT-7 %H} h
${goto 55}${texeci 600 sed -n '381p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '148p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='7 day' '+%a. %e'}${goto 160}${tztime GMT-8 %H} h
${goto 55}${texeci 600 sed -n '443p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '177p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='8 day' '+%a. %e'}${goto 160}${tztime GMT-9 %H} h
${goto 55}${texeci 600 sed -n '505p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '206p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='9 day' '+%a. %e'}${goto 160}${tztime GMT-10 %H} h
${goto 55}${texeci 600 sed -n '567p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '235p' $HOME/Weather_com_conky_script/hourly}°
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 10,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 10,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 10,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 10,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 10,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 10,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 10,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 10,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 10,505 -s 30x30}\
${color3}${hr 1}${color}
${goto 20}${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${goto 20}${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${goto 20}${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${goto 20}${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}
${else}
${goto 60}${execi 3600 date  --date='1 day' '+%a. %e'}${goto 160}${tztime GMT-2 %H} h
${goto 55}${texeci 600 sed -n '40p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='2 day' '+%a. %e'}${goto 160}${tztime GMT-3 %H} h
${goto 55}${texeci 600 sed -n '133p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='3 day' '+%a. %e'}${goto 160}${tztime GMT-4 %H} h
${goto 55}${texeci 600 sed -n '195p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '61p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='4 day' '+%a. %e'}${goto 160}${tztime GMT-5 %H} h
${goto 55}${texeci 600 sed -n '257p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '90p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='5 day' '+%a. %e'}${goto 160}${tztime GMT-6 %H} h
${goto 55}${texeci 600 sed -n '319p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '119p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='6 day' '+%a. %e'}${goto 160}${tztime GMT-7 %H} h
${goto 55}${texeci 600 sed -n '381p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '148p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='7 day' '+%a. %e'}${goto 160}${tztime GMT-8 %H} h
${goto 55}${texeci 600 sed -n '443p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '177p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='8 day' '+%a. %e'}${goto 160}${tztime GMT-9 %H} h
${goto 55}${texeci 600 sed -n '505p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '206p' $HOME/Weather_com_conky_script/hourly}°
${color1}${hr 1}
${goto 60}${execi 3600 date  --date='9 day' '+%a. %e'}${goto 160}${tztime GMT-10 %H} h
${goto 55}${texeci 600 sed -n '567p' $HOME/Weather_com_conky_script/10days}°${goto 160}${texeci 600 sed -n '235p' $HOME/Weather_com_conky_script/hourly}°
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 10,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 10,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 10,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 10,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 10,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 10,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 10,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 10,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 10,505 -s 30x30}\
${color3}${hr 1}${color}
${goto 20}${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${goto 20}${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days | fold -s35}
${goto 20}${font monofur:size=10}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${goto 20}${color}${texeci 600 sed -n '52p' $HOME/Weather_com_conky_script/10days | fold -s35}
${endif}

]];

But, you have to fix your moon script first. wink

We are already older and have time, my friend.   big_smile

Offline

#3259 2020-03-11 16:14:39

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

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

First run after converting ... needs tweaking and a HUGE magnifying glass!
2020-03-11-130710-S11.jpg

How do you see that unklar?


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3260 2020-03-11 16:24:22

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

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

Teo,  smile
can you possibly conky "brake"?

Conky is just too fast for the work of your script.
I notice this again and again especially at the start of Conky and the changes of "Today", "Tonight", "Tomorrow" etc. The complete data is only available at the second run.
So, after 8.333333... minutes.

Please, it's just a question to your expertise.   cool

Offline

Board footer

Powered by FluxBB