SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1351 2014-02-25 18:06:24

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

lockheed wrote:

Thanks guys for your help. It is a nice forum.

By the way, I fixed the transparency problem with this:

own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 255
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

We may not be the nicest forum on the net, but we're way ahead of whichever is in second place. angel angel

I'm looking at your "own_window" section and thinking ... you should comment out: own_window_transparent yes to get the real power in the "argb" settings.

You shouldn't "need" the argb settings, at all, mind you that would result in a pseudo transparency ...  big_smile

A test with one of my conkys (commented out draw-bg.lua):

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky
own_window_title S11 Vertical
### ARGB - used for real transparency
own_window_argb_visual yes
own_window_argb_value 0  ## 0 to 255

I get a real transparent window despite what setting - 0 to 255 (or any number in between) - it is set to:
2014_02_25_14_29_51_1920x1080_Sector11.jpg
... because I'm still using:

own_window_transparent yes

own_window_transparent
     Boolean, set transparency? If ARGB visual is enabled, sets background opacity to 0%.

set that to "own_window_transparent no" or comment it out and now:

### ARGB - used for real transparency
own_window_argb_visual yes
own_window_argb_value 100  ## 0 to 255

displays a shaded background of the conky window: 2014_02_25_14_44_22_1920x1080_Sector11.jpg

It's missing the flexibility of draw-bg.lua to do

  • rounded corners

  • colours

  • circles (rounded corners to match height|width), and

  • multiple calls in one conky

but for the fastest simplest background shading going, no lua required: PRICELESS! cool

One "gotchya" though you must be really careful with the "window size"

# Minimum size of text area
minimum_size 1550 86
maximum_width 1550

and if to use "voffset", ie: ${voffset 10}, counter them with an opposite, ${voffset -10}, at the end of the line.
Goto/offset/voffset and Spacing in Conky

draw-bg.lua magic in action:

TEXT
${lua conky_draw_bg 10 0 0 480 87 0x000000 0.6}\
${lua conky_draw_bg 30 105 5 60 60 0xffffff 0.5}\
${lua conky_draw_bg 40 522 0 75 87 0xff0000 0.6}\
${lua conky_draw_bg 10 640 0 75 87 0x00ff00 0.6}\
${lua conky_draw_bg 10 760 0 75 87 0x0000ff 0.6}\
${lua conky_draw_bg 10 880 0 75 87 0x000000 0.6}\
${lua conky_draw_bg 10 1000 0 75 87 0x000000 0.6}\
${lua conky_draw_bg 10 1120 0 75 87 0x000000 0.6}\
${lua conky_draw_bg 10 1240 0 75 87 0x000000 0.6}\
${lua conky_draw_bg 10 1360 0 75 87 0x000000 0.6}\
${lua conky_draw_bg 10 1480 0 75 87 0x000000 0.6}

2014_02_25_15_03_53_1617x129_Sector11.jpg
Check out the white circle behind the moon, etc etc.

Last edited by Sector11 (2014-02-25 18:19:12)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Help fund CrunchBang, donate to the project!

#1352 2014-02-25 20:29:42

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

I just remembered this ... ARGB Visual, dk75's writeup on argb and images in conky.

So if you're running conkys with images and a composite manager ... be advised ... there are side affects!

Last edited by Sector11 (2014-02-25 20:33:44)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1353 2014-02-25 21:51:48

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Sector11 wrote:

Maybe "poedit"?  conkyForecast used to use .po files for different languages:

 25 Feb 14 | 10:21:49 ~
    $ sho poedit
Package: poedit                          
State: installed
Automatically installed: no
Version: 1.5.4-1
Priority: optional
Section: text
Maintainer: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Architecture: amd64
Uncompressed Size: 3,508 k
Depends: libc6 (>= 2.2.5), libdb5.1++, libgcc1 (>= 1:4.1.1), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.8.0),
         libgtkspell0 (>= 2.0.10), libstdc++6 (>= 4.1.1), libwxbase2.8-0 (>= 2.8.12.1), libwxgtk2.8-0 (>= 2.8.12.1),
         gettext
Description: gettext catalog editor
 Poedit is an editor for gettext catalogs (.po files). It aims to provide a convenient approach to editing catalogs. It
 features UTF-8 support, fuzzy and untranslated records highlighting, whitespace highlighting, references browser,
 header editing and can be used to create new catalogs or update existing catalogs from source code with a single
 click. It is built with wxWidgets toolkit.
Homepage: http://www.poedit.net/

 
 25 Feb 14 | 10:22:02 ~
    $ 

Example - English to Spanish: http://s20.postimg.org/mx34jk2o9/2014_02_25_10_25_42_780x662_Sector11.jpg

These already exist (but for weather.com)

  • /usr/share/conkyforecast/locale/bg - Bulgarian

  • /usr/share/conkyforecast/locale/cs - Czech

  • /usr/share/conkyforecast/locale/de - German

  • /usr/share/conkyforecast/locale/es - Spanish

  • /usr/share/conkyforecast/locale/fj - Fijian

  • /usr/share/conkyforecast/locale/fr - French

  • /usr/share/conkyforecast/locale/it - Italian

  • /usr/share/conkyforecast/locale/lt - Lithuanian

  • /usr/share/conkyforecast/locale/nl - Dutch / Flemish

  • /usr/share/conkyforecast/locale/pl - Polish

  • /usr/share/conkyforecast/locale/ro - Romanian

  • /usr/share/conkyforecast/locale/sk - Slovak

  • /usr/share/conkyforecast/locale/sv - Swedish

  • /usr/share/conkyforecast/locale/zh - Chinese

They were submitted by cF users.  Just a thought.

I have no idea how they were implemented in cF or if / how they would work with bash scripts.

This could work for the translation part - but there still would exist the inconsistencies of the same page in different languages.


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

#1354 2014-02-25 23:44:42

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

TeoBigusGeekus wrote:

This could work for the translation part - but there still would exist the inconsistencies of the same page in different languages.

OK, now I'm lost.

Earlier you mentioned going through a raw file and changing the things in the script.

But if people just got English pages (as they did with cF) and then let the .po do the translations no problems.

Or did I miss something?

Last edited by Sector11 (2014-02-25 23:45:12)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1355 2014-02-26 10:29:51

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Sector11 wrote:

OK, now I'm lost.

Earlier you mentioned going through a raw file and changing the things in the script.

But if people just got English pages (as they did with cF) and then let the .po do the translations no problems.

Or did I miss something?

Sorry, what I meant was that the translation in some cases might not be enough.
I remember characteristically the case of a guy from Poland, whose home town did get weather messages when read in English, but no weather messages when read in Polish.
This type of inconsistency is why I abandoned the different translations of the script (I had French, Spanish, Polish, Greek and German versions): it was a pain in the butt to maintain them - each one had its own peculiarities...


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

#1356 2014-02-26 16:54:21

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

TeoBigusGeekus wrote:

Sorry, what I meant was that the translation in some cases might not be enough.
I remember characteristically the case of a guy from Poland, whose home town did get weather messages when read in English, but no weather messages when read in Polish.
This type of inconsistency is why I abandoned the different translations of the script (I had French, Spanish, Polish, Greek and German versions): it was a pain in the butt to maintain them - each one had its own peculiarities...

I don't remember your scripts in different languages ... maybe it's my forgetter or they existed and died  before I 'discovered' your scripts.  wink

I get it now.  Yea, the 'poedit' files would only work if the user used the English page for their weather and wanted the output in their language. 

That could be done ... with the users being responsible for their own translation to their language.  They could package the .mo and .po files for other users if they wanted.  At which point CPS could host them.

--------------------------------------------------------------------------
'Thinking' out loud - more like 'thinking  on keyboard' ...

Still a big undertaking on your part though, you'd have to 're-create' each script to use the extra 'poedit' files, if they existed and default to English if they didn't.

Example: Spanish ( /es/ ) - using naming and path structure from cF for example only ...

Accuweather

  • /usr/share/Teo-weather/locale/1a/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/1a/es/LC_MESSAGES/teo-weather.po

  • /usr/share/Teo-weather/locale/1b1/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/1b1/es/LC_MESSAGES/teo-weather.po

  • /usr/share/Teo-weather/locale/1b2/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/1b2/es/LC_MESSAGES/teo-weather.po

  • /usr/share/Teo-weather/locale/1c/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/1c/es/LC_MESSAGES/teo-weather.po

  • /usr/share/Teo-weather/locale/1d/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/1d/es/LC_MESSAGES/teo-weather.po

The accuweather scripts could very possibly use the same files so all of the above could become:

  • /usr/share/Teo-weather/locale/acc/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/acc/es/LC_MESSAGES/teo-weather.po

... yea ... much easier!

Then comes wunderground ...

  • /usr/share/Teo-weather/locale/2a/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/2a/es/LC_MESSAGES/teo-weather.po

  • /usr/share/Teo-weather/locale/2b/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/2b/es/LC_MESSAGES/teo-weather.po

... maybe they too could become:

  • /usr/share/Teo-weather/locale/wun/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/wun/es/LC_MESSAGES/teo-weather.po

NWS XML - USA users

  • /usr/share/Teo-weather/locale/NWS/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/NWS/es/LC_MESSAGES/teo-weather.po

... don't think it doesn't need any, after all, I'm a Canuck in a Spanish speaking country and a friend, Manuel, is Mexican in the US.  big_smile

weather.com

  • /usr/share/Teo-weather/locale/4/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/4/es/LC_MESSAGES/teo-weather.po

... here you could use the existing files from conkyForecast as seen in my earlier post: #1349 2014-02-25 10:45:14 - 14 languages already done!

Moon Phases - oh what a nightmare that might be - or maybe not.

  • /usr/share/Teo-weather/locale/moon/es/LC_MESSAGES/teo-weather.mo

  • /usr/share/Teo-weather/locale/moon/es/LC_MESSAGES/teo-weather.po

Regarding the path structure, maybe it could just as easily be something like:

  • ~/2b_Wunderground_API/locale/wun/es/LC_MESSAGES/teo-weather.mo

  • ~/2b_Wunderground_API/locale/wun/es/LC_MESSAGES/teo-weather.po

or

  • ~/2b_Wunderground_API/locale/es.mo

  • ~/2b_Wunderground_API/locale/es.po

. . . but what do I know

I should have kept my mouth shut.  big_smile
Really sorry if I opened a can of worms for you.
I'll finish my milk and cookies and go home ...


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1357 2014-02-26 21:19:13

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Sorry mate, too much for me at the moment...
By the looks of it, it seems easier for me to offer free english lessons than get into all this trouble.


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

#1358 2014-02-26 21:30:56

lockheed
Member
Registered: 2013-06-13
Posts: 40

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

Guys, I have another problem. This time it's on the system that I though works fine.

I am using 1b2)Accuweather - ConkyWeather font - 1b2_12-2-14 but the weather never updates. It stays the same since several days (not even weekdays update), regardless of several reboots.

Here are the config files:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 355

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown
own_window_transparent yes

# 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 280
gap_y 30

imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen

TEXT
#${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}
${font Arial:size=10}${execpi 600 sed -n '1p' $HOME/1b2_accuweather_conkyweather_font/messages}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°C (${execpi 600 sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°C)
${font conkyweather:size=100}${execi 600  sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${font}
${voffset -130}${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/curr_cond} ${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '37p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°C
${goto 200}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '34p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '38p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '35p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '36p' $HOME/1b2_accuweather_conkyweather_font/curr_cond} 
${goto 200}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}/${execpi 600 sed -n '41p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}/${execpi 600 sed -n '42p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${hr 1}
${goto 50}${font Arial:size=10}${color ffe595}TODAY$color$font${goto 230}${font Arial:size=10}${color ffe595}TONIGHT$color$font
${goto 30}${font conkyweather:size=75}${execi 600  sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 210}${voffset -75}${font conkyweather:size=75}${execi 600  sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}
${voffset -70}${goto 145}${execpi 600 sed -n '26p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 340}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C
${goto 140}(${execpi 600 sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C)${goto 335}(${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C)


${font Arial:size=8}${execpi 600 sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 195}${execpi 600 sed -n '3p' $HOME/1b2_accuweather_conkyweather_font/messages}$font
Chance of Precip: ${execpi 600 sed -n '28p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 195}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/first_days}
${hr 1}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 270}${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/first_days}$color${font}
${goto 30}${font conkyweather:size=50}${execi 600  sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 140}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 260}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}
${voffset -40}${font Arial:size=8}${goto 100}${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 210}${execpi 600 sed -n '13p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 330}${execpi 600 sed -n '18p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C
${goto 100}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 210}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 330}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C
#!/bin/bash

#function: test_image
test_image () {
    case $1 in
         1)
           echo a
         ;;
         2|3)
           echo b 
         ;;
         4|5)
           echo c
         ;;
         6)
           echo d
         ;;
         7)
           echo e
         ;;
         8)
           echo f
         ;;
         11)
           echo 0
         ;;
         12)
           echo h
         ;;
         13|14)
           echo g
         ;;
         15)
           echo m
         ;;
         16|17)
           echo k
         ;;
         18)
           echo i
         ;;
         19)
           echo q
         ;;
         20|21|23)
           echo o
         ;;
         22)
           echo r
         ;;
         24|31)
           echo E
         ;;
         25)
           echo v
         ;;
         26)
           echo x
         ;;
         29)
           echo y
         ;;
         30)
           echo 5
         ;;
         32)
           echo 6
         ;;
         33)
           echo A
         ;;
         34|35)
           echo B
         ;;
         36|37)
           echo C
         ;;
         38)
           echo D
         ;;
         39|40)
           echo G
         ;;
         41|42)
           echo K
         ;;
         43|44)
           echo O
         ;;
         *)
		   echo -
		 ;;   
        esac
} 

#put your Accuweather address here
#address="http://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
address="http://www.accuweather.com/en/pl/tarnow/274457/weather-forecast/274457"
#address="http://www.accuweather.com/en/de/magdeburg/39104/weather-forecast/171293"

loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')

curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
addr2="$addr1"?day=6

kill -STOP $(pidof conky)
killall wget

wget --save-cookies $HOME/1b2_accuweather_conkyweather_font/cookie -O $HOME/1b2_accuweather_conkyweather_font/curr_cond_raw $curr_addr
wget --load-cookies $HOME/1b2_accuweather_conkyweather_font/cookie -O $HOME/1b2_accuweather_conkyweather_font/first_days_raw $addr1
wget --load-cookies $HOME/1b2_accuweather_conkyweather_font/cookie -O $HOME/1b2_accuweather_conkyweather_font/last_days_raw $addr2

#Current Conditions - curr_cond file
if [[ -s $HOME/1b2_accuweather_conkyweather_font/curr_cond_raw ]]; then

    egrep -i '"detail-tab-panel |>Today<\/a>|>Tonight<\/a>|>Early AM<\/a>|>Overnight<\/a>|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|var d = '\''|var s = '\''|Humidity: |Pressure: |Cloud Cover: |UV Index: |Dew Point: |Precipitation(1 hr): |Visibility: |"start">|"finish">' $HOME/1b2_accuweather_conkyweather_font/curr_cond_raw > $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' -e 's/RealFeel/\n/g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/^.*"#">//g' -e 's/^.*<strong class="temp"//g' -e 's/^>//g' -e 's/<span>&deg.*$//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/<\/a>.*$//g' -e 's/\/span> //g' -e 's/var d = //g' -e 's/var s = //g' -e 's/"temp">/\n/g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/^.*"start">//g' -e 's/^.*"finish">//g' -e 's/<li>//g' -e 's/<strong>//g' -e 's/<<span.*$//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/<\/span>//g' -e 's/<\/strong><\/li>//g' -e 's/ "><\/div>//g' -e 's/'\''//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/"><\/div>//g' -e 's/^.*; //g' -e 's/&#.*$//g' -e 's/ i-alarm.*$//g' -e 's/;//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/Humidity: //g' -e 's/Pressure: //g' -e 's/Cloud Cover: //g' -e 's/UV Index: //g' -e 's/Dew Point: //g' -e 's/Visibility: //g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/^.*detail-tab-panel //g' -e 's/">//g' -e 's/\r//g' -e 's/ *$//g' -e 's/mb.*$/mb/g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/-s\|-xl.*$//g' -e 's/in &.*$/in/g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    time=$(sed -n 1p $HOME/1b2_accuweather_conkyweather_font/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 3a- $HOME/1b2_accuweather_conkyweather_font/curr_cond
	fi
    line35=$(sed -n 35p $HOME/1b2_accuweather_conkyweather_font/curr_cond)
    sed -i '35d' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i 35a$line35 $HOME/1b2_accuweather_conkyweather_font/curr_cond
	image=$(sed -n 27p $HOME/1b2_accuweather_conkyweather_font/curr_cond)
	sed -i 27s/$image/$(test_image $image)/ $HOME/1b2_accuweather_conkyweather_font/curr_cond
fi


#First 5days - first_days file 
if [[ -s $HOME/1b2_accuweather_conkyweather_font/first_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/1b2_accuweather_conkyweather_font/first_days_raw
    egrep -i '>Today<|<p>[a-z]|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/1b2_accuweather_conkyweather_font/first_days_raw > $HOME/1b2_accuweather_conkyweather_font/first_days

    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/1b2_accuweather_conkyweather_font/first_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/1b2_accuweather_conkyweather_font/first_days
    sed -i -e 's/<p>//g' -e 's/<\/p>//g' -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e '/realfeel/s/^.*; //g' $HOME/1b2_accuweather_conkyweather_font/first_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/1b2_accuweather_conkyweather_font/first_days
	sed -i -e 's/Today/TODAY/' -e 's/Mon$/MONDAY/' -e 's/Tue$/TUESDAY/' -e 's/Wed$/WEDNESDAY/' -e 's/Thu$/THURSDAY/' -e 's/Fri$/FRIDAY/' -e 's/Sat$/SATURDAY/' -e 's/Sun$/SUNDAY/' $HOME/1b2_accuweather_conkyweather_font/first_days
    sed -i 's/-s\|-l.*$//g' $HOME/1b2_accuweather_conkyweather_font/first_days
    time=$(sed -n 1p $HOME/1b2_accuweather_conkyweather_font/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 2a- $HOME/1b2_accuweather_conkyweather_font/first_days
	fi
	L1=$(sed -n 1p $HOME/1b2_accuweather_conkyweather_font/first_days)
    if [[ $L1 == TODAY ]]; then
        sed -i 1d $HOME/1b2_accuweather_conkyweather_font/first_days
	fi
	for (( i=6; i<=21; i+=5 ))
	  do
	      image_raw=$(sed -n "${i}"p $HOME/1b2_accuweather_conkyweather_font/first_days)
	      sed -i ${i}s/$image_raw/$(test_image $image_raw)/ $HOME/1b2_accuweather_conkyweather_font/first_days
	  done
    image_raw=$(sed -n 25p $HOME/1b2_accuweather_conkyweather_font/first_days)
	sed -i 25s/$image_raw/$(test_image $image_raw)/ $HOME/1b2_accuweather_conkyweather_font/first_days
    image_raw=$(sed -n 30p $HOME/1b2_accuweather_conkyweather_font/first_days)
	sed -i 30s/$image_raw/$(test_image $image_raw)/ $HOME/1b2_accuweather_conkyweather_font/first_days

fi


#Last 5days - last_days file 
if [[ -s $HOME/1b2_accuweather_conkyweather_font/last_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/1b2_accuweather_conkyweather_font/last_days_raw
    egrep -i '>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/1b2_accuweather_conkyweather_font/last_days_raw > $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/1b2_accuweather_conkyweather_font/last_days
	sed -i -e 's/Mon$/MONDAY/' -e 's/Tue$/TUESDAY/' -e 's/Wed$/WEDNESDAY/' -e 's/Thu$/THURSDAY/' -e 's/Fri$/FRIDAY/' -e 's/Sat$/SATURDAY/' -e 's/Sun$/SUNDAY/' $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i 's/-s\|-l.*$//g' $HOME/1b2_accuweather_conkyweather_font/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
	      image_raw=$(sed -n "${i}"p $HOME/1b2_accuweather_conkyweather_font/last_days)
	      sed -i ${i}s/$image_raw/$(test_image $image_raw)/ $HOME/1b2_accuweather_conkyweather_font/last_days
	  done

fi

#messages file
sed -n 28p $HOME/1b2_accuweather_conkyweather_font/curr_cond | cut -c -20 > $HOME/1b2_accuweather_conkyweather_font/messages
sed -n 29p $HOME/1b2_accuweather_conkyweather_font/first_days | cut -c -20 >> $HOME/1b2_accuweather_conkyweather_font/messages
sed -n 34p $HOME/1b2_accuweather_conkyweather_font/first_days | cut -c -20 >> $HOME/1b2_accuweather_conkyweather_font/messages
for (( i=7; i<=22; i+=5 ))
  do
      sed -n ${i}p $HOME/1b2_accuweather_conkyweather_font/first_days | cut -c -20 >> $HOME/1b2_accuweather_conkyweather_font/messages
  done
for (( i=3; i<=23; i+=5 ))
  do
      sed -n ${i}p $HOME/1b2_accuweather_conkyweather_font/last_days | cut -c -20 >> $HOME/1b2_accuweather_conkyweather_font/messages
  done

kill -CONT $(pidof conky)

And the console output when run:

$ conky -c /home/juha/1b2_accuweather_conkyweather_font/.conkyrc_1b2_int
Conky: use_spacer should have an argument of left, right, or none.  'yes' seems to be some form of 'true', so defaulting to right.
Conky: /home/juha/1b2_accuweather_conkyweather_font/.conkyrc_1b2_int: 37: no such configuration: 'border_margin'
Conky: desktop window (c2) is root window
Conky: window type - override
Conky: drawing to created window (0x5800001)
Conky: drawing to double buffer

Offline

#1359 2014-02-26 21:41:50

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

TeoBigusGeekus wrote:

Sorry mate, too much for me at the moment...
By the looks of it, it seems easier for me to offer free english lessons than get into all this trouble.

lol  lol  lol  lol  lol  lol  don't apologize, there was no way I expected it to happen.

... the beauty of Teo's scripts bash scripts are:

  1. light weight (CPU resources)

  2. fast

  3. highly configurable

why mess with a winning combo.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1360 2014-02-26 21:53:37

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

@ lockheed

What happens if you run the script from a terminal?

 26 Feb 14 | 18:51:15 ~
    $ /media/5/1b2_accuweather_conkyweather_font/1b2
wget: no process found
--2014-02-26 18:51:17--  http://www.accuweather.com/en/us/los-angeles-ca/90012/current-weather/347625
Resolving www.accuweather.com (www.accuweather.com)... 200.42.33.81, 200.42.33.82
Connecting to www.accuweather.com (www.accuweather.com)|200.42.33.81|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/media/5//1b2_accuweather_conkyweather_font/curr_cond_raw’

    [ <=>                                                                          ] 86,761      --.-K/s   in 0.04s   

2014-02-26 18:51:18 (2.13 MB/s) - ‘/media/5//1b2_accuweather_conkyweather_font/curr_cond_raw’ saved [86761]

--2014-02-26 18:51:18--  http://www.accuweather.com/en/us/los-angeles-ca/90012/daily-weather-forecast/347625
Resolving www.accuweather.com (www.accuweather.com)... 200.42.33.82, 200.42.33.81
Connecting to www.accuweather.com (www.accuweather.com)|200.42.33.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/media/5//1b2_accuweather_conkyweather_font/first_days_raw’

    [ <=>                                                                          ] 87,555      --.-K/s   in 0.05s   

2014-02-26 18:51:19 (1.67 MB/s) - ‘/media/5//1b2_accuweather_conkyweather_font/first_days_raw’ saved [87555]

--2014-02-26 18:51:19--  http://www.accuweather.com/en/us/los-angeles-ca/90012/daily-weather-forecast/347625?day=6
Resolving www.accuweather.com (www.accuweather.com)... 200.42.33.82, 200.42.33.81
Connecting to www.accuweather.com (www.accuweather.com)|200.42.33.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/media/5//1b2_accuweather_conkyweather_font/last_days_raw’

    [ <=>                                                                          ] 87,409      --.-K/s   in 0.04s   

2014-02-26 18:51:19 (1.90 MB/s) - ‘/media/5//1b2_accuweather_conkyweather_font/last_days_raw’ saved [87409]

 
 26 Feb 14 | 18:51:20 ~
    $ 

Last edited by Sector11 (2014-02-26 21:55:46)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1361 2014-02-26 21:58:09

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

I just run the 1b2 script - everything's OK.
Please double check EVERYTHING and report back.


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

#1362 2014-02-26 22:03:02

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

^ HA!  This time I beat you.  devil   wink


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1363 2014-02-26 22:06:35

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

...till next time  mad  wink


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

Offline

#1364 2014-02-26 22:29:03

lockheed
Member
Registered: 2013-06-13
Posts: 40

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

Sector11 wrote:

@ lockheed

What happens if you run the script from a terminal?

$ ~/1b2_accuweather_conkyweather_font/1b2
wget: no process found
--2014-02-26 23:27:53--  http://www.accuweather.com/en/pl/tarnow/274457/current-weather/274457
Resolving www.accuweather.com (www.accuweather.com)... 217.212.225.72, 213.248.108.144
Connecting to www.accuweather.com (www.accuweather.com)|217.212.225.72|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/juha/1b2_accuweather_conkyweather_font/curr_cond_raw’

    [ <=>                                   ] 75,950      --.-K/s   in 0.07s   

2014-02-26 23:27:53 (1.04 MB/s) - ‘/home/juha/1b2_accuweather_conkyweather_font/curr_cond_raw’ saved [75950]

--2014-02-26 23:27:53--  http://www.accuweather.com/en/pl/tarnow/274457/daily-weather-forecast/274457
Resolving www.accuweather.com (www.accuweather.com)... 213.248.108.144, 217.212.225.72
Connecting to www.accuweather.com (www.accuweather.com)|213.248.108.144|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/juha/1b2_accuweather_conkyweather_font/first_days_raw’

    [ <=>                                   ] 76,635      --.-K/s   in 0.06s   

2014-02-26 23:27:54 (1.13 MB/s) - ‘/home/juha/1b2_accuweather_conkyweather_font/first_days_raw’ saved [76635]

--2014-02-26 23:27:54--  http://www.accuweather.com/en/pl/tarnow/274457/daily-weather-forecast/274457?day=6
Resolving www.accuweather.com (www.accuweather.com)... 217.212.225.72, 213.248.108.144
Connecting to www.accuweather.com (www.accuweather.com)|217.212.225.72|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/juha/1b2_accuweather_conkyweather_font/last_days_raw’

    [ <=>                                   ] 75,989      --.-K/s   in 0.07s   

2014-02-26 23:27:54 (1.11 MB/s) - ‘/home/juha/1b2_accuweather_conkyweather_font/last_days_raw’ saved [75989]

Looks alright to me.

Last edited by lockheed (2014-02-26 22:29:31)

Offline

#1365 2014-02-26 23:57:00

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

lockheed wrote:

Looks alright to me.

Yup, me too.

Try a test

while the conky is running ...  change the first line in the conky ... saving the ${texeci ...} above TEXT and "save" the conky:

#${texeci 500 bash /media/5/1b2_accuweather_conkyweather_font/1b2}
TEXT
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color

... everything should look the same ...
2014_02_26_20_28_59_1920x1080_Sector11.jpg

Now "cut" these files:
cookie
curr_cond
curr_cond_raw
first_days
first_days_raw
last_days
last_days_raw
messages

and paste them here:
~/1b2_accuweather_conkyweather_font/test/

you only have three files left:
~/1b2_accuweather_conkyweather_font/.conkyrc_1b2_int
~/1b2_accuweather_conkyweather_font/.conkyrc_1b2_usa
~/1b2_accuweather_conkyweather_font/1b2
2014_02_26_20_30_00_968x760_Sector11.jpg

kill the conky and restart it:

killall conky && conky -c ~/1b2_accuweather_conkyweather_font/.conkyrc_1b2_int &

you should see:
2014_02_26_20_39_56_1920x1080_Sector11.jpg

Now the fun part
1. Put the first line back as it was:

#${texeci 500 bash /media/5/1b2_accuweather_conkyweather_font/1b2}
TEXT
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash /media/5/1b2_accuweather_conkyweather_font/1b2}

2. while watching the directory in your file manager and the conky on the screen - SAVE THE CONKY!
2014_02_26_20_53_25_1920x1080_Sector11.jpg
That should have recreated the files and the conky should show on the screen.

I see I have an oops with the current condition font!  big_smile

Let us know.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1366 2014-02-26 23:58:31

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

TeoBigusGeekus wrote:

...till next time  mad  wink

kiss  ops  angel


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1367 2014-02-27 09:07:28

lockheed
Member
Registered: 2013-06-13
Posts: 40

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

Sector11 wrote:

2. while watching the directory in your file manager and the conky on the screen - SAVE THE CONKY!
http://s20.postimg.org/h8abfbwcp/2014_02_26_20_53_25_1920x1080_Sector11.jpg
That should have recreated the files and the conky should show on the screen.

Nope, it doesn't. It stays blank and files are not being created.

Since the 1b2 script works fine, it must be the problem with calling it inside conkyrc.
The only thing I changed there was the value of texeci 500 (is that 500 seconds?)

Offline

#1368 2014-02-27 12:30:36

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

lockheed wrote:

Since the 1b2 script works fine, it must be the problem with calling it inside conkyrc.

BINGO!

Since I didn't have /home/sector11/1b2_accuweather_conkyweather_font/ set up I created that directory and copied the 1b2 script verbatim from your post #1358, made it executable and executed it from thunar.

Worked like a charm!

Copied the conky from post #1358 and saved as

/home/sector11/1b2_accuweather_conkyweather_font/1b2.conky

By putting the .conky extension I get conky colour coded.

First thing I see: You have the first line after TEXT commented out.  Missed that when I looked at the code in the forum.  I'm getting old, even with my new glasses I didn't see it. Colour coding really helps. cool
2014_02_27_09_03_25_1334x491_Sector11.jpg
Sooooooooooo --- I uncommented it and changed:

use_spacer yes

to

use_spacer right

and

border_margin 9

to

border_inner_margin 9

Then I ran the conky .. I have your weather ( /pl/tarnow/274457/ ) on my desktop:
2014_02_27_09_12_45_395x540_Sector11.jpg

lockheed wrote:

The only thing I changed there was the value of texeci 500 (is that 500 seconds?)

Yes that is seconds.
Opinion:
...  but since the weather site only updates weather once an hour ... 1200 would be better (20 min)  - don't want to over stay your welcome at accuweather.com with too many calls.

Every

${execpi 600 sed ...

in the conky can be lowered ( ie 300 ) so the conky calls the cached files a little more often.  I use 1200 and 600, works well for me.

Last edited by Sector11 (2014-02-27 12:35:37)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1369 2014-02-27 12:48:07

lockheed
Member
Registered: 2013-06-13
Posts: 40

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

Sector11 wrote:

First thing I see: You have the first line after TEXT commented out.

Man, don't I feel stupid...

Offline

#1370 2014-02-27 12:54:14

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

lockheed wrote:
Sector11 wrote:

First thing I see: You have the first line after TEXT commented out.

Man, don't I feel stupid...

Naaaaaaaaa ... we all do it.  Relax.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1371 2014-03-01 15:47:04

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

2b)WUnderground API - All users - but literally could be one of them.

After seeing seth7's conky and his idea I had to dig out my old "all text" conky (it's been posted here a few times - try and find it though) and add a pure text weather section.
I had tried seth7's conky it didn't line up right - my guess is it was a font thing.

I copied #/media/5/Conky/S11_all-text.conky" to "/media/5/Conky/Teo_wun/S11_all-text_wun.conky" and tweaked it using Teo's 2b)WUnderground API - All users script

Since there are no images I turned on argb true transparency and shaded it to 150 and added the Weather section to the bottom:
2014_03_01_12_17_10_1920x1080_Sector11.jpg
KUDOS to seth7 for the idea

S11_all-text_wun.conky

# pkill -xf "conky -c /media/5/Conky/Teo_wun/S11_all-text_wun.conky" &
# conky -c /media/5/Conky/Teo_wun/S11_all-text_wun.conky &


# killall conky && conky -c /media/5/Conky/S11_all-text.conky &
# /media/5/Conky/SSC/ssc-all-text.conky
###  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 S11 All Text
### ARGB can be used for real transparency
 own_window_argb_visual yes
 own_window_argb_value 150

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

minimum_size 210 0     ## width, height
maximum_width 210      ## width

gap_x 10 # left-right
gap_y 10 # up-down

alignment tl
###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:bold:size=9
#xftfont WW Digital:size=10
#xftfont Anonymous Pro:size=9

# 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 #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
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 D8BFD8 #216 191 216 Thistle
color0 8FBC8F #DarkSeaGreen
color1 C0C0C0 # Silver
#color1 D3D3D3 #LightGrey
#color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
#color3 87CEFA #E0FFFF #LightCyan
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
#color7 5F9EA0 #CadetBlue
#color8 FFFFE0 #LightYellow
color8 FFD700 #Gold
#color8 F0E68C #Khaki
color9 FFA07A #LightSalmon
#color9 CD5C5C #IndianRed
#color9 FF0000 #Red
#####################################################  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 no

# 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

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 256

# 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

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Width for $top name value (default 15 characters)
top_name_width 6

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.3
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
# lua_draw_hook_post draw-bg 125 0 0 0 0 0x000000 0.01
#
# TEXT
#
#######################################################  End LUA Settings  ###

## │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
## ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣

## ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
## ░  ▒  ▓ ☺ ☻ ♥ ♦ ♣ ♠
## • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
## ¼ ½ ¾ ® ©

update_interval 1

TEXT
${execi 600 bash /media/5/Conky/Teo_wun/wunder}\
${goto 12}┌─ Time / Date Calcs
${goto 12}│${goto 30}├─ Time${goto 125}${time %T}
${goto 12}│${goto 30}├─ Date${goto 125}${time %a, %d %b %y}
${goto 12}│${goto 30}└─ Uptime${goto 125}${uptime}
${goto 12}├─ System
${goto 12}│${goto 30}├─ System${goto 125}${sysname}
${goto 12}│${goto 30}├─ OS${goto 125}${execi 86400 lsb_release -is} ${execi 86400 lsb_release -rs}
${goto 12}│${goto 30}├─ Kernel ${goto 125}${kernel}
${goto 12}│${goto 30}├─ Machine${goto 125}${machine}
${goto 12}│${goto 30}├─ ${exec xset q | grep Cap |awk '{print "Cap Lock     "$4}'}
${goto 12}│${goto 30}└─ ${exec xset q | grep Num |awk '{print "Num Lock     "$8}'}
${goto 12}├─ Sensors
${goto 12}│${goto 30}├─ CPU${goto 125}${platform f71882fg.2560 temp 1}°
${goto 12}│${goto 30}├─ CPU FAN${goto 125}${platform f71882fg.2560 fan 1}
${goto 12}│${goto 30}├─ MOBO${goto 125}${platform f71882fg.2560 temp 2}°
${goto 12}│${goto 30}├─ HDD${goto 125}${hddtemp /dev/sda}°
${goto 12}│${goto 30}└─ GPU${goto 125}${nvidia temp}°
${goto 12}├─ Memory${goto 125}${memmax}
${goto 12}│${goto 30}├─ In Use${goto 125}${mem} (${memperc}%)
${goto 12}│${goto 30}├─ Free${goto 125}${memfree}
${goto 12}│${goto 30}└─ Load Avg
${goto 12}│${goto 48}├─ 1 min${goto 125}${loadavg 1}
${goto 12}│${goto 48}├─ 5 min${goto 125}${loadavg 2}
${goto 12}│${goto 48}└─ 15 min${goto 125}${loadavg 3}
${goto 12}├─ ${pre_exec cat /proc/cpuinfo | grep -m 1 'model name' | cut -c14-37}
${goto 12}│${goto 30}├─ GHz${goto 125}${freq_g}
${goto 12}│${goto 30}├─ MHz${goto 125}${freq}
${goto 12}│${goto 30}└─ CPU Avg${goto 125}${cpu cpu0}%
${goto 12}│${goto 48}├─ CPU1${goto 125}${cpu cpu1}%
${goto 12}│${goto 48}├─ CPU2${goto 125}${cpu cpu2}%
${goto 12}│${goto 48}└─ CPU3${goto 125}${cpu cpu3}%
${goto 12}├─ Nvidia GPU
${goto 12}│${goto 30}├─ GPU MHz${goto 125}${nvidia gpufreq}
${goto 12}│${goto 30}├─ Mem MHz${goto 125}${nvidia memfreq}
${goto 12}│${goto 30}└─ Threshhold${goto 125}${nvidia threshold}°
${goto 12}├─ Storage
${goto 12}│${goto 30}├─ /R  ${fs_size /}${goto 125}Free: ${fs_free /}
${goto 12}│${goto 30}│${goto 52}└─ ${fs_used_perc /}% Used
${goto 12}│${goto 30}├─ /H  ${fs_size /home}${goto 125}Free: ${fs_free /home}
${goto 12}│${goto 30}│${goto 52}└─ ${fs_used_perc /home}% Used
${goto 12}│${goto 30}├─ /M5 ${fs_size /media/5}${goto 125}Free: ${fs_free /media/5}
${goto 12}│${goto 30}│${goto 52}└─ ${fs_used_perc /media/5}% Used
${goto 12}│${goto 30}└─ Diskio ${goto 125}${diskio}
${goto 12}│${goto 48}├─ Read${goto 125}${diskio_read}
${goto 12}│${goto 48}└─ Write${goto 125}${diskio_write}
${goto 12}├─ Processes ─ Running ${running_processes}
${goto 12}│${goto 30}├─ Total${goto 125}${processes}
${goto 12}│${goto 30}├─ CPU
${goto 12}│${goto 30}│${goto 48}├─ ${top name 1}${goto 113}${top cpu 1}${top mem 1}
${goto 12}│${goto 30}│${goto 48}├─ ${top name 2}${goto 113}${top cpu 2}${top mem 2}
${goto 12}│${goto 30}│${goto 48}└─ ${top name 3}${goto 113}${top cpu 3}${top mem 3}
${goto 12}│${goto 30}└─ MEM
${goto 12}│${goto 48}├─ ${top_mem name 1}${goto 113}${top_mem cpu 1}${top_mem mem 1}
${goto 12}│${goto 48}├─ ${top_mem name 2}${goto 113}${top_mem cpu 2}${top_mem mem 2}
${goto 12}│${goto 48}└─ ${top_mem name 3}${goto 113}${top_mem cpu 3}${top_mem mem 3}
${goto 12}├─ Net
${goto 12}│${goto 30}├─ open port(s)${goto 125}${tcp_portmon 1 65535 count}
${goto 12}│${goto 30}├─ Up
${goto 12}│${goto 30}│${goto 48}├─ Speed KB${goto 125}${upspeedf eth0}
${goto 12}│${goto 30}│${goto 48}└─ Total${goto 125}${totalup eth0}
${goto 12}│${goto 30}└─ Down
${goto 12}│${goto 48}├─ Speed KB${goto 125}${downspeedf eth0}
${goto 12}│${goto 48}└─ Total${goto 125}${totaldown eth0}
${goto 12}└─ Weather
${goto 30}├─ ${execi 600  sed -n '63p' /media/5/Conky/Teo_wun/Conditions}
${goto 30}├─ ± ${execi 600  sed -n '113p' /media/5/Conky/Teo_wun/Conditions}° | ${execi 600  sed -n '67p' /media/5/Conky/Teo_wun/Conditions}° | ${color9}${execi 600  sed -n '39p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color} | ${color6}${execi 600  sed -n '44p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 30}├─ UVI  ${execi 600  sed -n '121p' /media/5/Conky/Teo_wun/Conditions}
${goto 30}├─ Pressure (${execi 600  sed -n '89p' /media/5/Conky/Teo_wun/Conditions}) ${execi 600  sed -n '85p' /media/5/Conky/Teo_wun/Conditions} mb
${goto 30}├─ Hum  ${execi 600  sed -n '69p' /media/5/Conky/Teo_wun/Conditions}
${goto 30}├─ R?   ${execi 600  sed -n '133p' /media/5/Conky/Teo_wun/Conditions}%
${goto 30}├─ ${color8}Sun Rise ${execi 600  sed -n '16p' /media/5/Conky/Teo_wun/Moon_Sun}:${execi 600  sed -n '18p' /media/5/Conky/Teo_wun/Moon_Sun} \
${color1}Set ${execi 600  sed -n '21p' /media/5/Conky/Teo_wun/Moon_Sun}:${execi 600  sed -n '23p' /media/5/Conky/Teo_wun/Moon_Sun}${color}
${goto 30}└─ Moon is ${execi 600  sed -n '6p' /media/5/Conky/Teo_wun/Moon_Sun}

Just so you know, it's the Monofur font that gives the curved look to the ASCII characters.

A little more tweaking and I'll be happy with it.
Also a new idea from it! devil
2014_03_01_15_23_17_1512x142_Sector11.jpg

Last edited by Sector11 (2014-03-01 18:24:47)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1372 2014-03-02 14:13:46

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Heyyyyyy...!!!...
, now that's awesome!!!
I love its minimalism - no fancy crap, just the info one needs.
This it pure KISS, Archers would love it...
Front page link added!!!
Thanks S11 once again...


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

#1373 2014-03-02 14:38:00

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

TeoBigusGeekus wrote:

Heyyyyyy...!!!...
, now that's awesome!!!
I love its minimalism - no fancy crap, just the info one needs.
This it pure KISS, Archers would love it...
Front page link added!!!
Thanks S11 once again...

Thanks ...  Front page!  Never would have guessed that for this.

So since it's linked ... here's the code for the second horizontal conky someone might want it.

S11_all-text_wun_H.conky:

# pkill -xf "conky -c /media/5/Conky/Teo_wun/S11_all-text_wun_H.conky" &
# conky -c /media/5/Conky/Teo_wun/S11_all-text_wun_H.conky &
###  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 S11 All Text Horizontal
### ARGB can be used for real transparency
own_window_argb_visual yes
own_window_argb_value 150

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

minimum_size 1500 0     ## width, height
maximum_width 1500      ## width

gap_x 0 # left-right
gap_y 10 # up-down

alignment bm
###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:bold:size=9
#xftfont WW Digital:size=10
#xftfont Anonymous Pro:size=9

# 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 #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
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 D8BFD8 #216 191 216 Thistle
color0 8FBC8F #DarkSeaGreen
#color1 C0C0C0 # Silver
#color1 D3D3D3 #LightGrey
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
#color3 87CEFA #E0FFFF #LightCyan
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
#color7 5F9EA0 #CadetBlue
#color8 FFFFE0 #LightYellow
color8 FFD700 #Gold
#color8 F0E68C #Khaki
color9 FFA07A #LightSalmon
#color9 CD5C5C #IndianRed
#color9 FF0000 #Red
#####################################################  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 no

# 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

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 256

# 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

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Width for $top name value (default 15 characters)
top_name_width 6

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.3
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
# lua_draw_hook_post draw-bg 125 0 0 0 0 0x000000 0.01
#
# TEXT
#
#######################################################  End LUA Settings  ###

## │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
## ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣

## ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
## ░  ▒  ▓ ☺ ☻ ♥ ♦ ♣ ♠
## • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
## ¼ ½ ¾ ® ©

update_interval 1
#-----LUA
## lua_load /media/5/Conky/LUA/conky_image.lua
## ${lua conky_image {file="/media/5/Conky/images/Nasa_blue_marble_sm.jpg", x=30, y=100, width=150, alpha=0.01}}


TEXT
${execi 600 bash /media/5/Conky/Teo_wun/wunder}\
${goto 12}${color3}Time / Date Calcs${color}\
	${goto 175}${color3}System${color}\
		${goto 337}${color3}Sensors${color}\
			${goto 435}${color3}Memory ${memmax}${color}\
				${goto 570}${color3}${pre_exec cat /proc/cpuinfo | grep -m 1 'model name' | cut -c14-23} ${pre_exec cat /proc/cpuinfo | grep -m 1 'model name' | cut -c29-33}${color}\
					${goto 680}${color3}Nvidia GPU${color}\
						${goto 800}${color3}Hard Drive${color}\
							${goto 960}${color3}Processes ─ Running ${running_processes}${color}\
								${goto 1140}${color3}Net ~ eth0${color}\
									${goto 1300}${color3}Weather${color}
${goto 12}${color3}├─${color} Time   ${time %T}\
	${goto 175}${color3}├─${color} OS      ${sysname}\
		${goto 337}${color3}├─${color} CPU  ${platform f71882fg.2560 temp 1}°\
			${goto 435}${color3}├─${color} In Use ${mem} (${memperc}%)\
				${goto 570}${color3}├─${color} GHz     ${freq_g}\
					${goto 680}${color3}├─${color} GPU MHz    ${nvidia gpufreq}\
						${goto 800}${color3}├─${color} /R  ${fs_size /}${goto 880}Free ${fs_free /}\
							${goto 960}${color3}├─${color} Total${goto 1025}${processes}\
								${goto 1140}${color3}├─${color} open port(s)${goto 1235}${tcp_portmon 1 65535 count}\
									${goto 1300}${color3}├─${color} ${execi 600  sed -n '63p' /media/5/Conky/Teo_wun/Conditions}
${goto 12}${color3}├─${color} Date${goto 070}${time %a, %d %b %y}\
	${goto 175}${color3}├─${color} Distro  ${execi 86400 lsb_release -is} ${execi 86400 lsb_release -rs}\
		${goto 337}${color3}├─${color} MOBO ${platform f71882fg.2560 temp 2}°\
			${goto 435}${color3}├─${color} Free   ${memfree}\
				${goto 570}${color3}├─${color} MHz     ${freq}\
					${goto 680}${color3}├─${color} Mem MHz    ${nvidia memfreq}\
							${goto 800}${color3}│${color}${goto 822}${color3}└─${color} ${fs_used_perc /}% Used\
								${goto 960}${color3}├─${color} CPU\
									${goto 1140}${color3}├─${color} Up\
										${goto 1300}${color3}├─${color} ± ${execi 600  sed -n '113p' /media/5/Conky/Teo_wun/Conditions}° | ${execi 600  sed -n '67p' /media/5/Conky/Teo_wun/Conditions}° | ${color9}${execi 600  sed -n '39p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color} | ${color3}${execi 600  sed -n '44p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 12}${color3}└─${color} Uptime ${goto 070}${uptime}\
	${goto 175}${color3}├─${color} Kernel  ${kernel}\
		${goto 337}${color3}├─${color} HDD  ${hddtemp /dev/sda}°\
			${goto 435}${color3}└─${color} Load Avg\
				${goto 570}${color3}└─${color} CPU Avg ${cpu cpu0}%\
					${goto 680}${color3}└─${color} Threshhold ${nvidia threshold}°\
						${goto 800}${color3}├─${color} /H  ${fs_size /home}${goto 880}Free ${fs_free /home}\
							${goto 960}${color3}│${color}${goto 978}${color3}├─${color} ${top name 1}${goto 1043}${top cpu 1}${top mem 1}\
								${goto 1140}${color3}│${color}${goto 1158}${color3}├─${color} Speed KB${goto 1235}${upspeedf eth0}\
									${goto 1300}${color3}├─${color} UVI  ${execi 600  sed -n '121p' /media/5/Conky/Teo_wun/Conditions}
	${goto 175}${color3}├─${color} Machine ${machine}\
		${goto 337}${color3}├─${color} GPU  ${nvidia temp}°\
			${goto 453}${color3}├─${color} 1 min  ${loadavg 1}\
				${goto 588}${color3}├─${color} CPU1 ${cpu cpu1}%\
						${goto 800}${color3}│${color}${goto 822}${color3}└─${color} ${fs_used_perc /home}% Used\
							${goto 960}${color3}│${color}${goto 978}${color3}├─${color} ${top name 2}${goto 1043}${top cpu 2}${top mem 2}\
								${goto 1140}${color3}│${color}${goto 1158}${color3}└─${color} Total${goto 1235}${totalup eth0}\
									${goto 1300}${color3}├─${color} Pressure (${execi 600  sed -n '89p' /media/5/Conky/Teo_wun/Conditions}) ${execi 600  sed -n '85p' /media/5/Conky/Teo_wun/Conditions} mb
	${goto 175}${color3}├─${color} ${exec xset q | grep Cap |awk '{print "Cap Lock "$4}'}\
		${goto 337}${color3}└─${color} FAN  ${platform f71882fg.2560 fan 1}\
			${goto 453}${color3}├─${color} 5 min  ${loadavg 2}\
				${goto 588}${color3}├─${color} CPU2 ${cpu cpu2}%\
						${goto 800}${color3}├─${color} /M5 ${fs_size /media/5}${goto 880}Free ${fs_free /media/5}\
							${goto 960}${color3}│${color}${goto 978}${color3}└─${color} ${top name 3}${goto 1043}${top cpu 3}${top mem 3}\
								${goto 1140}${color3}└─${color} Down\
									${goto 1300}${color3}├─${color} Hum  ${execi 600  sed -n '69p' /media/5/Conky/Teo_wun/Conditions}
	${goto 175}${color3}└─${color} ${exec xset q | grep Num |awk '{print "Num Lock "$8}'}\
			${goto 453}${color3}└─${color} 15 min ${loadavg 3}\
				${goto 588}${color3}└─${color} CPU3 ${cpu cpu3}%\
						${goto 800}${color3}│${color}${goto 822}${color3}└─${color} ${fs_used_perc /media/5}% Used\
							${goto 960}${color3}└─${color} MEM\
								${goto 1158}${color3}├─${color} Speed KB${goto 1235}${downspeedf eth0}\
									${goto 1300}${color3}├─${color} R?   ${execi 600  sed -n '133p' /media/5/Conky/Teo_wun/Conditions}%
						${goto 800}${color3}└─${color} Diskio    ${diskio}\
							${goto 978}${color3}├─${color} ${top_mem name 1}${goto 1043}${top_mem cpu 1}${top_mem mem 1}\
								${goto 1158}${color3}└─${color} Total${goto 1235}${totaldown eth0}\
									${goto 1300}${color3}├─${color} ${color8}Sun Rise ${execi 600  sed -n '16p' /media/5/Conky/Teo_wun/Moon_Sun}:${execi 600  sed -n '18p' /media/5/Conky/Teo_wun/Moon_Sun} \
${color3}Set ${execi 600  sed -n '21p' /media/5/Conky/Teo_wun/Moon_Sun}:${execi 600  sed -n '23p' /media/5/Conky/Teo_wun/Moon_Sun}${color}
						${goto 818}${color3}├─${color} Read   ${diskio_read}\
								${goto 978}${color3}├─${color} ${top_mem name 2}${goto 1043}${top_mem cpu 2}${top_mem mem 2}\
									${goto 1300}${color3}└─${color} Moon is ${execi 600  sed -n '6p' /media/5/Conky/Teo_wun/Moon_Sun}
						${goto 818}${color3}└─${color} Write  ${diskio_write}\
								${goto 978}${color3}└─${color} ${top_mem name 3}${goto 1043}${top_mem cpu 3}${top_mem mem 3}

May as well show a full screen as well:
2014_03_02_11_32_57_1920x1080_Sector11.jpg

Always been a bit partial to that "all text" conky.
Which is kind of a misnomer because any conky with no images is an all text conky.

BTW I borrowed an idea from you. and the next post.

Last edited by Sector11 (2014-03-02 15:30:07)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1374 2014-03-06 21:29:31

KrunchTime
#! Die Hard
From: not where I belong
Registered: 2012-03-02
Posts: 3,264

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

@Teos...The National Weather Service is proposing a change to its forecast icons.  See here.


Linux User #586672
Come and Die -- Kyle Idleman

Offline

Be excellent to each other!

#1375 2014-03-06 22:33:08

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,666
Website

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

KrunchTime wrote:

@Teos...The National Weather Service is proposing a change to its forecast icons.  See here.

Hey, not bad ... and it looks like there is a semi-transparent (white) image with the 60% in it (chance of rain/snow) .. that's a neat idea too.  Or at least a semi-transparent image with the 60% text output over it

(1) Using a new set of icon images designed to be more visually discernable.
- - yea they aren't so bad.

(2) Changing the current temporal display (only one icon shown for each 12-hour period) to a combination of single and, when appropriate, dual 6-hourly icons.  In this proposal, dual icons would be used only when rapidly changing weather conditions within 12-hour periods dictate their use, and only for the first four days of the forecast period.
- - not 100% sure what this means

(3) Creating new text phrases to be placed underneath the dual icons to describe these changing weather conditions (e.g., “morning sun then afternoon showers”).  Some of the new phrases under dual icons are proposed to be shortened (e.g., “mostly sunny” becomes “sunny”) due to space restrictions.  However, complete phrases would remain available via icon mouse-over, as with the operational Point Forecast pages.
- - this I really like

(4) Adding yellow, red, and orange blocks around the icons, to indicate when Watches, Warnings and Advisories (WWAs), respectively, are in effect.
- - this is very good too.

The icons are solid not transparent so a yellow, red and orange png just slightly larger and put in place before the weather image.

${image red.png -p 0,0 -s 102x102}\
${image weather.png -p 1,1 -s 100x100}

Like this:

TEXT
${image /media/5/Conky/images/red_1.png -p 0,0 -s 102x102}\
${image /media/5/Conky/images/blue_1.png -p 1,1 -s 100x100}

2014_03_06_19_30_17_1920x1080_Sector11.jpg
The blue_1.png represents the weather icon image.

Would need an ${if_amtch} statement to find out if the yellow, red or orange images is needed. 

... hmmmmmmmm ... {oh oh -- smoke ... water quick!!!!}   cool  lol  lol  lol

Last edited by Sector11 (2014-03-06 22:35:22)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: zapp

Debian Logo