SEARCH

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

You are not logged in.

#876 2013-05-05 17:44:27

morfik
Member
Registered: 2013-04-21
Posts: 25

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

Maybe it's because of my slow pc? big_smile

Offline

Help fund CrunchBang, donate to the project!

#877 2013-05-05 19:13:39

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)

OK, I think I have a fix for you ...

1.  in two of tour conkys you have "border_margin" - that command is defunct so I did this:

####
## Pad spacing between text and borders.
# NOTE: needs _inner_ and _outer_
border_inner_margin 4
border_outer_margin 0

Now you have 4 conkys.  Two of them are started at the same time and trying to get info from the net (the weather) so I put the bash script weather calls in the "regular" conkys and started the weather conkys "without" the commands 8 seconds later with the old sleep command.  This allows the first two conky time to grab the info from the net before the weather conkys start and "use" the fetched info:

ssc.sh (change path to your needs):

#!/bin/sh
# /media/5/conky/morfik/ssc.sh
# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
   exec killall conky
else
###   sleep 2  # sleep not required for xfce or dropbox upto - 30 or more for others
(sleep 2s && conky -c /media/5/conky/morfik/conkyrc) &
(sleep 2s && conky -c /media/5/conky/morfik/conkyrc_fs) &
(sleep 10s && conky -c /media/5/conky/morfik/1b1/conkyrc_1b1_int) &
(sleep 10s && conky -c /media/5/conky/morfik/1c/conkyrc_1c) &
exit
fi

your conkyrc conky starts like this after TEXT (again: change path to your needs for these two conkys):

TEXT
${texeci 600 bash /media/5/conky/morfik/1c/1c}${...

and conkyrc_fs starts like this:

TEXT
${texeci 600 bash /media/5/conky/morfik/1b1/1b1}${...

acsMDb8u.jpg


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

Offline

#878 2013-05-05 19:20:07

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)

morfik wrote:

Maybe it's because of my slow pc? big_smile

That's a thought... also do you have a slow connection to the net?
If so see the fix above and increase the "sleep 10" to "sleep 12" and try that.

let us know.


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

Offline

#879 2013-05-05 19:55:19

morfik
Member
Registered: 2013-04-21
Posts: 25

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

I have 10/1 mbit internet connection, so I think it's not so slow. smile

So basically, my own 2 conkys execute the two weather scrips, they download info, and then the other two conkys start and execute the scripts again? Why? And if there is no other way, is it necessary to use  texeci 600 in my own conkys? I mean, it could start only when conky start. I think there is no need to start the script again every 10mins, right? Or do I have to edit weather scripts and remove the line from their files?

As to border_inner_margin 4 -- should I remove it?

Offline

#880 2013-05-05 21:16:52

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)

morfik wrote:

I have 10/1 mbit internet connection, so I think it's not so slow. smile

So basically, my own 2 conkys execute the two weather scrips, they download info, and then the other two conkys start and execute the scripts again? Why? And if there is no other way, is it necessary to use  texeci 600 in my own conkys? I mean, it could start only when conky start. I think there is no need to start the script again every 10mins, right? Or do I have to edit weather scripts and remove the line from their files?

As to border_inner_margin 4 -- should I remove it?

1.  No; your two regular conkys execute the weather commands:

${texeci 600 bash /media/5/conky/morfik/1c/1c}
${texeci 600 bash /media/5/conky/morfik/1b1/1b1}

2. remove them from the weather conkys.

Usually weather sites update once an hour. Conky need to connect to the net on a regular basis to get the updated info.  Set the "600" too low and you spend more time collecting the same info repeatedly.  Set it to high and your data could be really OLD.

If you set it to 3600 (1 hour) and start the conkys 5 minutes before the weather site updates the data, for 55 minutes your data will be "OLD"  therefore 600 to 900 are good call times.

2. border_inner_margin 4 is OK, I personally use 5  big_smile

abwLrNXt.jpg


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

Offline

#881 2013-05-06 04:49:21

morfik
Member
Registered: 2013-04-21
Posts: 25

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

It doesn't work. big_smile

I removed the lines from weather conkys and updated the autostart script. I started my pc and I got this:
43367.png

Offline

#882 2013-05-06 12:46: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)

