You are not logged in.

#1721 2017-07-07 02:32:02

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

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

I tested them all - no logs.  See PM Teo.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1722 2017-07-07 10:56:43

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

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

I tried many of your wget commands S11, no log files whatsoever.
It seems that in the current Arch version of wget (1.19.1-2) the problem is gone.
It somehow reappears in the Debian unstable version (1.19.1-4).
Hmmm hmm.....

Last edited by TeoBigusGeekus (2017-07-07 10:56:53)


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

#1723 2017-07-07 15:16:30

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)

^ For me also incomprehensible: :8
wget with the scripts of @loutch

Left audacious, causes an ongoing storage of empty wget.log files.

Right radiotray, everything ok
Only the name and paths of the script are changed.  neutral

wgetSID.png.th.jpg

Offline

#1724 2017-07-07 15:24:33

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

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

What's the wget call in the audacious script?


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

#1725 2017-07-07 17:37:38

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)

you are welcome pochette.sh

#!bin/bash

 
titre=$(head -1 ~/audacious/artiste_titre.txt)
lienMiniature=$(wget -U'Googlebot-Image/1.0' -qO - "www.google.fr/search?q=$titre\&tbm=isch" | perl -pe 's!.*?<img .*?src="([^"]*)".*!$1!')
wget -qO miniatureGoogleImage $lienMiniature

convert ~/miniatureGoogleImage ~/audacious/pochette.png 

Offline

#1726 2017-07-07 18:14:29

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

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

unklar wrote:

^ For me also incomprehensible: :8
wget with the scripts of @loutch

Left audacious, causes an ongoing storage of empty wget.log files.

Right radiotray, everything ok
Only the name and paths of the script are changed.  neutral

There is a difference ... an empty line:
2017-07-07_150626_Scrot11.th.jpg

Also Loutech's script (radiotray) is using hard coded paths:  /home/unklar/ and not ~/

EDIT:  Try this:

#!bin/bash  ## first line - remove this comment
 
titre=$(head -1 /home/unklar/audacious/artiste_titre.txt)
lienMiniature=$(wget -U'Googlebot-Image/1.0' -qO - "[url=http://www.google.fr/search?q=$titre\&tbm=isch]www.google.fr/search?q=$titre\&tbm=isch[/url]" | perl -pe 's!.*?<img .*?src="([^"]*)".*!$1!')
wget -qO miniatureGoogleImage $lienMiniature

convert /home/unklar/miniatureGoogleImage /home/unklar/audacious/pochette.png

see if that works.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1727 2017-07-07 19:27:21

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)

^ Eagle eye! big_smile

This is also noticed before and had corrected it.
Unfortunately, conky did not start afterwards and so I compared it with the Origninal...
https://forums.bunsenlabs.org/viewtopic … 447#p44447
and
https://forums.bunsenlabs.org/viewtopic … 817#p53817

I am now in the wrong system, give me a few minutes.

Offline

#1728 2017-07-07 19:54:52

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)

That is the mistake

Conky: desktop window (12000b4) is subwindow of root window (4a5)
Conky: window type - normal
Conky: drawing to created window (0x3600002)
Conky: drawing to double buffer
sh: 1: /home/unklarer/audacious/scripts/pochette.sh: not found
sh: 1: /home/unklarer/audacious/scripts/pochette.sh: not found
own_window_title=media
1257	793	18875656	56623106	/tmp/xdo
#!bin/bash

 
titre=$(head -1 /home/unklarer/audacious/artiste_titre.txt)
lienMiniature=$(wget -U'Googlebot-Image/1.0' -qO - "www.google.fr/search?q=$titre\&tbm=isch" | perl -pe 's!.*?<img .*?src="([^"]*)".*!$1!')
wget -qO miniatureGoogleImage $lienMiniature

convert /home/unklarer/miniatureGoogleImage /home/unklarer/audacious/pochette.png 
# -- Conky settings -- #
background no 								#áttetsző háttér
update_interval 1  #0.5 							#frissítési idővallum másodpercben
cpu_avg_samples 2 							#cpu pontosabb monitorozásához
net_avg_samples 2 							#internet pontosabb monitorozása
override_utf8_locale yes 						#karakterkódolás felülbírálása
double_buffer yes							#nem villodzik az ablak
no_buffers yes
text_buffer_size 1024 							#szöveg buffer mérete
imlib_cache_size 15000
max_specials 10000
max_user_text 15000
diskio_avg_samples 2 							#meghajtó pontosabb monitorozásához
format_human_readable yes 						#mértékegységek nem bájtokban
border_inner_margin 0							#keret és a margó távolsága
border_outer_margin 0							#ablak és a keret távolsága

# -- Window specifications -- #
own_window yes 								#saját ablakbeállítások bekapcsolása
own_window_type normal 							#ablaktípusok, override=ablakmenedzser szabályi nem vonatkoznak rá, desktop=díszítés nélküli panel=mindig felül,  dock=mindig felül, normal=normál
own_window_transparent no 						#conky ablak átlátszóvá válik
own_window_argb_visual yes 						#átlátszó ablak
own_window_argb_value 0 						#átlátszóság mértéke 0-255
own_window_hints undecorate,skip_taskbar,skip_pager,below 	#ablak tulajdonságai below=alultartás skip_taskbar=tálca mellőzése undecorated=keret és gombok eltávolítása override=ablakkezelő felülbírálása sticky=minden munkaterületen 
own_window_title media
minimum_size 412 106 							#ablak minimum mérete
maximum_width 412 							#max szélesség
alignment bottom_right  #top_right 							#jobb felső sarokba igazít
gap_x 10 								#x irányba eltolás
gap_y 150 								#y irányba eltolás

# -- Graphics settings -- #
draw_shades no								#szöveg árnyékolása
draw_outline no								#körülrajzolás
draw_borders no                                                       #téglalap alakú keretet rajzol
draw_graph_borders no							#keret a grafikon köré
border_width 0 								#keret vastagsága
default_bar_size 216 2							#execibar mérete 0=teljes szélesség 2=vastagság

# -- Text settings -- #
use_xft yes 								#élsimítás
xftfont monofur:size=8  #GE Inspira:size=8						#alapértelmezett betütípus
color1 92deee								#előre meghatározott szín
color2 668c95
color3 d0fefb
color4 2f3d40
color5 ff6c4a

lua_load ~/audacious/scripts/button_script.lua
lua_draw_hook_pre get_mouse {"media","/tmp/xdo"} 
lua_startup_hook start_xdo /tmp/xdo
#lua_shutdown_hook stop_xdo
lua_load ~/audacious/scripts/lua_functions.lua

lua_load ~/LUA/image.lua

template1 ${lua rc_button {btype=3,bname="button1",blx_off=115,bly_off=76,bw_off=12,bh_off=12}}
template2 ${lua rc_button {btype=3,bname="button2",blx_off=115,bly_off=46,bw_off=12,bh_off=12}}
template3 ${lua rc_button {btype=3,bname="button3",blx_off=100,bly_off=55,bw_off=12,bh_off=12}}
template4 ${lua rc_button {btype=3,bname="button4",blx_off=115,bly_off=55,bw_off=12,bh_off=12}}
template5 ${lua rc_button {btype=3,bname="button5",blx_off=130,bly_off=55,bw_off=12,bh_off=12}}


TEXT

${execi 3 ~/audacious/scripts/pochette.sh}
${lua fDrawImage ~/audacious/pochette.png 24 14 68 70}${lua fDrawImage ~/audacious/case.png 0 0 410 108}${voffset -20}${font monofur:size=14}
${goto 160}${execi 3 audtool current-song-tuple-data artist}${font}
${goto 160}${execi 3 audtool current-song-tuple-data title}${execi 3 audtool current-song-tuple-data title  > ~/audacious/artiste_titre.txt}
${goto 160}${execi 3 audtool current-song-tuple-data album}
${goto 160}${execi 1 audtool current-song-output-length}  ${goto 358}${execi 1 audtool current-song-length}
#${goto 160}${color ff6c4a}${execbar expr 100 \* $(audtool --current-song-output-length-seconds) \/ $(audtool --current-song-length-seconds)}$color\
${goto 160}${color 777777}${execbar echo 0}
${if_match ${template1}==0}
${else}${lua fDrawImage ~/audacious/images/Orange.png 360 5 35 35}${exec audacious --pause}
${endif}
${if_match ${template2}==0}
${else}${lua fDrawImage ~/audacious/images/Orange.png 360 5 35 35}${exec audacious --stop}
${endif}
${if_match ${template3}==0}
${else}${lua fDrawImage ~/audacious/images/Orange.png 360 5 35 35}${exec audacious --rew}
${endif}
${if_match ${template4}==0}
${else}${lua fDrawImage ~/audacious/images/Orange.png 360 5 35 35}${exec audacious --play}
${endif}
${if_match ${template5}==0}
${else}${lua fDrawImage ~/audacious/images/Orange.png 360 5 35 35}${exec audacious --fwd}
${endif}
${lua fDrawImage ~/audacious/pause.png 115 59 13 13}
${lua fDrawImage ~/audacious/stop.png 115 31 13 13}
${lua fDrawImage ~/audacious/rew.png 100 45 13 13}
${lua fDrawImage ~/audacious/play.png 115 45 13 13}
${lua fDrawImage ~/audacious/fwd.png 130 45 13 13}
${voffset -250}

Offline

#1729 2017-07-07 20:13:50

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)

look at that

${texeci 20 bash /home/unklarer/radiotray/loutch/loutch.sh}\

from radiotray your conkyrc

from audacious conkyrc edited

${execi 3 ~/audacious/scripts/pochette.sh}
${execi 3 bash ~/audacious/scripts/pochette.sh}

shows me the terminal

Conky: desktop window (12000b4) is subwindow of root window (4a5)
Conky: window type - normal
Conky: drawing to created window (0x4800002)
Conky: drawing to double buffer

Ausgabe wird nach »wget-log« umgeleitet.

Ausgabe wird nach »wget-log.1« umgeleitet.

Ausgabe wird nach »wget-log.2« umgeleitet.

Ausgabe wird nach »wget-log.3« umgeleitet.
own_window_title=media
1257	793	18878187	75497474	/tmp/xdo

Ausgabe wird nach »wget-log.4« umgeleitet.

  ]:D  8.(

Last edited by unklar (2017-07-07 20:24:29)

Offline

#1730 2017-07-07 21:32:36

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

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

You need to try:

${texeci 3 /home/unklarer/audacious/scripts/pochette.sh}

and or

${texeci 3 bash /home/unklarer/audacious/scripts/pochette.sh}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1731 2017-07-07 22:26:06

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

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

Tried

wget -qO miniatureGoogleImage $(wget -U'Googlebot-Image/1.0' -qO - "www.google.fr/search?q=$titre\&tbm=isch" | perl -pe 's!.*?<img .*?src="([^"]*)".*!$1!')

and although the $titre variable is undefined, I still get an miniature image without any log files.


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

#1732 2017-07-08 06:14:06

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

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

Alright guys, this seems to be an arcane art; I'm not gonna bother anymore with wget's shenanigans, but quietly monitor its behavior and search the internet from time to time to see if anything comes up.
To anyone still having troubles, just direct wget's logging to /dev/null by adding the following parameter to its call

-o /dev/null

I'll add a note in the POINTS TO NOTICE section in the first page.

Last edited by TeoBigusGeekus (2017-07-08 07:12:15)


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

#1733 2017-07-08 14:18:09

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

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

I think I'll make that a habit of all uses of wget or switch to curl  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1734 2017-07-09 07:42:31

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

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

Ugly memories from curl; I hope the thing with wget gets corrected.


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

#1735 2017-07-09 09:47:47

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)

smile

It does not make any difference and also does not solve the problem with wget-logs.

I remove the empty line in the script, the terminal shows

sh: 1: /home/unklarer/audacious/scripts/pochette.sh: not found

Artists and titles are displayed
the cover is not displayed

I put the empty line again, everything is displayed correctly and the wget-log appears permanent.

It also brings the gimmick in the conkyrc
execi/texeci vs. 3/6sec or insert of bash nothing.

Probably a ghost is in this partition, because this configuration (without empty line, with full path) in the radiotray conky does not cause an error. ]:D

The only difference: radiotray-conky is installed much longer than the interactive one
audacious-Conky.  roll

I thank you both very much for the trouble! O:)

I suggest we wait for the flash of genius or the update of wget.  big_smile

Offline

#1736 2017-07-09 21:08:11

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

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

EDIT:  OH, Now that is weird.  a blank line needed ... there must be some other reason.

^ do you have:

-o /dev/null

or the long form:

--output-file=/dev/null

Another thing to check is if any other running program has wget in it that doesn't have "-o /dev/null"

I use this: ftxt  (find text)

   $ alias ftxt
alias ftxt='ack-grep'

ack-grep uses "test" then path:

For example:

 09 Jul 17 @ 18:05:15 ~
   $ ftxt wget ~/1_accuweather
/home/sector11/1_accuweather/1_accuweather-25-sep-2016
170:	wget -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
173:	wget -O $HOME/1_accuweather/first_days_raw "$addr1"
176:	wget -O $HOME/1_accuweather/last_days_raw "$addr2"
288:	wget -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
310:	wget -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"

/home/sector11/1_accuweather/1_accuweather_newer
151:	wget -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
154:	wget -O $HOME/1_accuweather/first_days_raw "$addr1"
157:	wget -O $HOME/1_accuweather/last_days_raw "$addr2"
261:	wget -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
283:	wget -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"

/home/sector11/1_accuweather/TAR.GZ/1_accuweather_26_9/1_accuweather
255:	wget -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
258:	wget -O $HOME/1_accuweather/first_days_raw "$addr1"
261:	wget -O $HOME/1_accuweather/last_days_raw "$addr2"
393:	wget -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
423:	wget -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"

/home/sector11/1_accuweather/TAR.GZ/1d_accuweather_rss/1d
96:killall wget
97:wget -O $HOME/1d_accuweather_rss/weather_raw $address

/home/sector11/1_accuweather/TAR.GZ/1_accuweather/1_accuweather
253:	wget -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
256:	wget -O $HOME/1_accuweather/first_days_raw "$addr1"
259:	wget -O $HOME/1_accuweather/last_days_raw "$addr2"
391:	wget -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
421:	wget -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"

/home/sector11/1_accuweather/2015/1_accu_2015
116:#	killall wget
119:	wget -O $HOME/1_accuweather/2015/curr_cond_raw "$curr_addr"
122:	wget -O $HOME/1_accuweather/2015/first_days_raw "$addr1"
125:	wget -O $HOME/1_accuweather/2015/last_days_raw "$addr2"
202:	killall wget
206:	wget -O $HOME/1_accuweather/2015/hourly_raw1 "$hourly_addr1"
223:	wget -O $HOME/1_accuweather/2015/hourly_raw2 "$hourly_addr2"

/home/sector11/1_accuweather/ConkyHTCSpill/htc_home/accuweather/accuw_script
221:wget -O $HOME/.Conky/htc_home/accuweather/curr_cond_raw "$curr_addr"
227:killall wget
229:wget --save-cookies $HOME/.Conky/htc_home/accuweather/cookie -O $HOME/.Conky/htc_home/accuweather/curr_cond_raw $curr_addr
230:wget --load-cookies $HOME/.Conky/htc_home/accuweather/cookie -O $HOME/.Conky/htc_home/accuweather/first_days_raw $addr1
231:wget --load-cookies $HOME/.Conky/htc_home/accuweather/cookie -O $HOME/.Conky/htc_home/accuweather/last_days_raw $addr2

/home/sector11/1_accuweather/cronograph/accuweather/accuw_script
213:killall wget
222:wget -O $HOME/.Conky/cronograph/accuweather/curr_cond_raw "$curr_addr"
225:wget -O $HOME/.Conky/cronograph/accuweather/tod_ton_raw "$addr1"
228:wget -O $HOME/.Conky/cronograph/accuweather/last_days_raw "$addr2"

/home/sector11/1_accuweather/1_accuweather_x
255:	wget -q -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
258:	wget -q -O $HOME/1_accuweather/first_days_raw "$addr1"
261:	wget -q -O $HOME/1_accuweather/last_days_raw "$addr2"
393:	wget -q -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
423:	wget -q -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"

/home/sector11/1_accuweather/1_accuweather_older
116:#	killall wget
119:	wget -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
122:	wget -O $HOME/1_accuweather/first_days_raw "$addr1"
125:	wget -O $HOME/1_accuweather/last_days_raw "$addr2"
202:	killall wget
206:	wget -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
223:	wget -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"

/home/sector11/1_accuweather/1_accuweather
255:	wget -q -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
258:	wget -q -O $HOME/1_accuweather/first_days_raw "$addr1"
261:	wget -q -O $HOME/1_accuweather/last_days_raw "$addr2"
393:	wget -q -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
423:	wget -q -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"
 
 09 Jul 17 @ 18:05:44 ~
   $ 

As you see you get the /file/path/name and line number.

I'm in the process of adding -o /dev/null to the all ... and I have a LOT  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1737 2017-07-10 19:43: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)

ANNOUNCEMENT

Tiny hiccup on the 1_Accuweather script. It must have been a small change in Accuweather's layout, cause suddenly there was an extra line in the current conditions file, which caused in its turn a screw up of conky's layout.
Script rebundled.
For the lazy:
Just change

|"wind"|

in line 271 to

|"wind"><strong>|

Last edited by TeoBigusGeekus (2017-07-10 19:43:16)


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

#1738 2017-07-10 23:26:27

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

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

Terminal, baby ... it's in a terminal ... credits are in the script.
2017-07-10_201231_Scrot11.th.jpg

Requires: 1_accuweather and 4_Moon scripts installed and set up for your location.

#!/bin/bash
# --- original ---
# 4 Day Weather forecast script for Boardman, OH
# Written by:  Habitual (JJ)
# 11.01.2010 12:10:07
# For conkyForecast by: Kaivalagi
# --- Edited by Sector11 ---
# 7 Day Forecast
# 13 Jan 2013 14:08 UTC
# For conkyForecast by: Kaivalagi

# Re-edited:
# Mon 09 Jan 2017
# updated 2017-07-10
# For TeoBigusGeekus' 1_Accuweather Weather script
# https://forums.bunsenlabs.org/viewtopic.php?id=189
### Run Teos script to refresh the databases
## Change the "wget" commands to "wget -q" in 1_accuweather


 ~/1_accuweather/1_accuweather -f2016 2>&1 >/dev/null
/media/5/Conky/4_Moon/moon 2>&1 >/dev/null

# Clear the screen
tput clear
#tput bold			### for bold text
#tput dim			### for dim text
#tput sgr0          ### remove formatting

# Current (1st Group LEFT)
tput cup 1 1;tput setaf 9
echo "- Buenos Aries, Argentina -"
tput cup 1 35;tput setaf 9
echo "- Accuweather -"
tput cup 2 1;tput setaf 9
echo "Currently"
tput cup 2 11;tput setaf 3
echo `sed -n '2p' ~/1_accuweather/curr_cond`"°"
tput cup 2 15;tput setaf 9
echo " for ±"
tput cup 2 21;tput setaf 3
echo `sed -n '3p' ~/1_accuweather/curr_cond`"°"
tput cup 3 1;tput setaf 2
echo `sed -n '4p' ~/1_accuweather/curr_cond`
tput cup 4 1;tput setaf 3
echo "Bar"
tput cup 4 5;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/curr_cond`
tput cup 4 16;tput setaf 3
echo "Hum"
tput cup 4 20;tput setaf 9
echo `sed -n '7p' ~/1_accuweather/curr_cond`
tput cup 4 25;tput setaf 3
echo "UVI"
tput cup 4 29;tput setaf 9
echo `sed -n '9p' ~/1_accuweather/curr_cond`
tput cup 5 1;tput setaf 3
echo "Wnd"
tput cup 5 5;tput setaf 9
echo `sed -n '5p' ~/1_accuweather/curr_cond`" @ "`sed -n '6p' ~/1_accuweather/curr_cond`
tput cup 5 21;tput setaf 3
echo "Vis"
tput cup 5 25;tput setaf 9
echo `sed -n '13p' ~/1_accuweather/curr_cond`
tput cup 6 1;tput setaf 3
echo "Ceil"
tput cup 6 6;tput setaf 9
echo `sed -n '11p' ~/1_accuweather/curr_cond`
tput cup 6 14;tput setaf 3
echo "Dew"
tput cup 6 18;tput setaf 9
echo `sed -n '12p' ~/1_accuweather/curr_cond`"°"
tput cup 6 22;tput setaf 3
echo "CC"
tput cup 6 25;tput setaf 9
echo `sed -n '10p' ~/1_accuweather/curr_cond`

# Today Day 0 (1st Group RIGHT) Mon
tput cup 2 35;tput setaf 9
echo "$(date --date="0 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 2 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 2 53;tput setaf 9
echo `sed -n '3p' ~/1_accuweather/first_days`"°"
tput cup 2 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 2 60;tput setaf 9
echo `sed -n '4p' ~/1_accuweather/first_days`"°"
tput cup 3 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`
tput cup 4 35;tput setaf 9
echo "Sun Rise"
tput cup 4 44;tput setaf 3
echo `sed -n '23p' ~/1_accuweather/curr_cond`
tput cup 4 50;tput setaf 9
echo "Moon Rise "
tput cup 4 60;tput setaf 6
echo `sed -n '25p' ~/1_accuweather/curr_cond`
tput cup 5 40;tput setaf 9
echo "Set"
tput cup 5 44;tput setaf 3
echo `sed -n '24p' ~/1_accuweather/curr_cond`
tput cup 5 56;tput setaf 9
echo "Set"
tput cup 5 60;tput setaf 6
echo `sed -n '26p' ~/1_accuweather/curr_cond`
tput cup 6 35;tput setaf 9
echo "Duration"
tput cup 6 44;tput setaf 3
echo `sed -n '16p' ~/1_accuweather/curr_cond`
tput cup 6 57;tput setaf 6
echo `sed -n '20p' ~/1_accuweather/curr_cond`

# Day 1 (2nd Group LEFT) Tue
tput cup 7 1;tput setaf 9
echo "----------------------------------"
tput cup 8 1;tput setaf 9
echo "$(date --date="1 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 8 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 8 19;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/first_days`"°"
tput cup 8 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 8 27;tput setaf 9
echo `sed -n '9p' ~/1_accuweather/first_days`"°"
tput cup 9 1;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/first_days`

# Day 2 (2nd Group RIGHT) Wed
tput cup 7 35;tput setaf 9
echo "-------------------------------"
tput cup 8 35;tput setaf 9
echo "$(date --date="2 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 8 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 8 53;tput setaf 9
echo `sed -n '13p' ~/1_accuweather/first_days`"°"
tput cup 8 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 8 60;tput setaf 9
echo `sed -n '14p' ~/1_accuweather/first_days`"°"
tput cup 9 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`

# Day 3 (3rd Group LEFT) Thu
tput cup 10 1;tput setaf 9
echo "-------------------------------"
tput cup 11 1;tput setaf 9
echo "$(date --date="3 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 11 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 11 19;tput setaf 9
echo `sed -n '18p' ~/1_accuweather/first_days`"°"
tput cup 11 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 11 27;tput setaf 9
echo `sed -n '19p' ~/1_accuweather/first_days`"°"
tput cup 12 1;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/first_days`

# Day 4 (3rd Group RIGHT) Fri
tput cup 10 35;tput setaf 9
echo "-------------------------------"
tput cup 11 35;tput setaf 9
echo "$(date --date="4 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 11 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 11 53;tput setaf 9
echo `sed -n '23p' ~/1_accuweather/first_days`"°"
tput cup 11 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 11 60;tput setaf 9
echo `sed -n '24p' ~/1_accuweather/first_days`"°"
tput cup 12 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`

# Day 5 (4th Group LEFT) Sat
tput cup 13 1;tput setaf 9
echo "-------------------------------"
tput cup 14 1;tput setaf 9
echo "$(date --date="5 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 14 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 14 19;tput setaf 9
echo `sed -n '3p' ~/1_accuweather/last_days`"°"
tput cup 14 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 14 27
echo `sed -n '4p' ~/1_accuweather/last_days`"°"
tput cup 15 1;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/last_days`

# Day 6 (4th Group RIGHT) Sun
tput cup 13 35;tput setaf 9
echo "-------------------------------"
tput cup 14 35;tput setaf 9
echo "$(date --date="6 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 14 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 14 53;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/last_days`"°"
tput cup 14 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 14 60
echo `sed -n '9p' ~/1_accuweather/last_days`"°"
tput cup 15 35;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/last_days`

# Day 7 (5th Group LEFT) Mon
tput cup 16 1;tput setaf 9
echo "-------------------------------"
tput cup 17 1;tput setaf 9
echo "$(date --date="7 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 17 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 17 19
echo `sed -n '13p' ~/1_accuweather/last_days`"°"
tput cup 17 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 17 27;tput setaf 9
echo `sed -n '14p' ~/1_accuweather/last_days`"°"
tput cup 18 1;tput setaf 2
echo `sed -n '15p' ~/1_accuweather/last_days`
tput cup 19 1;tput setaf 9
echo "-------------------------------"

# Day 8 (5th Group RIGHT) Tue
tput cup 16 35;tput setaf 9
echo "-------------------------------"
tput cup 17 35;tput setaf 9
echo "$(date --date="8 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 17 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 17 53;tput setaf 9
echo `sed -n '18p' ~/1_accuweather/last_days`"°"
tput cup 17 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 17 60;tput setaf 9
echo `sed -n '19p' ~/1_accuweather/last_days`"°"
tput cup 18 35;tput setaf 2
echo `sed -n '20p' ~/1_accuweather/last_days`
tput cup 19 32;tput setaf 9
echo "----------------------------------"
tput cup 20 5;tput setaf 6
echo "Moon"
tput cup 20 10;tput setaf 3
echo "Sun"
tput cup 20 14;tput setaf 9
echo "Information              Southern Hemisphere"
tput cup 21 1;tput setaf 6
echo "Phase"
tput cup 21 8;tput setaf 9
echo `sed -n '7p' /media/5/Conky/4_Moon/raw` @ `sed -n '1p' /media/5/Conky/4_Moon/raw`
tput cup 21 35;tput setaf 6
echo "Distance"
tput cup 21 44;tput setaf 9
echo `sed -n '4p' /media/5/Conky/4_Moon/raw` "km"
tput cup 22 1;tput setaf 6
echo "Age"
tput cup 22 8;tput setaf 9
echo `sed -n '5p' /media/5/Conky/4_Moon/raw` "Day(s)"
tput cup 22 35;tput setaf 6
echo "Angle"
tput cup 22 44;tput setaf 9
echo `sed -n '6p' /media/5/Conky/4_Moon/raw`"°"
tput cup 23 1;tput setaf 3
echo "Angle"
tput cup 23 8;tput setaf 9
echo `sed -n '2p' /media/5/Conky/4_Moon/raw`"°"
tput cup 23 35;tput setaf 3
echo "Distance"
tput cup 23 44;tput setaf 9
echo `sed -n '3p' /media/5/Conky/4_Moon/raw` "km"
tput sgr0
$SHELL

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1739 2017-07-11 09:26:12

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,

Let it be good. I do not feel like it anymore, this an interactive conky with wget to torment.  sad  ]:D

TeoBigusGeekus wrote:

ANNOUNCEMENT

Thank you! I have updated already 7 Weather ads. Works flawlessly.  smile

Last edited by unklar (2017-07-11 09:27:29)

Offline

#1740 2017-07-11 10:43:14

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

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

unklar wrote:

Thank you! I have updated already 7 Weather ads. Works flawlessly.  smile

wink
I'll stay put for a few days in case this is the fore bearer of further changes to Accuweather's layout.
So, yellow alert everyone...


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

Board footer

Powered by FluxBB