You are not logged in.

#541 2016-01-12 00:09:20

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

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

@ Inodoro Pereyra
Yea ... does your conky boss know that?   wink

OK folks I have it
The barometer that loutch gave us using conkyForecast now uses: 2b)WUnderground API - All users - 2b_21-12-15
I need to play with colours a bit (for me)  and a LOT od code to cleanup as well
2016_01_11_20_11_35_Scrot11.png
I also have to move it, it's in a test directory.  Maybe to the wunderground directory, since it is using that script.
I'll include the 8 images - resized to 40x40 to fit here perfectly.
I also prefer this background image by lwfitz - of course it's an option.  smile
2016_01_11_21_00_58_Scrot11.jpg

Document the two LUA scripts and away we go ... tomorrow people ... sleep well.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#542 2016-01-12 10:49:08

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

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

WOW!
Wet tongue ...   roll
But, I have no time ...   :8

Offline

#543 2016-01-12 23:02:10

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

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

OK it has been running all day, without problems.  It was Rising for a while - Steady for a while and now it shows (Falling) at 1004
2016_01_12_15_07_38_Scrot11.png 2016_01_12_15_07_55_Scrot11.png 2016_01_12_15_08_17_Scrot11.png
2016_01_12_15_10_33_Scrot11.png 2016_01_12_15_11_17_Scrot11.png 2016_01_12_15_12_17_Scrot11.png

The archive, 2b_wun_barometer.tar.gz, has the original background image plus lwfitz's as shown, the conkyForecast images are included as well and all are resized to all ow using them as is.
The readme:

Adaption of conkyrc_barotext using conkyForecast to use TeoBigusGeekus's
2b_Wunderground_AP script by Sector11

All paths are still configured to my system, you will need to check:

barometer.conky
baro.lua
textwriting.lua - no paths but there is TEXT font and fontsize to look out
                  for.

Have the info your way.

Pressure_mb:
${execpi 90 sed -n '85p' /media/5/Conky/2b_Wunderground_API/Conditions}

Pressure_in:
${execpi 90 sed -n '85p' /media/5/Conky/2b_Wunderground_API/Conditions}

Current Temp °C
${execpi 90 sed -n '67p' /media/5/Conky/2b_Wunderground_API/Conditions}°

Current Temp °F
${execpi 90 sed -n '65p' /media/5/Conky/2b_Wunderground_API/Conditions}°

Feels Like °C
${execpi 90 sed -n '113p' /media/5/Conky/2b_Wunderground_API/Conditions}°

Feels Like °F
${execpi 90 sed -n '111p' /media/5/Conky/2b_Wunderground_API/Conditions}°

I've documented the two lua scripts a little to make making changes a little
easier.  I'm LUA challenged so take heed and enjoy.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#544 2016-01-12 23:33:23

Inodoro Pereyra
Member
Registered: 2015-11-04
Posts: 123

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

What's the problem with the "Stormy" legend in the dial? The "m" and "y" seem to be interfering one another... hmm


Imagination is intelligence having fun. (Albert Einstein)
The thing about the Internet is you can create a phrase, and make up its author, and everybody will fall for it. (Aristotle)

Offline

#545 2016-01-12 23:58:51

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

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

^ Looks like a font hinting issue between the "r" and "m" to me, so I guess the real questions are:
1.  Does LUA honor WM/DE font hinting settings?
2.  Do other fonts present the same character spacing problem in this script?

EDIT:  Looking at the top of the scale, I see an even bigger gap between the "r" and "y" in "Very Dry".

Last edited by pvsage (2016-01-13 00:00:35)


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#546 2016-01-13 01:03:25

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

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

Hey, I'm no LUA expert, this is mrpeachys' circle writing script. Ask him.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#547 2016-01-13 18:57:24

Inodoro Pereyra
Member
Registered: 2015-11-04
Posts: 123

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

Ok, I tried changing the font in the .lua scripts to a monospace font (I used Monofur), and the problem's been solved:

13_01_2016_15_53_scrot.jpg

So I guess now you can choose a more appropriate monospace font.  big_smile


Imagination is intelligence having fun. (Albert Einstein)
The thing about the Internet is you can create a phrase, and make up its author, and everybody will fall for it. (Aristotle)

Offline

#548 2016-01-13 21:27:09

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

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

Good to know ... yours looks clearer than mine.  I can read it, I couldn't when I tried my favourite mono font: Monofur.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#549 2016-01-14 17:58:01

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

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

2b moon phase still working as it should; I do not think there will be any problems with this thingy in the future, so....


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

#550 2016-01-14 17:59:15

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

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

ANNOUNCEMENT
Tiny update for the 2b script. New Moon and Full Moon weren't showing in the current moon info; a couple of regular expressions fixed the problem. Thanks to Inodoro Pereyra for the 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

#551 2016-01-14 19:38:59

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

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

Not a Full moon, can't howl my Thank you soooooooooooo....

How about just a plain old fashioned: Thank you IP

Good thing his last name isn't Smith  -  IPS  ]:D


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#552 2016-01-14 22:11:24

Inodoro Pereyra
Member
Registered: 2015-11-04
Posts: 123

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

I don't know what I did, but you're both welcome... big_smile


Imagination is intelligence having fun. (Albert Einstein)
The thing about the Internet is you can create a phrase, and make up its author, and everybody will fall for it. (Aristotle)

Offline

#553 2016-01-14 22:37:29

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

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

^ You found and fixed a Moon OOPS!

And you didn't even need to flush.   ]:D


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#554 2016-01-14 23:06:26

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

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

1b1_accuweather_images & 1c_accuweather_images_hourly
=-=-= Warning: CPU Intensive =-=-=

Redone here - much easier on CPU's

2016_01_14_17_35_46_Scrot11.jpg Conky v1.9.0

# pkill -xf "conky -c /media/5/Conky/1b1_accuweather_images/S11_1b1_int_9_plus.conky" &
# Works perfect: Thu 29 Oct 2015

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Teo's Accuweather
### ARGB can be used for real transparency - requires composite manager
### Plays hell on conky with images.
#  own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#  own_window_argb_value 100

minimum_size 160 00	# w|h
maximum_width 160

gap_x 5 # l|r
gap_y 5	# u|d

alignment tl
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
use_xft yes
xftfont monofur:bold:size=9
xftalpha 1.0
override_utf8_locale yes
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 A9A9A9 #DarkGray
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
# border margins
border_inner_margin 5
border_outer_margin 0
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
background yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes
##############################################  End Miscellaneous Section  ###