morfik wrote:

It doesn't work. big_smile

I removed the lines from weather conkys and updated the autostart script. I started my pc and I got this:

OK, it looks like you are having a problem with: text_buffer_size

I can "cause" what is happening to you by reducing my text buffer size to less than 1830:

text_buffer_size 1825 #4352

... and I get errors. The file "altogether" is 1804 or 1805 characters when testing (one output increased by one - maybe a 9 to 10) I'm thinking [Return] counts as well.
However, your conky has 4352 as a text buffer, that should more than cover it.
Maybe it is too much!

I can add a line at the end of that conky an grab the entire file with one command:

${voffset 25}${execpi 600 sed -n '1,21p' /media/5/conky/morfik/1c/altogether}
${voffset -3}${color1}${hr 1}
${color}${tail /media/5/conky/morfik/1c/altogether 20}

... and that is still using:

text_buffer_size 1825 #4352

mind you text_buffer_size works on each specific command in conky not the "entire" conky.
adi3rFMH.jpg
I increased the width of the conky to show the entire file being displayed.

Why your conky is not reading it Is beyond me.  Is that file complete? when conky displays less?

CLICK!  If you are setting text_buffer_size to "each" conky command ($) to 4352 that's 34 commands roughly for a buffer: 45968 ... maybe you are running out of space?

Try reducing "text_buffer_size 1830" and see if that works.

If anyone sees where my line of thinking is flawed please feel free to step in.


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

Offline

#883 2013-05-07 06:49:15

morfik
Member
Registered: 2013-04-21
Posts: 25

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

Ok, I reduced the buffer to 1830. We will see if it works. smile

Offline

#884 2013-05-08 05:27:03

morfik
Member
Registered: 2013-04-21
Posts: 25

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

Now, it looks better. I had to increase buffer to 1850 because the last number of dew point had problems sometimes. Anyway, I sometimes get something like this (look at the TIME line):
33682.png

I can reload conkys (killall -SIGUSR1 conky) and everything backs to normal. It happens sometimes to the other weather script too. Is this a problem with conky or something else?

I noticed also the values are wrong, look for example at the temp line. The new day has begun and the temp looks like the night is coming. xD I think something is wrong with cache. This happens when I start my pc.

Last edited by morfik (2013-05-08 05:30:42)

Offline

#885 2013-05-08 16:41:39

dgz
#! Junkie
Registered: 2011-11-22
Posts: 380

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

i'm having trouble getting 1d to display anything, i get this:

 dgz@PANGAEA:~$ conky -c ~/.conkyrc_1d
Conky: desktop window (ab) is root window
Conky: window type - override
Conky: drawing to created window (0x2c00001)
Conky: drawing to double buffer
wget: no process found
--2013-05-08 17:40:42--  http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR%7CUK%7CUK241
Resolving rss.accuweather.com (rss.accuweather.com)... 93.188.129.12, 93.188.135.15
Connecting to rss.accuweather.com (rss.accuweather.com)|93.188.129.12|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 801 [text/xml]
Saving to: `/home/dgz/.1d_accuweather_rss/weather_raw'

100%[======================================>] 801         --.-K/s   in 0.003s  

2013-05-08 17:40:45 (250 KB/s) - `/home/dgz/.1d_accuweather_rss/weather_raw' saved [801/801]

which seems okay apart from 'wget: no process found'.

Offline

#886 2013-05-08 17:39:19

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

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

Everything's fine here; the message you get is normal.
Can you post us your version of the script, as well as your conkyrc?


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

#887 2013-05-15 18:37:12

drxspace
New Member
From: Salamis, Greece
Registered: 2013-05-15
Posts: 5
Website

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

Thank you for all these awesome stuff!

Please, have a look at my efforts here


Life was short indeed

Offline

#888 2013-05-15 20:19:02

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

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

drxspace wrote:

Thank you for all these awesome stuff!

Please, have a look at my efforts here

Hi patrioti!
Thanks for your kind words - I can't test your work, cause I don't have a conky version compiled with lua, but I'm sure others will be able to do so (where are you Sector11?).
I have no doubt that it is awesome though - you're Greek after all  tongue  lol  cool

PS: I did part of my military service in Salamis, serving the Hellenic Navy.


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

#889 2013-05-15 21:24: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:
drxspace wrote:

Thank you for all these awesome stuff!

Please, have a look at my efforts here

Hi patrioti!
Thanks for your kind words - I can't test your work, cause I don't have a conky version compiled with lua, but I'm sure others will be able to do so (where are you Sector11?).
I have no doubt that it is awesome though - you're Greek after all  tongue  lol  cool

PS: I did part of my military service in Salamis, serving the Hellenic Navy.

Yupper, I am here and I will give it a run  big_smile

Stay tuned ....


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

Offline

#890 2013-05-15 21:57:48

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)

drxspace wrote:

Thank you for all these awesome stuff!

Please, have a look at my efforts here

OMG!! AWESOME doesn't even begin to describe this!  I read the README, saw INSTALL and ??? run the install.sh and it will do everything ... So I looked that install.sh in medit ... OH YEA, I understand that ... NOT!

But /media/5/conky/drxspace/Conky_Cronograph_Station_SE-v2.0/INSTALL, buried deep in the bowels of my /media/5 partition did say:

You can run in terminal the "install.sh" script and follow the instructions.

Yea right ... Oh My!!!!  IT DID!  And I love it ... just one Oops! - I have no battery!

I gotta play with this!

I thought Teo with his "I have no doubt that it is awesome though - you're Greek after all" was being a bit ... well you know ... but he was right in every way!
abmQPZ37.jpg

Awesome drxspace, just awesome!


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

Offline

#891 2013-05-15 22:01:40

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

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

Thanks a lot for testing mate!
Who can stop the might of Greece?...  big_smile


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

#892 2013-05-15 22:35:59

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:

Thanks a lot for testing mate!
Who can stop the might of Greece?...  big_smile

I don't know, I'll ask the Trojans, but I best do it by email and not face to face. lol lol

Been looking at the whole setup.  Brilliant!  I renamed my ~/.conky to ~/.conky_mine because while reading the "inatall.sh" (OK, I understood some things) I see that IT was going to use ~/conky.

But here's where it gets better, drxspace, realizing that others use ~/.conky and rather than messing with others setups, has the script create:

/home/sector11/.conky/cronograph_se

and put "everything" in there, LUA scripts, images, bash scripts, weather by some guy named Teo ( lol ) and even installed the correct fonts!

/home/sector11/.conky/cronograph_se/accuweather - directory
/home/sector11/.conky/cronograph_se/images - directory
/home/sector11/.conky/cronograph_se/scripts - directory
/home/sector11/.conky/cronograph_se/.build
/home/sector11/.conky/cronograph_se/.version
/home/sector11/.conky/cronograph_se/conkyrc
/home/sector11/.conky/cronograph_se/start_crono.sh

Very impressive, drxspace - KUDOS!!

Last edited by Sector11 (2013-05-15 22:38:31)


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

Offline

#893 2013-05-16 08:59:51

drxspace
New Member
From: Salamis, Greece
Registered: 2013-05-15
Posts: 5
Website

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

Thanks mates  wink (...patroti!)

I couldn't mention it yesterday but yes Sector11 I'm using the newest version of hooge05_53 fonts and ...the best part... patrioti - hmm - take a look at the forecasts.sh script! Sorry guys but I can't type farther...

Thanks and again!
RESPECT


Life was short indeed

Offline

#894 2013-06-07 00:07:11

DrKillPatient
New Member
Registered: 2013-06-06
Posts: 4

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

Hi. I've just discovered these scripts yesterday and I'm currently working them into my own Conky setup. They're absolutely excellent! I have two rather minor problems, however -- first, the temperature high for "today" will occasionally display as '-'. I've noticed this can be seen in one of your preview images: http://i.imgur.com/ZLg4Tpj.png (first entry in "tonight"). Is this simply a bug on Accuweather's part, or something in the script?

Secondly, I've noticed that "today" and "tonight" get entries for precipitation chance in the first_days file. I'd like to add a functionality to the script that gives the precipitation chance for the following days (in both first_days and last_days) as well. How would I go about doing so? I have a basic familiarity with bash/sed/etc., but I'm not sure how to parse the raw files properly, nor can I figure out what part of the script treats the first_days entries for today/tonight differently from later days.

Thanks.

Last edited by DrKillPatient (2013-06-07 00:07:49)

Offline

#895 2013-06-07 14:04:25

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

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

Thanks for your kind words DrKillPatient.

1) The dash appears at tonight's high, because accuweather doesn't provide a high for the night, only for the day.
In other words, if it's a normal day (Monday to Sunday), you get a high temperature (achieved during the day) and a low temperature (achieved during the night). If it's "Tonight" though, you only get a low temperature.



2) You can't do this (get chances of precipitation for all the days) with the pages that the script currently downloads.
The script downloads a summary of the first 5 days' forecast

(http://www.accuweather.com/en/gr/kastor … ast/178682)

and a summary of the next 5 days' forecast

(http://www.accuweather.com/en/gr/kastor … 8682?day=6)

These 2 addresses have precipitation info for days 1 and 6, but not for the other days. If you wanted precipitation info for all 10 days, you'd have to download 10 pages

http://www.accuweather.com/en/gr/kastor … ast/178682
http://www.accuweather.com/en/gr/kastor … 8682?day=2
http://www.accuweather.com/en/gr/kastor … 8682?day=3
...
...
...
http://www.accuweather.com/en/gr/kastor … 8682?day=9
http://www.accuweather.com/en/gr/kastor … 682?day=10

a hell of a waste of bandwidth if you ask me.
If you desperately need precipitation info for all days, you should look at script #4 (the weather.com one).

Thanks again for your kind words.

Last edited by TeoBigusGeekus (2013-06-07 14:05:39)


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

Offline

#896 2013-06-30 23:37:55

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)

OK here I am again with another tribute to TeoBigusGeekus's weather scripts.  This is another 2 for one using Accuweather 1.b.1 I made for a friend with ties to both cities.

Buenos Aires & Miami
2013_06_30_19_51_01_1920x1080_Sector11.jpg

Everything is packaged up in AccuW.tar.gz except the 1x1 pixel light slate gray image used for the vertical line between cities that's available in 1_pizel_images.tar.gz along with some others I use in conkys.  You will have to change the path for that.

And of course there's Teo's Portrait if anyone is interested.


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

Offline

#897 2013-07-01 14:34:36

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

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

Ohhhh, I'm most flattered and embarrassed....

CU0n5lz.png

Thanks mate, I've added a link on the front page.

Last edited by TeoBigusGeekus (2013-07-01 14:35:30)


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

#898 2013-07-01 15:05:48

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:

Ohhhh, I'm most flattered and embarrassed....

http://i.imgur.com/CU0n5lz.png

Thanks mate, I've added a link on the front page.

lol  lol  lol Hey, you do that hard stuff, I just move the elements around a bit.  big_smile

Look at those cheeks, grandma been pinching them? angel c
{don't you just hate that!}
Thanks for the link... some are outdated and should be clipped or at least people warned that they may not work with the newer version of the scripts.  Still - good examples though.

Last edited by Sector11 (2013-07-01 15:07:20)


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

Offline

#899 2013-07-01 15:10:42

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

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

Sector11 wrote:

Thanks for the link... some are outdated and should be clipped or at least people warned that they may not work with the newer version of the scripts.  Still - good examples though.

Are they? I'll have a look a soon as I can, thanks for the tip.


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

Be excellent to each other!

#900 2013-07-02 13:59:28

Inodoro Pereyra
#! Die Hard
From: Back in Buenos Aires
Registered: 2013-07-01
Posts: 844

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

Hello everybody!

New to #!, new to conky, and new to the forum, but already one of Teo's scripts user. smile

@Teo: first, let me join the legions and thank you very much for taking the time to write and maintain those scripts. Lots of us depend on them.

Now, the weather conky you've been talking with Bruce lately (the Buenos Aires-Miami conky) is mine. Last night, with Bruce's invaluable help (he's been coaching me on conky -read: "building my conkys"- from the get go), we could finally figure out what the problem was: I had put your scripts into the ~/.conky folder, and didn't chaange the paths in the scripts themselves. Now I fixed everything, and it's all working. Will post a scrot as soon as I get everything in place in my new screen.

So, thank you both, Teo and Bruce, for everything. Without your help, I'd be drowning in a sea of conkylessness... tongue

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