You are not logged in.

#2626 2019-08-26 15:12:27

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 146
Website

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

Yes, it's a regular text file formated with markdown:
https://github.com/adam-p/markdown-here … Cheatsheet

You can always check the source by clicking raw:
https://github.com/robbyrussell/oh-my-z … /README.md
https://raw.githubusercontent.com/robby … /README.md

Last edited by morfik (2019-08-26 15:14:40)

Offline

#2627 2019-08-26 15:21:37

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

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

TeoBigusGeekus wrote:

About pre_exec, have you looked at this?

First I have seen it.  From 2012 to 2018 to get that fix that is some sort of code-foo and not something built into conky.

AND each lines need a new file name.  I have one conky that has 54 lines with ${pre_exec} in it.  There are others.

So which i is simpler:

54lines like this:

${texecpi 10000 if [ ! -e /tmp/t001conky ]; conkyDateDiff 19831111; touch /tmp/t001conky; fi }${goto 305}${texecpi 10000 if [ ! -e /tmp/t002conky ]; conkyDaysDiff 19831111; touch /tmp/t002conky; fi }
${texecpi 10000 if [ ! -e /tmp/t003conky ]; conkyDateDiff 20110522; touch /tmp/t003conky; fi }${goto 305}${texecpi 10000 if [ ! -e /tmp/t004conky ]; conkyDaysDiff 20110222; touch /tmp/t004conky; fi }
... {snip}
${texecpi 10000 if [ ! -e /tmp/t051conky ]; conkyDateDiff 20100818; touch /tmp/t051conky; fi }${goto 305}${texecpi 10000 if [ ! -e /tmp/t052conky ]; conkyDaysDiff 19831111; touch /tmp/t052conky; fi }
${texecpi 10000 if [ ! -e /tmp/t053conky ];  conkyDateDiff 19891207; touch /tmp/t053conky; fi }${goto 305}${texecpi 10000 if [ ! -e /tmp/t054conky ]; conkyDaysDiff 19891207; touch /tmp/t054conky; fi }

or 54 lines like this:

  RSW: 11/11/83: ${color1}${pre_exec conkyDateDiff 19831111}${goto 305}${color5}${pre_exec conkyDaysDiff 19831111}${color}
  R&T: 22/05/11: ${color1}${pre_exec conkyDateDiff 20110522}${goto 305}${color5}${pre_exec conkyDaysDiff 20110222}${color}
... {snip}
  RW2: 18/08/10: ${color1}${pre_exec conkyDateDiff 20100818}${goto 305}${color5}${pre_exec conkyDaysDiff 20100818}${color}
  TAR: 07/12/89: ${color1}${pre_exec conkyDateDiff 19891207}${goto 305}${color5}${pre_exec conkyDaysDiff 19891207}${color}

pre_exec in action

Considering I have 0 editing to do by using conky v1.9 for the conkys I run daily - not the 3000, a fair chunk which are v1.10.  They are all an historical archive of tips-n-tricks.


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

Offline

#2628 2019-08-26 15:24:08

ragamatrix
Member
Registered: 2015-10-04
Posts: 423

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

Teo,
is it normal there isn't Forecast_Images folder for the new pack of wunderground?
@loutch thanks a lot conky "collègue"  smile

Last edited by ragamatrix (2019-08-26 15:28:53)

Offline

#2629 2019-08-26 16:12:58

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

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

morfik wrote:

Ok, it looks promising. I have a lot to do in the future...

@S11
Ok buddy, whatever suits you. The workaround does seem like too much work for 3000+ conky config files...

ragamatrix wrote:

Teo,
is it normal there isn't Forecast_Images folder for the new pack of wunderground?
@loutch thanks a lot conky "collègue"  smile

No, it's completely abnormal.
Wait a few minutes...
EDIT: Crap, git does not push empty folders

Last edited by TeoBigusGeekus (2019-08-26 16:23:39)


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

#2630 2019-08-26 16:30:50

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 146
Website

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

TeoBigusGeekus wrote:

EDIT: Crap, git does not push empty folders

You can do the following:
https://stackoverflow.com/questions/115 … repository

Offline

#2631 2019-08-26 16:33:27

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

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

ANNOUNCEMENT
I moved the 2_WUnderground RL3 to gitlab as well.
Link on the first post of the thread.


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

#2632 2019-08-26 16:34:32

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

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

morfik wrote:
TeoBigusGeekus wrote:

EDIT: Crap, git does not push empty folders

You can do the following:
https://stackoverflow.com/questions/115 … repository

I just added an empty .gitkeep file inside the empty folders of both the Accuweather and WUnderground scripts.


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

#2633 2019-08-26 16:39:18

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 146
Website

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

Also fix the temp bug, see the merge request. smile

Offline

#2634 2019-08-26 16:41:39

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

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

morfik wrote:

Also fix the temp bug, see the merge request. smile

Do you mean the changelog?

EDIT: Nevermind, found your comment. I'll attend to it as soon as I can.

Last edited by TeoBigusGeekus (2019-08-26 16:42:55)


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

#2635 2019-08-26 16:42:35

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 146
Website

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

Offline

#2636 2019-08-26 16:45:25

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

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

I answered.


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

#2637 2019-08-26 17:37:20

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 146
Website

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

Ok, I just converted my conky, it looks like it works. smile

Last edited by morfik (2019-08-26 19:55:15)

Offline

#2638 2019-08-26 20:32:31

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

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

Major screw up on this one, see my answer on gitlab and wait for an update.


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

#2639 2019-08-26 20:39:28

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 146
Website

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

Also, add the .gitignore file and put there a list of all the files that will be downloaded and change with time, for instance:

.conky/1_accuweather/altogether*
.conky/1_accuweather/curr_cond*
.conky/1_accuweather/first_days*
.conky/1_accuweather/forecast_2015/*.png
.conky/1_accuweather/forecast_2016/*.png
.conky/1_accuweather/hourly*
.conky/1_accuweather/hourly_2015/*.png
.conky/1_accuweather/hourly_2016/*.png
.conky/1_accuweather/hourly_raw*
.conky/1_accuweather/last_days*
.conky/1_accuweather/daily_forecast
.conky/4_Moon/*.png
.conky/4_Moon/raw
.conky/4_Moon/*.jpg

Having these files in the .gitignore file makes git to ignore them and you won't see them when you issue "git add" and other related commands.

Offline

#2640 2019-08-26 21:03:16

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

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

morfik wrote:

Also, add the .gitignore file and put there a list of all the files that will be downloaded and change with time, for instance:

.conky/1_accuweather/altogether*
.conky/1_accuweather/curr_cond*
.conky/1_accuweather/first_days*
.conky/1_accuweather/forecast_2015/*.png
.conky/1_accuweather/forecast_2016/*.png
.conky/1_accuweather/hourly*
.conky/1_accuweather/hourly_2015/*.png
.conky/1_accuweather/hourly_2016/*.png
.conky/1_accuweather/hourly_raw*
.conky/1_accuweather/last_days*
.conky/1_accuweather/daily_forecast
.conky/4_Moon/*.png
.conky/4_Moon/raw
.conky/4_Moon/*.jpg

Having these files in the .gitignore file makes git to ignore them and you won't see them when you issue "git add" and other related commands.

No need for that, I keep a clean copy of the script folder for git.


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

#2641 2019-08-26 21:06:24

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

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

The 1_accuweather repository has been updated.
Thanks to morfik for the valuable advice and sharp eyes.


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

#2642 2019-08-26 21:14:48

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 146
Website

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

TeoBigusGeekus wrote:

No need for that, I keep a clean copy of the script folder for git.

Yes, but those who will clone and want to contribute, they will see those files. So it's a good thing to have such list of files that ppl shouldn't care about.

Offline

#2643 2019-08-26 21:22:51

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

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

You're saying that if anyone wants to contribute to the project, the .gitignore file will protect them from pushing unnecessary files to the project, like daily_forecast, hourly or even forecast images.


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

#2644 2019-08-26 21:56:15

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 146
Website

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

Yes, something like that. Basically they won't be notified about any changes to those files, and they can focus only on those files that really matter.

Offline

#2645 2019-08-27 05:36:35

ohnonot
...again
Registered: 2015-09-29
Posts: 4,932
Website

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

TeoBigusGeekus wrote:

But this time I actually did it and I'm very glad about it; thanks again mate!

That's nice to hear!

Sector11 wrote:

@ohnonot:  gevile or msevil what's the difference? MS acquired GitHub in Oct 2018

A valid remark.
I never recommended github specifically (however they do still have the best documentation).
And oh, TBG already moved on to gitlab.com!
Well done.

FWIW, there's some valid concerns about gitlab.com as well. Not to the point of recommending to avoid it, but still.

PS: incidentally found this while searching. Could come in handy big_smile

Last edited by ohnonot (2019-08-27 05:54:07)


BL quote proposals to this thread please.
my repos / my repos

Offline

#2646 2019-08-27 07:51:20

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

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

@Teo,
Thank you so much for doing this! In this short time and all the work with the two scripts.
I am impressed with the ease with which you do it.  angel

@morfik, many thanks also to you for your support in setting up gitlab. cool

@ohnonot, thanks for your informative links. I didn't know that and am surprised - and, also again not! So, the conscious Linuxer goes round in circles, so to speak.   cry

Offline

#2647 2019-08-27 07:57:17

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

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

Teo,
my experiences when changing from github - gitlab, you can do a lot wrong. wink

I am such a guy who likes to pick up old and proven ones. At the latest, when github asks me this morning for the user password, I knew it.
Old braids must be consistently cut off, otherwise the new one works, practical procedures not!

git clone https://gitlab.com/teobigusgeekus/1_accuweather.git
fatal: Zielpfad '1_accuweather' existiert bereits und ist kein leeres Verzeichnis.

Both scripts (accuweather + wu) are working fine so far and I'm still looking for the practical implementation in my files.   big_smile

Offline

#2648 2019-08-27 14:23:38

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

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

Man oh man what a flurry of activity.

To echo unklar:  Teo - as usual you are the man!  Thank you so much for what you do.

ohnonot & morfik - awesome support and very very much appreciated.

Real Life, like Teo, is eating up much of my time.  I have yet to get the latest scripts but this is my working Wunderground script - I think it is the second one Teo came out with. Had to modify it a tad to get spacing issues sorted, and I've put it in a box as this is the only weather I have currently. It will be re-formatted to S11 style eventually.   But I have an entry in OpenBox, call it up, look at it and close it.

2019-08-27_110550_Scrot11.th.jpg

And the conky v1.9 code.

# pkill -xf "conky -c /media/5/Conky/2_Wunderground/wunder.conky" &
# works perfect - Tue 27 Aug 2019 11:19:16

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints below,skip_taskbar,skip_pager #,undecorated
own_window_class Conky
own_window_title Wunder Conky

# Use the Xdbe extension? (eliminates flicker)
double_buffer yes

minimum_size 385 0  ## w|h
maximum_width 385

gap_x 80 #0 # l|r
gap_y 80 #0 # u|d


alignment tl # mm
###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Fantasque Sans Mono:bold:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes #### <<<----- To see it easier on light screens.
default_shade_color 000000
draw_outline no #### <<<----- Amplifies text if yes OJO with changing fonts
default_outline_color 000000

#default_color DCDCDC #220 220 220	Gainsboro
default_color C0C0C0 #192 192 192 Silver
#default_color B0E0E6 #176 224 230 PowderBlue
#default_color F5F5DC # Beige
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 D8BFD8 #216 191 216 Thistle
color3 87CEFA #135 206 250 LightSkyBlue
color4 48D1CC # 72 209 204 MediumTurquoise
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF #  0 191 255 DeepSkyBlue
color7 B0E0E6 #176 224 230 PowderBlue
color8 FFFFE0 #255 255 224 LightYellow
color9 CD5C5C #205  92  92 IndianRed
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes
#default_graph_size 15 40

#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

## Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value
## if you use $image lots.		Set to 0 to disable the image cache.
imlib_cache_size 0
##############################################  End Miscellaneous Section  ###
update_interval 1

TEXT
${color FDB72E}WEATHER ${hr 2}${color}${texeci 500 bash /media/5/Conky/2_Wunderground/2_wun}
${image /media/5/Conky/2_Wunderground/Forecast_Images/current.png -p 0,15 -s 155x155}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/Moon_phase.png -p 285,45 -s 40x40}\
${goto 180}${execpi 600 sed -n '88p' /media/5/Conky/2_Wunderground/curr_cond|cut -c1-20}
${goto 180}${execpi 600 sed -n '88p' /media/5/Conky/2_Wunderground/curr_cond|cut -c21-40}
${goto 180}${execpi 600 sed -n '52p' /media/5/Conky/2_Wunderground/curr_cond}° \
(${execpi 600 sed -n '58p' /media/5/Conky/2_Wunderground/curr_cond}°)
${goto 180}${execpi 600 sed -n '1p' /media/5/Conky/2_Wunderground/moon_data}\



${goto 180}${color FDB72E}        WIND: ${color}${execpi 600 sed -n '82p' /media/5/Conky/2_Wunderground/curr_cond} \
${execpi 600 sed -n '86p' /media/5/Conky/2_Wunderground/curr_cond}km/h
${goto 180}${color FDB72E}  VISIBILITY: ${color}${execpi 600 sed -n '78p' /media/5/Conky/2_Wunderground/curr_cond} km
${goto 180}${color FDB72E}    PRESSURE: ${color}${execpi 600 sed -n '30p' /media/5/Conky/2_Wunderground/curr_cond}hPa
${goto 180}${color FDB72E}    HUMIDITY: ${color}${execpi 600 sed -n '36p' /media/5/Conky/2_Wunderground/curr_cond} %
${goto 180}${color FDB72E}    UV INDEX: ${color}${execpi 600 sed -n '72p' /media/5/Conky/2_Wunderground/curr_cond}
${goto 180}${color FDB72E}PRECIP. (6h): ${color}${execpi 600 sed -n '22p' /media/5/Conky/2_Wunderground/curr_cond} mm
 ${color FDB72E}SUNRISE: ${color}${execpi 600 sed -n '44p' /media/5/Conky/2_Wunderground/curr_cond|cut -c1-5}\
${goto 180}${color FDB72E}MOONRISE: ${color}${execpi 600 sed -n '2p' /media/5/Conky/2_Wunderground/moon_data|cut -c1-5}
  ${color FDB72E}SUNSET: ${color}${execpi 600 sed -n '48p' /media/5/Conky/2_Wunderground/curr_cond|cut -c1-5}\
${goto 180}${color FDB72E} MOONSET: ${color}${execpi 600 sed -n '3p' /media/5/Conky/2_Wunderground/moon_data|cut -c1-5}
${hr 1}
${if_match "${execpi 600 sed -n '2p' /media/5/Conky/2_Wunderground/10days}" == "Tonight"}${color FDB72E}\
${execpi 600 sed -n '2p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}ZD\
${goto 210}${execpi 600 sed -n '100p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}${color}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/1.png -p 0,235 -s 55x55}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/2.png -p 190,235 -s 55x55}
${goto 70}- /${execpi 600 sed -n '12p' /media/5/Conky/2_Wunderground/10days}°\
${goto 260}${execpi 600 sed -n '110p' /media/5/Conky/2_Wunderground/10days}°/${execpi 600 sed -n '208p' /media/5/Conky/2_Wunderground/10days}°
${goto 70}${execpi 600 sed -n '46p' /media/5/Conky/2_Wunderground/10days} ${execpi 600 sed -n '42p' /media/5/Conky/2_Wunderground/10days}km/h\
${goto 260}${execpi 600 sed -n '144p' /media/5/Conky/2_Wunderground/10days} ${execpi 600 sed -n '140p' /media/5/Conky/2_Wunderground/10days}km/h
${goto 70}${execpi 600 sed -n '26p' /media/5/Conky/2_Wunderground/10days}\
${goto 260}${execpi 600 sed -n '124p' /media/5/Conky/2_Wunderground/10days}
${hr}
${color FDB72E}${execpi 600 sed -n '296p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}\
${goto 135}${execpi 600 sed -n '492p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}\
${goto 260}${execpi 600 sed -n '688p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/4.png -p 0,305 -s 55x55}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/6.png -p 130,305 -s 55x55}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/8.png -p 255,305 -s 55x55}${color}

${goto 070}${execpi 600 sed -n '306p' /media/5/Conky/2_Wunderground/10days}°\
${goto 200}${execpi 600 sed -n '502p' /media/5/Conky/2_Wunderground/10days}°\
${goto 325}${execpi 600 sed -n '698p' /media/5/Conky/2_Wunderground/10days}°
${goto 080}${execpi 600 sed -n '404p' /media/5/Conky/2_Wunderground/10days}°\
${goto 210}${execpi 600 sed -n '600p' /media/5/Conky/2_Wunderground/10days}°\
${goto 335}${execpi 600 sed -n '796p' /media/5/Conky/2_Wunderground/10days}°

${execpi 600 sed -n '320p' /media/5/Conky/2_Wunderground/10days}\
${goto 135}${execpi 600 sed -n '516p' /media/5/Conky/2_Wunderground/10days}\
${goto 260}${execpi 600 sed -n '712p' /media/5/Conky/2_Wunderground/10days}
${hr 1}
${color FDB72E}${goto 22}${execpi 600 sed -n '884p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 87}${execpi 600 sed -n '1080p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 150}${execpi 600 sed -n '1276p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 215}${execpi 600 sed -n '1472p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 280}${execpi 600 sed -n '1668p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 345}${execpi 600 sed -n '1864p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${color}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/10.png -p 0,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/12.png -p 65,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/14.png -p 130,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/16.png -p 195,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/18.png -p 260,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/20.png -p 325,405 -s 50x50}




${execpi 600 sed -n '894p' /media/5/Conky/2_Wunderground/10days}°\
${goto 72}${execpi 600 sed -n '1090p' /media/5/Conky/2_Wunderground/10days}°\
${goto 135}${execpi 600 sed -n '1286p' /media/5/Conky/2_Wunderground/10days}°\
${goto 200}${execpi 600 sed -n '1482p' /media/5/Conky/2_Wunderground/10days}°\
${goto 265}${execpi 600 sed -n '1678p' /media/5/Conky/2_Wunderground/10days}°\
${goto 332}${execpi 600 sed -n '1874p' /media/5/Conky/2_Wunderground/10days}°
${color3}${goto 35}${execpi 600 sed -n '992p' /media/5/Conky/2_Wunderground/10days}°\
${goto 100}${execpi 600 sed -n '1188p' /media/5/Conky/2_Wunderground/10days}°\
${goto 165}${execpi 600 sed -n '1384p' /media/5/Conky/2_Wunderground/10days}°\
${goto 230}${execpi 600 sed -n '1580p' /media/5/Conky/2_Wunderground/10days}°\
${goto 290}${execpi 600 sed -n '1776p' /media/5/Conky/2_Wunderground/10days}°\
${goto 360}${execpi 600 sed -n '1972p' /media/5/Conky/2_Wunderground/10days}°
${else}${color FDB72E}${execpi 600 sed -n '2p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}\
${goto 210}${execpi 600 sed -n '100p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}${color}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/1.png -p 0,235 -s 55x55}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/2.png -p 190,235 -s 55x55}
${goto 100}${execpi 600 sed -n '12p' /media/5/Conky/2_Wunderground/10days}°\
${goto 290}- /${execpi 600 sed -n '110p' /media/5/Conky/2_Wunderground/10days}°
${goto 100}${execpi 600 sed -n '46p' /media/5/Conky/2_Wunderground/10days} ${execpi 600 sed -n '42p' /media/5/Conky/2_Wunderground/10days}km/h\
${goto 290}${execpi 600 sed -n '144p' /media/5/Conky/2_Wunderground/10days} ${execpi 600 sed -n '140p' /media/5/Conky/2_Wunderground/10days}km/h
${goto 100}${execpi 600 sed -n '26p' /media/5/Conky/2_Wunderground/10days}\
${goto 290}${execpi 600 sed -n '124p' /media/5/Conky/2_Wunderground/10days}
${hr 1}
${color FDB72E}${execpi 600 sed -n '200p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}\
${goto 150}${execpi 600 sed -n '396p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}\
${goto 280}${execpi 600 sed -n '592p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z}${color}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/3.png -p 0,305 -s 55x55}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/5.png -p 130,305 -s 55x55}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/7.png -p 255,305 -s 55x55}

${goto 70}${execpi 600 sed -n '208p' /media/5/Conky/2_Wunderground/10days}°\
${goto 200}${execpi 600 sed -n '404p' /media/5/Conky/2_Wunderground/10days}°\
${goto 325}${execpi 600 sed -n '600p' /media/5/Conky/2_Wunderground/10days}°
${goto 80}${execpi 600 sed -n '306p' /media/5/Conky/2_Wunderground/10days}°\
${goto 210}${execpi 600 sed -n '502p' /media/5/Conky/2_Wunderground/10days}°\
${goto 335}${execpi 600 sed -n '698p' /media/5/Conky/2_Wunderground/10days}°

${execpi 600 sed -n '222p' /media/5/Conky/2_Wunderground/10days}\
${goto 150}${execpi 600 sed -n '418p' /media/5/Conky/2_Wunderground/10days}\
${goto 280}${execpi 600 sed -n '614p' /media/5/Conky/2_Wunderground/10days}
${hr 1}
${color FDB72E}${goto 25}${execpi 600 sed -n '786p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 87}${execpi 600 sed -n '982p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 150}${execpi 600 sed -n '1178p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 215}${execpi 600 sed -n '1374p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 280}${execpi 600 sed -n '1570p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}\
${goto 345}${execpi 600 sed -n '1766p' /media/5/Conky/2_Wunderground/10days|tr a-z A-Z|cut -c1-3}${color}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/9.png -p 0,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/11.png -p 65,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/13.png -p 130,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/15.png -p 195,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/17.png -p 260,405 -s 50x50}\
${image /media/5/Conky/2_Wunderground/Forecast_Images/19.png -p 325,405 -s 50x50}




${execpi 600 sed -n '796p' /media/5/Conky/2_Wunderground/10days}°\
${goto 72}${execpi 600 sed -n '992p' /media/5/Conky/2_Wunderground/10days}°\
${goto 135}${execpi 600 sed -n '1188p' /media/5/Conky/2_Wunderground/10days}°\
${goto 200}${execpi 600 sed -n '1384p' /media/5/Conky/2_Wunderground/10days}°\
${goto 265}${execpi 600 sed -n '1580p' /media/5/Conky/2_Wunderground/10days}°\
${goto 332}${execpi 600 sed -n '1776p' /media/5/Conky/2_Wunderground/10days}°
${color3}${goto 35}${execpi 600 sed -n '894p' /media/5/Conky/2_Wunderground/10days}°\
${goto 100}${execpi 600 sed -n '1090p' /media/5/Conky/2_Wunderground/10days}°\
${goto 165}${execpi 600 sed -n '1286p' /media/5/Conky/2_Wunderground/10days}°\
${goto 230}${execpi 600 sed -n '1482p' /media/5/Conky/2_Wunderground/10days}°\
${goto 290}${execpi 600 sed -n '1678p' /media/5/Conky/2_Wunderground/10days}°\
${goto 360}${execpi 600 sed -n '1874p' /media/5/Conky/2_Wunderground/10days}°
${endif}

NOTE:  Everything under TEXT should work perfectly in a v1.10+ conky


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

Offline

#2649 2019-08-27 14:46:56

ragamatrix
Member
Registered: 2015-10-04
Posts: 423

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

great job all !
I made another, and add a blinking blue command in case of cold T° under 5°... Ready for winter smile

${font Fira Mono:Style=Bold:size=15}${goto 100}${if_match ${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}<5}°${color lightblue}${blink ${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}°}${else}${color orange}${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}°${endif}${font}${color}\

conky-wu-v-10-10-hours:

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,sticky',
	own_window_argb_visual = true,
	own_window_argb_value = 100,
-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,
	text_buffer_size = 2048,
-- fiddle with window
	use_spacer = 'none',
	use_xft = true,
	background = true,
-- Update interval in seconds
	update_interval = 1,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
-- Minimum size of text area
	minimum_width = 255, minimum_height = 280,
	maximum_width = 255,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = false,
	default_shade_color = '#000000',
	draw_outline = true,
	default_outline_color = '#000000',
-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	--fonts tests:
--JD LCD Rounded:style=Bold
--LCDMono2
--Lucida Sans
--Neogrey
--PF Tempesta Five Condensed
--PF Tempesta Five Compressed
--Visitor TT1 BRK:Medium:size=9
--Anonymous Pro:Medium:size=8
--Terminus
--Fira Mono
	font = 'Fira Mono:size=10', --important for shades
	template0 = 'Fira Mono:size=11',
	template1 = 'Fira Mono:size=11',

	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

--border_inner_margin = '9',
-- border width
	border_width = 10,

-- Default colors and also border colors, grey90 == #e5e5e5
	--default_color = '#cbcbcb',
	--color1  = '#505454', 
	--own_window_colour = 'brown',
	--own_window_transparent = true,
-- color
	default_color = 'cbcbcb',
	color0 = '98FB98', --PaleGreen
	color1 = '778899', --LightSlateGray
	color2 = 'FFD700', --Gold
	color3 = 'B0E0E6', --PowderBlue
	color4 = 'F4A460', --SandyBrown
	color5 = 'DEB887', --BurlyWood
	color6 = '00BFFF', --DeepSkyBlue
	color7 = '5F9EA0', --CadetBlue
	color8 = 'FFA500', --Orange
	color9 = 'FF4500', --OrangeRed
	

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

-- Gap between borders of screen and text
	gap_x = 50,
	gap_y = 80,

	imlib_cache_size = 0,
-- script lua	
	lua_load = '~/.conky/script/image.lua',
--[[
#${lua conky_draw_bg 4 0 0 0 155 0x000000 0.3}\
#${lua conky_draw_bg 4 0 165 0 50 0x000000 0.3}\
#${lua conky_draw_bg 4 0 225 0 65 0x000000 0.3}\
#${lua conky_draw_bg 4 0 0 0 290 0x000000 0.4}\
--]]
};

conky.text = [[
${execi 600 bash $HOME/2_Wunderground/2_wun}\
${voffset -10}${font Fira Mono:Style=Bold:size=15}${color1}${alignc}${time %A %e %B}${color}${font}
${font Fira Mono:Style=Bold:size=15}${goto 100}${if_match ${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}<5}°${color lightblue}${blink ${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}°}${else}${color orange}${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}°${endif}${font}${color}\
${alignr}${voffset 10}${font Open Sans:size=7}${execpi 600 sed -n '1p' $HOME/2_Wunderground/moon_data}${font}
${alignc}${execpi 600 sed -n '88p' $HOME/2_Wunderground/curr_cond|cut -c1-20}
${alignc}${execpi 600 sed -n '88p' $HOME/2_Wunderground/curr_cond|cut -c21-40}${color}
${voffset -30}
${goto 4}Wind ${execpi 600 sed -n '82p' $HOME/2_Wunderground/curr_cond} \
${alignr}${execpi 600 sed -n '88p' $HOME/2_Wunderground/curr_cond|cut -c21-40}
${goto 4}${execpi 600 sed -n '86p' $HOME/2_Wunderground/curr_cond} km/h\
${alignr}${execpi 600 sed -n '36p' $HOME/2_Wunderground/curr_cond} % Hum
${goto 4}${execpi 600 sed -n '30p' $HOME/2_Wunderground/curr_cond} mb\
${alignr}${execpi 600 sed -n '22p' $HOME/2_Wunderground/curr_cond} mm Prec
${goto 4}Sunrise: ${color8}${execpi 600 sed -n '44p' $HOME/2_Wunderground/curr_cond|cut -c1-5} \
${alignr}${color}Sunset: ${color1}${execpi 600 sed -n '48p' $HOME/2_Wunderground/curr_cond|cut -c1-5}${color}
${goto 4}± ${execpi 600 sed -n '58p' $HOME/2_Wunderground/curr_cond}°\
${alignr}Vis ${execpi 600 sed -n '78p' $HOME/2_Wunderground/curr_cond} Km${color}
#${goto 4}UV Index: ${execpi 600 sed -n '72p' $HOME/2_Wunderground/curr_cond}
${color5}${hr 1}
##--bloc heures##
${voffset 30}${goto 4}${execi 600 echo `date --date "2 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 60}${execi 600 echo `date --date "4 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 116}${execi 600 echo `date --date "6 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 172}${execi 600 echo `date --date "8 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 228}${execi 600 echo `date --date "10 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${voffset 15}${color8}${goto 4}${execpi 600  sed -n '80p' $HOME/2_Wunderground/hourly}°\
${goto 60}${execi 600  sed -n '226p' $HOME/2_Wunderground/hourly}°\
${goto 116}${execi 600  sed -n '372p' $HOME/2_Wunderground/hourly}°\
${goto 172}${execi 600  sed -n '518p' $HOME/2_Wunderground/hourly}°\
${goto 228}${execi 600  sed -n '664p' $HOME/2_Wunderground/hourly}°\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/Moon_phase.png 220 10 40 40}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/current.png 90 70 75 75}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h2.png 3 185 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h4.png 59 185 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h6.png 115 185 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h8.png 171 185 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h10.png 227 185 30 30}${color}\
##-fin-bloc heures#
${voffset 50}${goto 6}${execi 600 echo `date --date "1 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 62}${execi 600 echo `date --date "2 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 118}${execi 600 echo `date --date "3 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 174}${execi 600 echo `date --date "4 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 230}${execi 600 echo `date --date "5 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${voffset 15}${color3}${goto 6}${execpi 600  sed -n '110p' $HOME/2_Wunderground/10days}°\
${goto 66}${execi 600  sed -n '208p' $HOME/2_Wunderground/10days}°\
${goto 122}${execi 600  sed -n '306p' $HOME/2_Wunderground/10days}°\
${goto 178}${execi 600  sed -n '404p' $HOME/2_Wunderground/10days}°\
${goto 234}${execi 600  sed -n '502p' $HOME/2_Wunderground/10days}°\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/2.png 3 310 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/3.png 59 310 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/4.png 115 310 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/5.png 171 310 30 30}\
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/6.png 227 310 30 30}\
${voffset 40}${color8}${goto 16}${execpi 600 sed -n '112p' $HOME/2_Wunderground/10days}°\
${goto 76}${execpi 600 sed -n '210p' $HOME/2_Wunderground/10days}°\
${goto 132}${execpi 600 sed -n '308p' $HOME/2_Wunderground/10days}°\
${goto 188}${execpi 600 sed -n '406p' $HOME/2_Wunderground/10days}°\
${goto 244}${execpi 600 sed -n '504p' $HOME/2_Wunderground/10days}°${color}\
]];

pic:
wu-10hrs_2019-08-27_16-45-46.png

Offline

#2650 2019-08-27 15:33:55

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

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

Hello


@ theo

i modify my accuweather script with new syntax & it work great

1566919828.png

Great Job


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

Offline

Board footer

Powered by FluxBB