#${image /media/5/Conky/images/red+x.png
#${texeci 1200 bash /media/5/Conky/1b1_accuweather_images/1b1}\
#${texeci 1200 bash /media/5/Conky/1c_accuweather_images_hourly/1c}\
update_interval 1
TEXT
${image /media/5/Conky/images/bk_30.png -p 0,0 -s 160x748}\
 ${color5}Currently${color}${image /media/5/Conky/images/gainsboro_1.png -p 75,0 -s 1x748}\
  ${goto 85}Next 14 Hrs.
 ${color9}${execi 90 sed -n '29p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${color}
  ${goto 85}${execi 90 sed -n '2p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
${image /media/5/Conky/1b1_accuweather_images/cc.png -p 2,15 -s 70x42}
${image /media/5/Conky/1c_accuweather_images_hourly/20.png -p 105,37 -s 50x30}\
  ${goto 85}${execi 90 sed -n '52p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
      ${color8}±${execi 90 sed -n '30p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${color}\
  ${goto 85}±${execi 90 sed -n '61p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 ${execi 90 sed -n '33p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 82}${membar 0}
 UVI ${execi 90 sed -n '34p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '3p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 HUM ${execi 90 sed -n '32p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '53p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${image /media/5/Conky/1c_accuweather_images_hourly/23.png -p 105,89 -s 50x30}\
 DP  ${execi 90 sed -n '35p' /media/5/Conky/1b1_accuweather_images/curr_cond}°\
  ${goto 85}±${execi 90 sed -n '62p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 Wnd ${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 82}${membar 0}20
 @ ${execi 90 sed -n '38p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '4p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 Vis ${execi 90 sed -n '37p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '54p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${image /media/5/Conky/1c_accuweather_images_hourly/26.png -p 105,141 -s 50x30}\
 Cld ${execi 90 sed -n '36p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 85}±${execi 90 sed -n '63p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 ${color8}S ${execi 90 sed -n '39p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}\
  ${goto 82}${membar 0}
 ${color8}↓ ${execi 90 sed -n '40p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}\
  ${goto 85}${execi 90 sed -n '5p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 M ${execi 90 sed -n '41p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '55p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${image /media/5/Conky/1c_accuweather_images_hourly/29.png -p 105,193 -s 50x30}\
 ↓ ${execi 90 sed -n '42p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
  ${goto 85}±${execi 90 sed -n '64p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 ${color5}${time %a %e %b}${color}\
  ${goto 82}${membar 0}
 ${color9}${execi 90 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '6p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${image /media/5/Conky/1b1_accuweather_images/tod.png -p 25,232 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/32.png -p 105,245 -s 50x30}\
 ${color8}± ${execi 90 sed -n '27p' /media/5/Conky/1b1_accuweather_images/first_days}${color}\
  ${goto 85}${execi 90 sed -n '56p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 CoP  ${execi 90 sed -n '28p' /media/5/Conky/1b1_accuweather_images/first_days}\
  ${goto 85}±${execi 90 sed -n '65p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 ${color5}TONIGHT${color}  ${goto 82}${membar 0}
 ${color9}${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '7p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${image /media/5/Conky/1b1_accuweather_images/ton.png -p 25,287 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/35.png -p 105,297 -s 50x30}\
 ${color8}± ${execi 90 sed -n '32p' /media/5/Conky/1b1_accuweather_images/first_days}${color}\
  ${goto 85}${execi 90 sed -n '57p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 CoP  ${color}${execi 90 sed -n '33p' /media/5/Conky/1b1_accuweather_images/first_days}\
  ${goto 85}±${execi 90 sed -n '66p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 85}${execi 90 sed -n '8p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 ${color9}${execi 90 sed -n '4p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '58p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${image /media/5/Conky/1b1_accuweather_images/6.png -p 25,350 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/38.png -p 105,349 -s 50x30}\
 ${color7}${execi 90 sed -n '5p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '67p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 85}${execi 90 sed -n '9p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
 ${color9}${execi 90 sed -n '8p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '59p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${image /media/5/Conky/1b1_accuweather_images/11.png -p 25,400 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/41.png -p 105,401 -s 50x30}\
 ${color7}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '68p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${membar 0}
 ${color5}${color5}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 85}${execi 90 sed -n '2p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '13p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '52p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${image /media/5/Conky/1b1_accuweather_images/16.png -p 25,453 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/120.png -p 105,453 -s 50x30}\
 ${color7}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '61p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 85}${execi 90 sed -n '3p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '53p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${image /media/5/Conky/1b1_accuweather_images/21.png -p 25,507 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/123.png -p 105,505 -s 50x30}\
 ${color7}${execi 90 sed -n '10p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '62p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 85}${execi 90 sed -n '4p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '18p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '54p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${image /media/5/Conky/1b1_accuweather_images/last_2.png -p 25,560 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/126.png -p 105,557 -s 50x30}\
 ${color7}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '64p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 85}${execi 90 sed -n '5p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '23p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '55p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${image /media/5/Conky/1b1_accuweather_images/last_7.png -p 25,612 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/129.png -p 105,609 -s 50x30}\
 ${color7}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '65p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 85}${execi 90 sed -n '6p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '56p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${image /media/5/Conky/1b1_accuweather_images/last_12.png -p 25,663 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/132.png -p 105,661 -s 50x30}\
 ${color7}${execi 90 sed -n '15p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '66p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 85}${execi 90 sed -n '7p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '57p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${image /media/5/Conky/1b1_accuweather_images/last_17.png -p 25,715 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/135.png -p 105,713 -s 50x30}\
 ${color7}${execi 90 sed -n '20p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '67p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${membar 0}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#555 2016-01-15 18:08:35

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

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

Nice one S11.

EDIT: Added links in the first page.

Last edited by TeoBigusGeekus (2016-01-15 18:30:08)


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

#556 2016-01-15 20:58:43

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

@Sectro11: Great job Master Yoda

Luke wink  lol

Last edited by fvirgola80 (2016-01-15 20:59:46)


Nothing happens by chance

Offline

#557 2016-01-15 21:19:29

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

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

@Sector11

This beautiful work I have provided for German users in the Conky_Vers1.10  {)

conky.config = {
-- pkill -xf "conky -c /home/unklar/.1b1_images_1c_hourlyconkyrc" &
-- Works perfect: Thu 29 Oct 2015 Sector11 modify unklar 15.01.2016

--##  Begin Window Settings  ###
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	own_window_colour = '#000000',
	own_window_class = 'Conky',
	own_window_title = 'Teo Accuweather',

--## ARGB can be used for real transparency - requires composite manager
--## Plays hell on conky with images.
        own_window_argb_visual = true,-- Options: yes or no
--## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
        own_window_argb_value = 95,

	minimum_width = 160, minimum_height = 00,-- w|h
	maximum_width = 160,

	gap_x = 10,-- l|r
	gap_y = 45,-- u|d

	alignment = 'top_left',
--##  End Window Settings  ###
--##  Font Settings  ###
	use_xft = true,
	font = 'monofur:bold:size=9',
	xftalpha = 1.0,
	override_utf8_locale = true,
--##  End Font Settings  ###
--##  Color Settings  ###
	draw_shades = true,
	default_shade_color = '#000000',
	draw_outline = false,
	default_outline_color = '#000000',

	default_color = '#DCDCDC',--Gainsboro
	color0 = '#A9A9A9',--DarkGray
	color1 = '#778899',--LightSlateGray
	color2 = '#F5F5DC',--Beige
	color3 = '#87CEFA',--LightSkyBlue
	color4 = '#48D1CC',--MediumTurquoise
	color5 = '#FFDEAD',--NavajoWhite
	color6 = '#00BFFF',--DeepSkyBlue
	color7 = '#B0E0E6',--PowderBlue
	color8 = '#FFD700',--Gold
	color9 = '#FFA07A',--LightSalmon
--##  End Color Settings  ###
--##  Borders Section  ###
-- border margins
	border_inner_margin = 5,
	border_outer_margin = 0,
--##  End Borders Secton  ###
--##  Miscellaneous Section  ###
	background = true,
	use_spacer = 'none',
	no_buffers = true,
	imlib_cache_size = 0,
	double_buffer = true,
--##  End Miscellaneous Section  ###

--${image $HOME/images/red+x.png
--${texeci 1200 bash $HOME/1b1_images/1b1}\
--${texeci 1200 bash $HOME/1c_hourly/1c}\

	update_interval = 2,

};

conky.text = [[
${texeci 1200 bash $HOME/1b1_images/1b1}\
${texeci 1200 bash $HOME/1c_hourly/1c}\
${image $HOME/1_pixel_images/bk_30.png -p 0,0 -s 160x748}\
 ${color5}Aktuell${color}${image $HOME/1_pixel_images/cyan_1.png -p 75,0 -s 1x748}\
  ${goto 85}Next 14 Std.
 ${color9}${execi 90 sed -n '29p' $HOME/1b1_images/curr_cond}°${color}
  ${goto 85}${execi 90 sed -n '2p' $HOME/1c_hourly/hourly_raw1}\
${image $HOME/1b1_images/cc.png -p 2,15 -s 70x42}
${image $HOME/1c_hourly/20.png -p 105,37 -s 50x30}\
  ${goto 85}${execi 90 sed -n '52p' $HOME/1c_hourly/hourly_raw1}
      ${color8}±${execi 90 sed -n '30p' $HOME/1b1_images/curr_cond}°${color}\
  ${goto 85}±${execi 90 sed -n '61p' $HOME/1c_hourly/hourly_raw1}
 ${execi 90 sed -n '33p' $HOME/1b1_images/curr_cond}\
  ${goto 82}${membar 0}
 UVI ${execi 90 sed -n '34p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '3p' $HOME/1c_hourly/hourly_raw1}
 HUM ${execi 90 sed -n '32p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '53p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/23.png -p 105,89 -s 50x30}\
 DP  ${execi 90 sed -n '35p' $HOME/1b1_images/curr_cond}°\
  ${goto 85}±${execi 90 sed -n '62p' $HOME/1c_hourly/hourly_raw1}
 Wnd ${execi 90 sed -n '31p' $HOME/1b1_images/curr_cond}\
  ${goto 82}${membar 0}20
 @ ${execi 90 sed -n '38p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '4p' $HOME/1c_hourly/hourly_raw1}
 Vis ${execi 90 sed -n '37p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '54p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/26.png -p 105,141 -s 50x30}\
 Cld ${execi 90 sed -n '36p' $HOME/1b1_images/curr_cond}\
  ${goto 85}±${execi 90 sed -n '63p' $HOME/1c_hourly/hourly_raw1}
 ${color8}S ${execi 90 sed -n '39p' $HOME/1b1_images/curr_cond}${color}\
  ${goto 82}${membar 0}
 ${color8}↓ ${execi 90 sed -n '40p' $HOME/1b1_images/curr_cond}${color}\
  ${goto 85}${execi 90 sed -n '5p' $HOME/1c_hourly/hourly_raw1}
 M ${execi 90 sed -n '41p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '55p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/29.png -p 105,193 -s 50x30}\
 ↓ ${execi 90 sed -n '42p' $HOME/1b1_images/curr_cond}\
  ${goto 85}±${execi 90 sed -n '64p' $HOME/1c_hourly/hourly_raw1}
 ${color5}${time %a %e %b}${color}\
  ${goto 82}${membar 0}
 ${color9}${execi 90 sed -n '26p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '6p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/tod.png -p 25,232 -s 50x30}\
${image $HOME/1c_hourly/32.png -p 105,245 -s 50x30}\
 ${color8}± ${execi 90 sed -n '27p' $HOME/1b1_images/first_days}${color}\
  ${goto 85}${execi 90 sed -n '56p' $HOME/1c_hourly/hourly_raw1}
 CoP  ${execi 90 sed -n '28p' $HOME/1b1_images/first_days}\
  ${goto 85}±${execi 90 sed -n '65p' $HOME/1c_hourly/hourly_raw1}
 ${color5}Heute Abend${color}  ${goto 82}${membar 0}
 ${color9}${execi 90 sed -n '31p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '7p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/ton.png -p 25,287 -s 50x30}\
${image $HOME/1c_hourly/35.png -p 105,297 -s 50x30}\
 ${color8}± ${execi 90 sed -n '32p' $HOME/1b1_images/first_days}${color}\
  ${goto 85}${execi 90 sed -n '57p' $HOME/1c_hourly/hourly_raw1}
 CoP  ${color}${execi 90 sed -n '33p' $HOME/1b1_images/first_days}\
  ${goto 85}±${execi 90 sed -n '66p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '8p' $HOME/1c_hourly/hourly_raw1}
 ${color9}${execi 90 sed -n '4p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '58p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/6.png -p 25,350 -s 50x30}\
${image $HOME/1c_hourly/38.png -p 105,349 -s 50x30}\
 ${color7}${execi 90 sed -n '5p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '67p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '9p' $HOME/1c_hourly/hourly_raw1}
 ${color9}${execi 90 sed -n '8p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '59p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/11.png -p 25,400 -s 50x30}\
${image $HOME/1c_hourly/41.png -p 105,401 -s 50x30}\
 ${color7}${execi 90 sed -n '9p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '68p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${color5}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '2p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '13p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '52p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/16.png -p 25,453 -s 50x30}\
${image $HOME/1c_hourly/120.png -p 105,453 -s 50x30}\
 ${color7}${execi 90 sed -n '14p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '61p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '3p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '9p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '53p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/21.png -p 25,507 -s 50x30}\
${image $HOME/1c_hourly/123.png -p 105,505 -s 50x30}\
 ${color7}${execi 90 sed -n '10p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '62p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '4p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '18p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '54p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_2.png -p 25,560 -s 50x30}\
${image $HOME/1c_hourly/126.png -p 105,557 -s 50x30}\
 ${color7}${execi 90 sed -n '19p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '64p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '5p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '23p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '55p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_7.png -p 25,612 -s 50x30}\
${image $HOME/1c_hourly/129.png -p 105,609 -s 50x30}\
 ${color7}${execi 90 sed -n '24p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '65p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '6p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '14p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '56p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_12.png -p 25,663 -s 50x30}\
${image $HOME/1c_hourly/132.png -p 105,661 -s 50x30}\
 ${color7}${execi 90 sed -n '15p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '66p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '7p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '19p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '57p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_17.png -p 25,715 -s 50x30}\
${image $HOME/1c_hourly/135.png -p 105,713 -s 50x30}\
 ${color7}${execi 90 sed -n '20p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '67p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
]];

Edit: update_interval changed to 2

Last edited by unklar (2016-01-17 20:48:40)

Offline

#558 2016-01-16 07:55:28

Detroiter_Overseas
New Member
Registered: 2016-01-16
Posts: 2

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

Any idea how these scripts can display Fahrenheit temperatures for non-U.S. locations, or Celsius temps in the U.S.? At least with Accuweather.com using Teo's script 1a, the raw data pulled by wget and deposited in the _raw files seems to be dependent on location. I couldn't find anything in the scripts or the prior posts in this thread that will allow one to force Accuweather to provide Fahrenheit or Celsius without regard to location. Using the _usa scripts for a non-U.S. location just yields the Celsius temperature with an F after it. Am I missing something?

Reason for this question being that I'm an American living abroad for the time being and my family doesn't yet understand that in this part of the world, thirty degrees means a hot day rather than a cold one.

Maybe the simplest way to achieve this would be to call a simple bash script to convert the temperatures in the curr_cond, last_days and tod_ton files before the weather information is displayed.

Offline

#559 2016-01-16 10:56:27

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

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

@Detroiter_Overseas - Welcome to Bunsen forums and Teo's weather hangout.

2b_Wunderground_API does exactly what you want.
The 2b_wun_Conditions.companion.conky
2016_01_16_07_42_00_Scrot11.jpg

Temps: lines 64-67
Wind: lines 74-83
Pressure: 84-87
Dew Point 90-95
etc etc ...

There are three other companion conkys to help as well:
2b_wun_Forecast.companion.conky
2b_wun_Moon_Sun.companion.conky
2b_wun_Simple_Forecast.companion.conky

It even has "today" "tonight" images so you can put the high with today and the low with tonight.  smile
2016_01_16_07_53_46_Scrot11.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#560 2016-01-16 19:54:24

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

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

@ ToeBigusGeekus - fvirgola80 & unklar.

Thank you.

@ unklar, nice to know v1.10 is getting some love too!  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB