You are not logged in.

#221 2015-11-27 20:38:19

Froggg
Member
Registered: 2015-11-25
Posts: 12

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

Sector 11, I wanted the full info for the weather as well, so I went into the 1b1 file and changed the 5 instances of '20' to '30'. I get the full message now.

Offline

#222 2015-11-27 20:45:53

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

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

^ ??  I must be blind .. will try again.  Thank you

Looking at 99 here   O:)  I don't want to miss anything.

EDIT!  I feel like such a fool.  :8
Right there in plain sight ... and I was getting all caught up in the: 's/^.*; //g' / thingies ....

If I was a drinking man tonight would be the night. roll

Again thank you!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#223 2015-11-27 23:29:37

Froggg
Member
Registered: 2015-11-25
Posts: 12

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

Teo, don't know what's going on. I added the lines you suggested into the 1b1 and conkyrc files, then ran the 1b1 script to check things out, and it says the curr_cond file doesn't exist! Below is the approipriate text from both files, with  a little extra thrown in for perspective.

From the 1b1 file:

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

From the conkyrc:

${hr 2}
Weather last updated:
${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
${color white}${execpi 600 sed -n '43p' $HOME/1b1_accuweather_images/curr_cond}#${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
${font :size 9}${color FDADFF}Current
${color orange}${font :bold:size=9}${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/messages} ${color white}${font :size=9}${execpi 600 sed -n '29p' $HOME/1b1_accuweather_images/curr_cond}°F 
${color orange}${font :bold:size=9}WIND: ${font :size=9}${color white}${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/curr_cond} ${execpi 600 sed -n '38p' $HOME/1b1_accuweather_images/curr_cond}
${color orange}${font :bold:size=9}HUM: ${color white}${font :size=9}${execpi 600 sed -n '32p' $HOME/1b1_accuweather_images/curr_cond}
${color orange}${font :bold:size=9}Baro Press: ${alignc}${color white}${font :size=9}${execpi 600 sed -n '33p' $HOME/1b1_accuweather_images/curr_cond}

And the result of running the 1b1 script:

--2015-11-27 18:09:28--  [url]http://www.accuweather.com/en/us/coldwater-oh/45828/current-weather/2214865[/url]
Resolving [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])... 128.177.96.130, 128.177.96.136
Connecting to [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|128.177.96.130|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/dave/1b1_accuweather_images/curr_cond_raw’

    [ <=>                                                 ] 104,864     --.-K/s   in 0.05s   

2015-11-27 18:09:29 (2.09 MB/s) - ‘/home/dave/1b1_accuweather_images/curr_cond_raw’ saved [104864]

--2015-11-27 18:09:29--  [url]http://www.accuweather.com/en/us/coldwater-oh/45828/daily-weather-forecast/2214865[/url]
Resolving [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])... 128.177.96.136, 128.177.96.130
Connecting to [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|128.177.96.136|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/dave/1b1_accuweather_images/first_days_raw’

    [ <=>                                                 ] 106,944     --.-K/s   in 0.05s   

2015-11-27 18:09:29 (2.11 MB/s) - ‘/home/dave/1b1_accuweather_images/first_days_raw’ saved [106944]

--2015-11-27 18:09:29--  [url]http://www.accuweather.com/en/us/coldwater-oh/45828/daily-weather-forecast/2214865?day=6[/url]
Resolving [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])... 128.177.96.130, 128.177.96.136
Connecting to [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|128.177.96.130|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/dave/1b1_accuweather_images/last_days_raw’

    [ <=>                                                 ] 105,434     --.-K/s   in 0.05s   

2015-11-27 18:09:29 (2.08 MB/s) - ‘/home/dave/1b1_accuweather_images/last_days_raw’ saved [105434]

/home/dave/1b1_accuweather_images/1b1: line 107: /1b1_accuweather_images/curr_cond: No such file or directory

Thanks.

MOD EDIT:  code tags added

Last edited by Sector11 (2015-11-28 11:11:32)

Offline

#224 2015-11-27 23:53:10

Froggg
Member
Registered: 2015-11-25
Posts: 12

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

Scratch  the last message, it now works, but if I go in and modify  the 'date >> $HOME/1b1_accuweather_images/curr_cond' line in 1b1, it shows nothing. What I  would like  to do is to modify it to show hour:minute (24 hour) and date (MM/DD/YY). Am I doing it in the wrong place, or am I just showing my ignorance?
Thanks

Offline

#225 2015-11-28 00:14:49

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

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

Use this:

date +"%R %D" >> $HOME/1b1_accuweather_images/curr_cond

Run

man date

for further options.


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

#226 2015-11-28 00:41:07

Froggg
Member
Registered: 2015-11-25
Posts: 12

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

Yep, that did it Teo. Thanks a bunch for all the help.

Offline

#227 2015-11-28 00:48:22

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,271
Website

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

Froggg, when you show the code script perhaps next time, use code tag to make readable.

Nili


Tumbleweed | KDE Plasma

Offline

#228 2015-11-28 08:19:46

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

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

Anytime Froggg.

@S11
Instead of

date | awk '{print $1" "$3" "$2" "$4}'

use

date +"%a %d %b %T"

or even

date +"%D %T"

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

#229 2015-11-28 12:07:56

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

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

^ Yea, that makes more sense.  I just copied the lines from my conkys that I use to get dates in the future or past, even though for today I use: ${time %a %e %b}

I had a conky open at the time so it was a natural reaction (for me) to copy paste it.

${execi 3600 echo `date --date="-2 day" | awk '{print $1" "$3" "$2" "$6}'`}
${execi 3600 echo `date --date="-1 day" | awk '{print $1" "$3" "$2}'`}
${time %a %e %b} or ${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}
${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}
${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}

${time}, in conky,  doesn't seem to like doing that.
2015_11_28_09_00_16_Scrot11.jpg
My mind didn't separate the two: time for conky; date for bash.

Thanks Teo.

PS: for me: date +"%x %T" - I'm a day/month/year guy.

 28 Nov 15 | 09:02:38 ~
    $ date +"%x %T"
28/11/15 09:02:42

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#230 2015-11-28 16:58:41

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

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

Sector11 wrote:

PS: for me: date +"%x %T" - I'm a day/month/year guy.

Me too...

W93qlNNt.jpg


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

#231 2015-11-28 18:34:11

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

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

HAHAHAHAHA!  Love it!
{stolen}

BTW, I went through ALL of your scripts and added (with appropriate paths)

- get ready for the facepalm!
date +%x > /media/5/Conky/1a_accuweather_conkyweather_font/fetched
date +%T >> /media/5/Conky/1a_accuweather_conkyweather_font/fetched
date +"%x %T" >> /media/5/Conky/1a_accuweather_conkyweather_font/fetched
kill -CONT $(pidof conky)

because sometimes, on occasion, maybe, I might possibly want to be different: roll
2015_11_28_15_26_15_Scrot11.png

Fetched:
${execi 600  sed -n '1p' /media/5/Conky/1a_accuweather_conkyweather_font/fetched}
${execi 600  sed -n '2p' /media/5/Conky/1a_accuweather_conkyweather_font/fetched}

${font fantasque sans mono:bold:size=8}${alignc}Fetched:
${alignc}${execi 600  sed -n '1p' /media/5/Conky/1a_accuweather_conkyweather_font/fetched}
${alignc}${execi 600  sed -n '2p' /media/5/Conky/1a_accuweather_conkyweather_font/fetched}${font}


Fetched on: ${execi 600  sed -n '1p' /media/5/Conky/1a_accuweather_conkyweather_font/fetched}\
${alignr 5}at ${execi 600  sed -n '2p' /media/5/Conky/1a_accuweather_conkyweather_font/fetched}


${alignc}Fetched: ${execi 600  sed -n '3p' /media/5/Conky/1a_accuweather_conkyweather_font/fetched}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#232 2015-11-29 09:28:28

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

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

Nice one (why the facepalm, it's good work).


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

#233 2015-11-29 11:20:26

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

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

I though you might think it was a bit much.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#234 2015-11-29 11:26:07

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

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

Everything's legit in love, war and conky 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

#235 2015-11-29 13:00:01

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

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

Thanks for the moon scripts!

I took the first one and made it into a floating window and removed the bottom text.

It looks like this:

2015_11_29_04_56_45_scrot.jpg

I might try to integrate it with the 1a weather conky or something. Here's what I have going on right now:

2015_11_29_04_58_41_scrot.jpg

You guy's make some very nice weather scripts that look amazing.

My thanks to everyone who put in the time and work to make this happen.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#236 2015-11-29 15:12:34

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,271
Website

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

Temetka wrote:

You guy's make some very nice weather scripts that look amazing.

Yeah, I can not say better smile


Tumbleweed | KDE Plasma

Offline

#237 2015-11-29 15:41:00

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

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

@ Temetka & Nili - thank you.

@ Temetka I see youe main weather is missing some elements.  Did you get the newest updated AccuW scripts (1b1_29-10-15)?

There is also a "companion" conky that will help you know what's what.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#238 2015-11-29 17:13:19

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

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

Thanks Temetka and Nili.

Nice one Temetka.


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

#239 2015-11-30 09:45:38

emo
Member
From: Sofia, Bulgaria
Registered: 2015-11-30
Posts: 23

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

Hi everyone! I'm newbie with LinuxMint17.2 and tried several times to run "1b1_accuweather_images", but nothing happened. Please somebody tell me step by step how to install it! Thanks in advance!

Offline

#240 2015-11-30 12:33:05

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

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

Extract the archive found in the opening post to ~/

That's it, it is installed ...

Read the README.pdf: ~/1b1_accuweather_images/1b1_README_INFO/1b1_README.pdf It has all the instructions on how to set it to your location and start the conky.

Do you have "conky-all" installed?
And what version of conky do you have?

conky -v

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB